1
1
Download & Unpack
2
2
3
3
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
5
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.
6
+ https://legacy.imagemagick.org/archive/ImageMagick.tar.gz
8
7
9
8
Unpack the distribution with this command:
10
9
11
- $magick> tar xvfz ImageMagick.tar.gz
10
+ $ tar xvfz ImageMagick.tar.gz
12
11
13
12
Now that you have the ImageMagick Unix/Linux source distribution unpacked,
14
13
let's configure it.
@@ -23,86 +22,12 @@ Configure
23
22
default options, and build from within the source directory, you can simply
24
23
type:
25
24
26
- $magick> cd ImageMagick-6.9.6
27
- $magick> ./configure
25
+ $ cd ImageMagick-6.9.12
26
+ $ ./configure
28
27
29
28
Watch the configure script output to verify that it finds everything that
30
29
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.
106
31
107
32
You can influence the choice of compiler, compilation flags, or libraries of
108
33
the configure script by setting initial values for variables in the configure
@@ -137,7 +62,7 @@ Configure
137
62
138
63
Here is an example of setting configure variables from the command line:
139
64
140
- $magick> ./configure CC=c99 CFLAGS=-O2 LIBS=-lposix
65
+ $ ./configure CC=c99 CFLAGS=-O2 LIBS=-lposix
141
66
142
67
Any variable (e.g. CPPFLAGS or LDFLAGS) which requires a directory path must
143
68
specify an absolute path rather than a relative path.
@@ -404,9 +329,6 @@ Configure
404
329
disable JPEG v2 support.
405
330
406
331
--without-lcms
407
- disable lcms (v1.1X) support
408
-
409
- --without-lcms2
410
332
disable lcms (v2.X) support
411
333
412
334
--without-lzma
@@ -521,7 +443,7 @@ Build
521
443
522
444
In most cases you will simply want to compile ImageMagick with this command:
523
445
524
- $magick> make
446
+ $ make
525
447
526
448
Once built, you can optionally install ImageMagick on your system as
527
449
discussed below.
@@ -530,7 +452,7 @@ Install
530
452
531
453
Now that ImageMagick is configured and built, type:
532
454
533
- $magick> make install
455
+ $ make install
534
456
535
457
to install it.
536
458
@@ -545,21 +467,21 @@ Install
545
467
ensure that the installation directory is in your executable search path
546
468
and type:
547
469
548
- $magick> display
470
+ $ display
549
471
550
472
The ImageMagick logo is displayed on your X11 display.
551
473
552
474
To verify the ImageMagick build configuration, type:
553
475
554
- $magick> identify -list configure
476
+ $ identify -list configure
555
477
556
478
To list which image formats are supported , type:
557
479
558
- $magick> identify -list format
480
+ $ identify -list format
559
481
560
482
For a more comprehensive test, you run the ImageMagick test suite by typing:
561
483
562
- $magick> make check
484
+ $ make check
563
485
564
486
Ghostscript is a prerequisite, otherwise the EPS, PS, and PDF tests will
565
487
fail. Note that due to differences between the developer's environment and
@@ -575,12 +497,12 @@ Linux-specific Build instructions
575
497
576
498
Build ImageMagick with this command:
577
499
578
- $magick> rpmbuild --rebuild ImageMagick.src.rpm
500
+ $ rpmbuild --rebuild ImageMagick.src.rpm
579
501
580
502
After the build you, locate the RPMS folder and install the ImageMagick
581
503
binary RPM distribution:
582
504
583
- $magick> rpm -ivh ImageMagick-6.8.2 -?.*.rpm
505
+ $ rpm -ivh ImageMagick-6.9.12 -?.*.rpm
584
506
585
507
MinGW-specific Build instructions
586
508
@@ -590,12 +512,13 @@ MinGW-specific Build instructions
590
512
sure you specify the development headers when you install a package. Next
591
513
type,
592
514
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
599
522
600
523
Dealing with Unexpected Problems
601
524
@@ -613,19 +536,19 @@ Dealing with Unexpected Problems
613
536
Some systems may fail to link at build time due to unresolved symbols. Try
614
537
adding the LDFLAGS to the configure command line:
615
538
616
- $magick> configure LDFLAGS='-L/usr/local/lib -R/usr/local/lib'
539
+ $ configure LDFLAGS='-L/usr/local/lib -R/usr/local/lib'
617
540
618
541
Dynamic Linker Run-time Bindings
619
542
620
543
On some systems, ImageMagick may not find its shared library, libMagick.so. Try
621
544
running the ldconfig with the library path:
622
545
623
- $magick> /sbin/ldconfig /usr/local/lib
546
+ $ /sbin/ldconfig /usr/local/lib
624
547
625
548
Solaris and Linux systems have the ldd command which is useful to track which
626
549
libraries ImageMagick depends on:
627
550
628
- $magick> ldd `which convert`
551
+ $ ldd `which convert`
629
552
630
553
Delegate Libraries
631
554
@@ -640,12 +563,12 @@ Dealing with Unexpected Problems
640
563
files and reconfigure, rebuild, and reinstall ImageMagick. As an example,
641
564
lets add support for the JPEG image format. First we install the JPEG RPMS:
642
565
643
- $magick> yum install libjpeg libjpeg-devel
566
+ $ yum install libjpeg libjpeg-devel
644
567
645
568
Now reconfigure, rebuild, and reinstall ImageMagick. To verify JPEG is now
646
569
properly supported within ImageMagick, use this command:
647
570
648
- $magick> identify -list format
571
+ $ identify -list format
649
572
650
573
You should see a mode of rw- associated with the JPEG tag. This mode means
651
574
the image can be read or written and can only support one image per image
0 commit comments