我正在尝试在MAC OSX 10.11.5上安装ImageMagick版本6.9.6-2 按照以下步骤操作:
1)安装pkg-config。 (如果你还没有安装它)
最新消息:https://pkg-config.freedesktop.org/releases/pkg-config-0.29.1.tar.gz
目前在linux上安装了什么:pkg-config --version = 0.23 的/ usr /斌/ pkg配置
pkg-config程序用于检索系统中已安装库的信息。它通常用于编译和链接一个或多个库。
2)安装libpng。 3)安装ghostscript,当前版本:GPL Ghostscript 8.70(2009-07-31)),最新版本为9.20 3)然后,您可以使用PNG参考库编译和安装ImageMagick。
注意:作为先决条件,需要安装xcode的xCOde和commndline utils
让XCode和命令行工具在内部可用@:只需下载并安装dmg(您需要在mac上拥有管理员权限)
XCODE:http://localnexus:8080/nexus/content/repositories/thirdparty/com/osx/xcode/7.3.1/xcode-7.3.1.dmg
配置pkg-config:
curl -O http://localnexus:8080/nexus/content/repositories/thirdparty/com/pkg-config/pkg-config/0.29.1/pkg-config-0.29.1.gz tar xvfz pkg-config-0.29.1.gz cd pkg-config-0.29.1 export LDFLAGS =“ - framework CoreFoundation -framework Carbon” ./configure --with-internal-glib --prefix = / usr / local / pkgconfig 制造&&做检查 sudo make install
export PATH =“/ usr / local / keyconfig / bin:$ PATH”
安装libpng:
curl -O http://localnexus:8080/content/repositories/thirdparty/com/libpng/libpng/1.6.25/libpng-1.6.25.gz tar zxf libpng-1.6.25.tar.gz cd libpng-1.6.25 export LDFLAGS =“ - L / usr / local / libpng / lib” export CPPFLAGS =“ - I / usr / local / libpng / include” sudo ./configure --prefix = / usr / local / libpng sudo make&&做检查 sudo make install
链接pkg-config sudo ln -s / usr / local / pkgconfig / bin / pkg-config / usr / local / libpng / bin
sudo ln -s /usr/local/pkgconfig/bin/x86_64-apple-darwin15.5.0-pkg-config / usr / local / libpng / bin
安装GhostScript:因为它在Mac上,我们可以使用dmg或源代码:
此软件包在/ usr / local中安装Ghostscript 9.20。该软件包支持macOS 10.5,Snow Leopard,通过macOS 10.12,Sierra支持Intel处理器。该软件包不支持PowerPC处理器。
验证: $ gs --version 9.20
安装ImageMagick:
下载ImageMagick-6.9.6-2 curl -O http://localnexus:8080/nexus/content/repositories/thirdparty/org/Imagemagick/6.9.6-2/Imagemagick-6.9.6-2.gz tar xvfz Imagemagick-6.9.6-2.gz cd ImageMagick-6.9.6-2 export LDFLAGS =“ - L / usr / local / libpng / lib /” export CPPFLAGS =“ - I / usr / local / libpng / include” export PKG_CONFIG_PATH =“/ usr / local / libpng / lib / pkgconfig /” ./configure --prefix = / usr / local / magick --with-jpeg --with-png --with-tiff --without-perl --with-bzlib = yes --with-freetype = yes --with -gslib = yes --with-magick-plus-plus = yes --with-zlib = yes --with-xml = yes 使 sudo make install
export PATH = $ PATH:/ usr / local / magick / bin
但无法添加像jpeg这样的委托,或者在FEATURE中添加openMP。加上我不知道如何验证ghostscript已安装并使用ImageMagick
这是./configure:
的结果./configure CPPFLAGS='-I/usr/local/lib' LDFLAGS='-L/usr/local/lib' --enable-shared --enable-static --with-magick-plus-plus --with-wmf --with-gslib --with-rsvg --with-xml --enable-hdri --with-fftw=yes --with-gslib --enable-hdri --enable-openmp --with-modules --enable-delegate-build --with-jpeg --disable-dependency-tracking --with-tiff --with-gslib --with-hdf --with-jbig --with-dps --with-perl --with-fpx --with-x --with-zlib
ImageMagick is configured as follows. Please verify that this configuration
matches your expectations.
Host system type: x86_64-apple-darwin15.5.0
Build system type: x86_64-apple-darwin15.5.0
Option Value
-------------------------------------------------------------------
Shared libraries --enable-shared=yes yes
Static libraries --enable-static=yes yes
Module support --with-modules=yes yes
GNU ld --with-gnu-ld=no no
Quantum depth --with-quantum-depth=16 16
High Dynamic Range Imagery
--enable-hdri=yes yes
Install documentation: yes
Delegate Library Configuration:
BZLIB --with-bzlib=yes yes
Autotrace --with-autotrace=no no
DJVU --with-djvu=yes no
DPS --with-dps=yes no
FFTW --with-fftw=yes no
FLIF --with-flif=yes no
FlashPIX --with-fpx=yes no
FontConfig --with-fontconfig=yes no
FreeType --with-freetype=yes no
Ghostscript lib --with-gslib=yes no
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes no
LCMS --with-lcms=yes no
LQR --with-lqr=yes no
LTDL --with-ltdl=yes yes
LZMA --with-lzma=yes no
Magick++ --with-magick-plus-plus=yes yes
OpenEXR --with-openexr=yes no
OpenJP2 --with-openjp2=yes no
PANGO --with-pango=yes no
PERL --with-perl=yes /usr/bin/perl
PNG --with-png=yes no
RAQM --with-raqm=yes no
RSVG --with-rsvg=yes no
TIFF --with-tiff=yes yes
WEBP --with-webp=yes no
WMF --with-wmf=yes no
X11 --with-x=yes no
XML --with-xml=yes no
ZLIB --with-zlib=yes no
Delegate Program Configuration:
GhostPCL None pcl6 (unknown)
GhostXPS None gxps (unknown)
Ghostscript None gs (9.20)
Font Configuration:
Apple fonts --with-apple-font-dir=default
Dejavu fonts --with-dejavu-font-dir=default none
Ghostscript fonts --with-gs-font-dir=default /usr/local/share/ghostscript/fonts/
Windows fonts --with-windows-font-dir=default none
X11 Configuration:
X_CFLAGS =
X_PRE_LIBS =
X_LIBS =
X_EXTRA_LIBS =
Options used to compile and link:
PREFIX = /usr/local
EXEC-PREFIX = /usr/local
VERSION = 6.9.6
CC = gcc
CFLAGS = -g -O2 -Wall -mtune=haswell -fexceptions -D_FORTIFY_SOURCE=0 -D_THREAD_SAFE -pthread -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16
CPPFLAGS = -I/usr/local/lib -DMAGICKCORE_HDRI_ENABLE=1 -DMAGICKCORE_QUANTUM_DEPTH=16 -I/Users/skahmed/devops/TOOLS/IMAGEMAGICK/temp/ImageMagick-6.9.6-2/magick -I/Users/skahmed/devops/TOOLS/IMAGEMAGICK/temp/ImageMagick-6.9.6-2/tiff/libtiff -I/Users/skahmed/devops/TOOLS/IMAGEMAGICK/temp/ImageMagick-6.9.6-2/wand -I/Users/skahmed/devops/TOOLS/IMAGEMAGICK/temp/ImageMagick-6.9.6-2/zlib
PCFLAGS =
DEFS = -DHAVE_CONFIG_H
LDFLAGS = -L/usr/local/lib -L/Users/skahmed/devops/TOOLS/IMAGEMAGICK/temp/ImageMagick-6.9.6-2/magick/.libs -L/Users/skahmed/devops/TOOLS/IMAGEMAGICK/temp/ImageMagick-6.9.6-2/magick -L/Users/skahmed/devops/TOOLS/IMAGEMAGICK/temp/ImageMagick-6.9.6-2/tiff/libtiff/.libs -L/Users/skahmed/devops/TOOLS/IMAGEMAGICK/temp/ImageMagick-6.9.6-2/tiff/libtiff -L/Users/skahmed/devops/TOOLS/IMAGEMAGICK/temp/ImageMagick-6.9.6-2/wand/.libs -L/Users/skahmed/devops/TOOLS/IMAGEMAGICK/temp/ImageMagick-6.9.6-2/wand -L/Users/skahmed/devops/TOOLS/IMAGEMAGICK/temp/ImageMagick-6.9.6-2/zlib
LIBS =
CXX = g++
CXXFLAGS = -g -O2 -D_THREAD_SAFE -pthread
FEATURES = DPC HDRI Cipher Modules
DELEGATES = bzlib mpeg ps tiff
========================================================================
convert -version 版本:ImageMagick 6.9.6-2 Q16 x86_64 2016-10-28 http://www.imagemagick.org 版权:版权所有(C)1999-2016 ImageMagick Studio LLC 许可证:http://www.imagemagick.org/script/license.php 特点:密码DPC HDRI 代表(内置):bzlib