Skip to content

Commit 7d8bd55

Browse files
author
Cristy
committed
improved a bit
1 parent 3f1131b commit 7d8bd55

File tree

1 file changed

+28
-102
lines changed

1 file changed

+28
-102
lines changed

Install-unix.txt

Lines changed: 28 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
Download & Unpack
22

33
ImageMagick builds on a variety of Unix and Unix-like operating systems
4-
including Linux, Solaris, FreeBSD, Mac OS X, and others. A compiler is
5-
required and fortunately almost all modern Unix systems have one. Download
6-
ImageMagick.tar.gz from ftp.imagemagick.org or its mirrors and verify the
7-
distribution against its message digest.
4+
including Linux, Ubuntu, FreeBSD, WIndows, Mac OS X, and others. A compiler
5+
is required and fortunately almost all modern Unix systems have one. Download
6+
https://imagemagick.org/archive/ImageMagick.tar.gz.
87

98
Unpack the distribution with this command:
109

11-
$magick> tar xvfz ImageMagick.tar.gz
10+
$ tar xvfz ImageMagick.tar.gz
1211

1312
Now that you have the ImageMagick Unix/Linux source distribution unpacked,
1413
let's configure it.
@@ -23,86 +22,12 @@ Configure
2322
default options, and build from within the source directory, you can simply
2423
type:
2524

26-
$magick> cd ImageMagick-7.1.1
27-
$magick> ./configure
25+
$ cd ImageMagick-7.1.1
26+
$ ./configure
2827

2928
Watch the configure script output to verify that it finds everything that
3029
you think it should. Pay particular attention to the last lines of the script
31-
output. For example, here is a recent report from our system:
32-
33-
ImageMagick is configured as follows. Please verify that this configuration
34-
matches your expectations.
35-
36-
Host system type: x86_64-unknown-linux-gnu
37-
Build system type: x86_64-unknown-linux-gnu
38-
39-
Option Value
40-
----------------------------------------------------------------------------
41-
Shared libraries --enable-shared=yes yes
42-
Static libraries --enable-static=yes yes
43-
Module support --with-modules=yes yes
44-
GNU ld --with-gnu-ld=yes yes
45-
Quantum depth --with-quantum-depth=16 16
46-
High Dynamic Range Imagery
47-
--enable-hdri=no no
48-
49-
Delegate Configuration:
50-
BZLIB --with-bzlib=yes yes
51-
Autotrace --with-autotrace=yes yes
52-
DJVU --with-djvu=yes no
53-
DPS --with-dps=yes no
54-
FlashPIX --with-fpx=yes no
55-
FontConfig --with-fontconfig=yes yes
56-
FreeType --with-freetype=yes yes
57-
GhostPCL None pcl6 (unknown)
58-
GhostXPS None gxps (unknown)
59-
Ghostscript None gs (8.63)
60-
result_ghostscript_font_dir='none'
61-
Ghostscript fonts --with-gs-font-dir=default
62-
Ghostscript lib --with-gslib=yes no (failed tests)
63-
Graphviz --with-gvc=yes yes
64-
JBIG --with-jbig= no
65-
JPEG v1 --with-jpeg=yes yes
66-
JPEG-2000 --with-jp2=yes yes
67-
LCMS v1 --with-lcms=yes yes
68-
LCMS v2 --with-lcms2=yes yes
69-
LQR --with-lqr=yes no
70-
Magick++ --with-magick-plus-plus=yes yes
71-
OpenEXR --with-openexr=yes yes
72-
PERL --with-perl=yes /usr/bin/perl
73-
PNG --with-png=yes yes
74-
RSVG --with-rsvg=yes yes
75-
TIFF --with-tiff=yes yes
76-
result_windows_font_dir='none'
77-
Windows fonts --with-windows-font-dir=
78-
WMF --with-wmf=yes yes
79-
X11 --with-x= yes
80-
XML --with-xml=yes yes
81-
ZLIB --with-zlib=yes yes
82-
83-
X11 Configuration:
84-
X_CFLAGS =
85-
X_PRE_LIBS = -lSM -lICE
86-
X_LIBS =
87-
X_EXTRA_LIBS =
88-
89-
Options used to compile and link:
90-
PREFIX = /usr/local
91-
EXEC-PREFIX = /usr/local
92-
VERSION = 7.1.1
93-
CC = gcc -std=gnu99
94-
CFLAGS = -fopenmp -g -O2 -Wall -W -pthread
95-
MAGICK_CFLAGS = -fopenmp -g -O2 -Wall -W -pthread
96-
CPPFLAGS = -I/usr/local/include/ImageMagick
97-
PCFLAGS = -fopenmp
98-
DEFS = -DHAVE_CONFIG_H
99-
LDFLAGS = -lfreetype
100-
MAGICK_LDFLAGS = -L/usr/local/lib -lfreetype
101-
LIBS = -lMagickCore -llcms -ltiff -lfreetype -ljpeg
102-
-lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz
103-
-lm -lgomp -lpthread -lltdl
104-
CXX = g++
105-
CXXFLAGS = -g -O2 -Wall -W -pthread
30+
output.
10631

10732
You can influence the choice of compiler, compilation flags, or libraries of
10833
the configure script by setting initial values for variables in the configure
@@ -137,7 +62,7 @@ Configure
13762

13863
Here is an example of setting configure variables from the command line:
13964

140-
$magick> ./configure CC=c99 CFLAGS=-O2 LIBS=-lposix
65+
$ ./configure CC=c99 CFLAGS=-O2 LIBS=-lposix
14166

14267
Any variable (e.g. CPPFLAGS or LDFLAGS) which requires a directory path must
14368
specify an absolute path rather than a relative path.
@@ -521,7 +446,7 @@ Build
521446

522447
In most cases you will simply want to compile ImageMagick with this command:
523448

524-
$magick> make
449+
$ make
525450

526451
Once built, you can optionally install ImageMagick on your system as
527452
discussed below.
@@ -530,7 +455,7 @@ Install
530455

531456
Now that ImageMagick is configured and built, type:
532457

533-
$magick> make install
458+
$ make install
534459

535460
to install it.
536461

@@ -545,21 +470,21 @@ Install
545470
ensure that the installation directory is in your executable search path
546471
and type:
547472

548-
$magick> display
473+
$ display
549474

550475
The ImageMagick logo is displayed on your X11 display.
551476

552477
To verify the ImageMagick build configuration, type:
553478

554-
$magick> identify -list configure
479+
$ identify -list configure
555480

556481
To list which image formats are supported , type:
557482

558-
$magick> identify -list format
483+
$ identify -list format
559484

560485
For a more comprehensive test, you run the ImageMagick test suite by typing:
561486

562-
$magick> make check
487+
$ make check
563488

564489
Ghostscript is a prerequisite, otherwise the EPS, PS, and PDF tests will
565490
fail. Note that due to differences between the developer's environment and
@@ -575,12 +500,12 @@ Linux-specific Build instructions
575500

576501
Build ImageMagick with this command:
577502

578-
$magick> rpmbuild --rebuild ImageMagick.src.rpm
503+
$ rpmbuild --rebuild ImageMagick.src.rpm
579504

580505
After the build you, locate the RPMS folder and install the ImageMagick
581506
binary RPM distribution:
582507

583-
$magick> rpm -ivh ImageMagick-7.1.1-?.*.rpm
508+
$ rpm -ivh ImageMagick-7.1.1-?.*.rpm
584509

585510
MinGW-specific Build instructions
586511

@@ -590,12 +515,13 @@ MinGW-specific Build instructions
590515
sure you specify the development headers when you install a package. Next
591516
type,
592517

593-
$magick> tar jxvf ImageMagick-7.1.1-?.tar.bz2
594-
$magick> cd ImageMagick-7.1.1
595-
$magick> export CPPFLAGS="-Ic:/Progra~1/GnuWin32/include"
596-
$magick> export LDFLAGS="-Lc:/Progra~1/GnuWin32/lib"
597-
$magick> ./configure --without-perl
598-
$magick> make $magick> sudo make install
518+
$ tar jxvf ImageMagick-7.1.1-?.tar.bz2
519+
$ cd ImageMagick-7.1.1
520+
$ export CPPFLAGS="-Ic:/Progra~1/GnuWin32/include"
521+
$ export LDFLAGS="-Lc:/Progra~1/GnuWin32/lib"
522+
$ ./configure --without-perl
523+
$ make
524+
$ sudo make install
599525

600526
Dealing with Unexpected Problems
601527

@@ -613,19 +539,19 @@ Dealing with Unexpected Problems
613539
Some systems may fail to link at build time due to unresolved symbols. Try
614540
adding the LDFLAGS to the configure command line:
615541

616-
$magick> configure LDFLAGS='-L/usr/local/lib -R/usr/local/lib'
542+
$ configure LDFLAGS='-L/usr/local/lib -R/usr/local/lib'
617543

618544
Dynamic Linker Run-time Bindings
619545

620546
On some systems, ImageMagick may not find its shared library, libMagick.so. Try
621547
running the ldconfig with the library path:
622548

623-
$magick> /sbin/ldconfig /usr/local/lib
549+
$ /sbin/ldconfig /usr/local/lib
624550

625551
Solaris and Linux systems have the ldd command which is useful to track which
626552
libraries ImageMagick depends on:
627553

628-
$magick> ldd `which convert`
554+
$ ldd `which convert`
629555

630556
Delegate Libraries
631557

@@ -640,12 +566,12 @@ Dealing with Unexpected Problems
640566
files and reconfigure, rebuild, and reinstall ImageMagick. As an example,
641567
lets add support for the JPEG image format. First we install the JPEG RPMS:
642568

643-
$magick> yum install libjpeg libjpeg-devel
569+
$ yum install libjpeg libjpeg-devel
644570

645571
Now reconfigure, rebuild, and reinstall ImageMagick. To verify JPEG is now
646572
properly supported within ImageMagick, use this command:
647573

648-
$magick> identify -list format
574+
$ identify -list format
649575

650576
You should see a mode of rw- associated with the JPEG tag. This mode means
651577
the image can be read or written and can only support one image per image

0 commit comments

Comments
 (0)