11Download & 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
4+ including Linux, Ubuntu, Mac OS X, Windows , and others. A compiler is
55 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.
6+ https://legacy.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-6.9.6
27- $magick> ./configure
25+ $ cd ImageMagick-6.9.12
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 = 6.4.8
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.
@@ -404,9 +329,6 @@ Configure
404329 disable JPEG v2 support.
405330
406331 --without-lcms
407- disable lcms (v1.1X) support
408-
409- --without-lcms2
410332 disable lcms (v2.X) support
411333
412334 --without-lzma
@@ -521,7 +443,7 @@ Build
521443
522444 In most cases you will simply want to compile ImageMagick with this command:
523445
524- $magick> make
446+ $ make
525447
526448 Once built, you can optionally install ImageMagick on your system as
527449 discussed below.
@@ -530,7 +452,7 @@ Install
530452
531453 Now that ImageMagick is configured and built, type:
532454
533- $magick> make install
455+ $ make install
534456
535457 to install it.
536458
@@ -545,21 +467,21 @@ Install
545467 ensure that the installation directory is in your executable search path
546468 and type:
547469
548- $magick> display
470+ $ display
549471
550472 The ImageMagick logo is displayed on your X11 display.
551473
552474 To verify the ImageMagick build configuration, type:
553475
554- $magick> identify -list configure
476+ $ identify -list configure
555477
556478 To list which image formats are supported , type:
557479
558- $magick> identify -list format
480+ $ identify -list format
559481
560482 For a more comprehensive test, you run the ImageMagick test suite by typing:
561483
562- $magick> make check
484+ $ make check
563485
564486 Ghostscript is a prerequisite, otherwise the EPS, PS, and PDF tests will
565487 fail. Note that due to differences between the developer's environment and
@@ -575,12 +497,12 @@ Linux-specific Build instructions
575497
576498 Build ImageMagick with this command:
577499
578- $magick> rpmbuild --rebuild ImageMagick.src.rpm
500+ $ rpmbuild --rebuild ImageMagick.src.rpm
579501
580502 After the build you, locate the RPMS folder and install the ImageMagick
581503 binary RPM distribution:
582504
583- $magick> rpm -ivh ImageMagick-6.8.2 -?.*.rpm
505+ $ rpm -ivh ImageMagick-6.9.12 -?.*.rpm
584506
585507MinGW-specific Build instructions
586508
@@ -590,12 +512,13 @@ MinGW-specific Build instructions
590512 sure you specify the development headers when you install a package. Next
591513 type,
592514
593- $magick> tar jxvf ImageMagick-6.8.2-?.tar.bz2
594- $magick> cd ImageMagick-6.8.2
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
515+ $ tar jxvf ImageMagick-6.9.12-?.tar.bz2
516+ $ cd ImageMagick-6.9.12
517+ $ export CPPFLAGS="-Ic:/Progra~1/GnuWin32/include"
518+ $ export LDFLAGS="-Lc:/Progra~1/GnuWin32/lib"
519+ $ ./configure --without-perl
520+ $ make
521+ $ sudo make install
599522
600523Dealing with Unexpected Problems
601524
@@ -613,19 +536,19 @@ Dealing with Unexpected Problems
613536 Some systems may fail to link at build time due to unresolved symbols. Try
614537 adding the LDFLAGS to the configure command line:
615538
616- $magick> configure LDFLAGS='-L/usr/local/lib -R/usr/local/lib'
539+ $ configure LDFLAGS='-L/usr/local/lib -R/usr/local/lib'
617540
618541 Dynamic Linker Run-time Bindings
619542
620543 On some systems, ImageMagick may not find its shared library, libMagick.so. Try
621544 running the ldconfig with the library path:
622545
623- $magick> /sbin/ldconfig /usr/local/lib
546+ $ /sbin/ldconfig /usr/local/lib
624547
625548 Solaris and Linux systems have the ldd command which is useful to track which
626549 libraries ImageMagick depends on:
627550
628- $magick> ldd `which convert`
551+ $ ldd `which convert`
629552
630553 Delegate Libraries
631554
@@ -640,12 +563,12 @@ Dealing with Unexpected Problems
640563 files and reconfigure, rebuild, and reinstall ImageMagick. As an example,
641564 lets add support for the JPEG image format. First we install the JPEG RPMS:
642565
643- $magick> yum install libjpeg libjpeg-devel
566+ $ yum install libjpeg libjpeg-devel
644567
645568 Now reconfigure, rebuild, and reinstall ImageMagick. To verify JPEG is now
646569 properly supported within ImageMagick, use this command:
647570
648- $magick> identify -list format
571+ $ identify -list format
649572
650573 You should see a mode of rw- associated with the JPEG tag. This mode means
651574 the image can be read or written and can only support one image per image
0 commit comments