标签:
下载GraphicsMagick-1.3.21.tar.gz
解压:tar -zxvf GraphicsMagick-1.3.21.tar.gz
cd /usr/local/GraphicsMagick-1.3.21(解压到的路径)
./configure ‘--build=i686-redhat-linux-gnu‘ ‘--host=i686-redhat-linux-gnu‘ ‘--target=i386-redhat-linux-gnu‘ ‘--program-prefix=‘ ‘--prefix=/usr/local/GraphicsMagick-1.3.21‘ ‘--exec-prefix=/usr/local/GraphicsMagick-1.3.21‘ ‘--bindir=/usr/local/GraphicsMagick-1.3.21/bin‘ ‘--sbindir=/usr/local/GraphicsMagick-1.3.21/sbin‘ ‘--sysconfdir=/usr/local/GraphicsMagick-1.3.21/etc‘ ‘--datadir=/usr/local/GraphicsMagick-1.3.21/share‘ ‘--includedir=/usr/local/GraphicsMagick-1.3.21/include‘ ‘--libdir=/usr/local/GraphicsMagick-1.3.21/lib‘ ‘--libexecdir=/usr/local/GraphicsMagick-1.3.21/libexec‘ ‘--localstatedir=/usr/local/GraphicsMagick-1.3.21/var‘ ‘--sharedstatedir=/usr/local/GraphicsMagick-1.3.21/share/com‘ ‘--mandir=/usr/local/GraphicsMagick-1.3.21/share/man‘ ‘--infodir=/usr/local/GraphicsMagick-1.3.21/share/info‘ ‘--enable-libtool-verbose‘ ‘--with-included-ltdl‘ ‘--enable-shared‘ ‘--disable-static‘ ‘--with-modules‘ ‘--with-frozenpaths‘ ‘--without-perl‘ ‘--without-magick-plus-plus‘ ‘--with-quantum-depth=8‘ --enable-symbol-prefix
出现了这样的错误。解决:yum install libtool-ltdl libtool-ltdl-devel
然后执行 # make
# make install
配置环境变量
vi /etc/proflie 添加如下配置:
export GMAGICK_HOME="/usr/local/GraphicsMagick-1.3.21"
export PATH="$GMAGICK_HOME/bin:$PATH"
LD_LIBRARY_PATH=$GMAGICK_HOME/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
//让配置生效
source /etc/profile
到此安装就完成了。
标签:
原文地址:http://www.cnblogs.com/hjy9420/p/5064908.html