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
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.
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-7.1.1
27
- $magick> ./configure
25
+ $ cd ImageMagick-7.1.1
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 = 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.
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.
@@ -521,7 +446,7 @@ Build
521
446
522
447
In most cases you will simply want to compile ImageMagick with this command:
523
448
524
- $magick> make
449
+ $ make
525
450
526
451
Once built, you can optionally install ImageMagick on your system as
527
452
discussed below.
@@ -530,7 +455,7 @@ Install
530
455
531
456
Now that ImageMagick is configured and built, type:
532
457
533
- $magick> make install
458
+ $ make install
534
459
535
460
to install it.
536
461
@@ -545,21 +470,21 @@ Install
545
470
ensure that the installation directory is in your executable search path
546
471
and type:
547
472
548
- $magick> display
473
+ $ display
549
474
550
475
The ImageMagick logo is displayed on your X11 display.
551
476
552
477
To verify the ImageMagick build configuration, type:
553
478
554
- $magick> identify -list configure
479
+ $ identify -list configure
555
480
556
481
To list which image formats are supported , type:
557
482
558
- $magick> identify -list format
483
+ $ identify -list format
559
484
560
485
For a more comprehensive test, you run the ImageMagick test suite by typing:
561
486
562
- $magick> make check
487
+ $ make check
563
488
564
489
Ghostscript is a prerequisite, otherwise the EPS, PS, and PDF tests will
565
490
fail. Note that due to differences between the developer's environment and
@@ -575,12 +500,12 @@ Linux-specific Build instructions
575
500
576
501
Build ImageMagick with this command:
577
502
578
- $magick> rpmbuild --rebuild ImageMagick.src.rpm
503
+ $ rpmbuild --rebuild ImageMagick.src.rpm
579
504
580
505
After the build you, locate the RPMS folder and install the ImageMagick
581
506
binary RPM distribution:
582
507
583
- $magick> rpm -ivh ImageMagick-7.1.1-?.*.rpm
508
+ $ rpm -ivh ImageMagick-7.1.1-?.*.rpm
584
509
585
510
MinGW-specific Build instructions
586
511
@@ -590,12 +515,13 @@ MinGW-specific Build instructions
590
515
sure you specify the development headers when you install a package. Next
591
516
type,
592
517
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
599
525
600
526
Dealing with Unexpected Problems
601
527
@@ -613,19 +539,19 @@ Dealing with Unexpected Problems
613
539
Some systems may fail to link at build time due to unresolved symbols. Try
614
540
adding the LDFLAGS to the configure command line:
615
541
616
- $magick> configure LDFLAGS='-L/usr/local/lib -R/usr/local/lib'
542
+ $ configure LDFLAGS='-L/usr/local/lib -R/usr/local/lib'
617
543
618
544
Dynamic Linker Run-time Bindings
619
545
620
546
On some systems, ImageMagick may not find its shared library, libMagick.so. Try
621
547
running the ldconfig with the library path:
622
548
623
- $magick> /sbin/ldconfig /usr/local/lib
549
+ $ /sbin/ldconfig /usr/local/lib
624
550
625
551
Solaris and Linux systems have the ldd command which is useful to track which
626
552
libraries ImageMagick depends on:
627
553
628
- $magick> ldd `which convert`
554
+ $ ldd `which convert`
629
555
630
556
Delegate Libraries
631
557
@@ -640,12 +566,12 @@ Dealing with Unexpected Problems
640
566
files and reconfigure, rebuild, and reinstall ImageMagick. As an example,
641
567
lets add support for the JPEG image format. First we install the JPEG RPMS:
642
568
643
- $magick> yum install libjpeg libjpeg-devel
569
+ $ yum install libjpeg libjpeg-devel
644
570
645
571
Now reconfigure, rebuild, and reinstall ImageMagick. To verify JPEG is now
646
572
properly supported within ImageMagick, use this command:
647
573
648
- $magick> identify -list format
574
+ $ identify -list format
649
575
650
576
You should see a mode of rw- associated with the JPEG tag. This mode means
651
577
the image can be read or written and can only support one image per image
0 commit comments