-
- tar -xzvf tiff-3.8.0.tar.gz
- cd tiff-3.8.0
- ./configure
- make
- make
- ./configure
make make ./configuremake make./configure makemake make
- 複製程式碼
-
-
- 我安裝完成後,在命令列處理圖片,報錯:libtiff.so.3: cannot open shared object file: No such file or directory
此模組也用不到,可以不安裝。
-
- 3、安裝jasper套件:
下載網址:http://www.ece.uvic.ca/~mdadams/jasper/
安裝後才能處理JPEG2000格式圖片(檔案副檔名是 .jp2 .j2c)
unzip jasper-1.900.1.zip- cd jasper-1.900.1
- CFLAGS=-fIC . =-fPIC
- make CFLAGS=-fPIC install
-
-
- 複製程式碼
-
4.安裝jpeg包
下載網址:http://www.ijg.org/files/jpegsrc.v6b.tar.gz
#安裝jpeg cd /disk/src tar -xzf ../soft/jpegsrc.v6b.tar.gz- tar -xzf ../soft/jpegsrc.v6b.tar.gz
- cd jpeg-6b/
- ./configure
- make && make install
-
-
複製程式碼
5、安裝zlib
下載網址 http://zlib.net/zlib-1.2.7.tar.gz
cd /disk/src- tar -xzf ../soft/zlib-1.2.7.tar.gz
- cd cd zlib-lib- 1.2.7
- ./configure
- make && make install
-
-
- 複製程式碼
-
-
- 6、安裝png
下載網址:http://www.libpng.org/pub/png/pngcode.html
wget ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.2.50. .gz
cd /disk/src
tar -xzf ../soft/libpng-1.2.50.tar.gz cd libpng-1.2.50- cp scripts/makefile.std makefile
- make
- make install
-
-
-
- 複製程式碼
7、安裝freetype
下載地址:
http://www.freetype.org/
http://download.savannah.gnu.org/releases/freetype/freetype-2.4.9.tar.gz
cd /disk/src tar -xzf ../soft/freetype-2.4.9.tar.gz- cd freetype-2.44 .9
- ./configure
- make
- make install
-
-
- 複製程式碼
-
-
- 8、安裝ImageMagick
-
-
-
-
-
-
#宣告64位元環境
- export CFLAGS='-fPIC'
tar -xzf ../soft/ ImageMagick-6.8.0-0.tar.gz cd ImageMagick-6.8.0-0/ ./configure --with-quantum-depth=8 --enable-share --enable-staticmake all make install
/usr/bin/ld: skipping incompatible /usr/lib/libpthread.a when searching for -lpthread /usr/bin/ld: cannot find -lltdlcollect2: ld returned 1 exit status libtool: install: error: relink `magick/libMagickCore.la' with the above command before installing itmake[2] install-libLTLIBRARIES] 錯誤1 make[2]: Leaving directory `/disk/src/ImageMagick-6.8.0-0'
install: error: relink `magick/libMagickCore. la' with the above command before installing it
/usr/bin/ld: cannot find -lltdl
-
複製程式碼
複製程式碼
複製程式碼
複製碼>-
- 解決方法:
usr/bin/ld: cannot find錯誤的解決方法
二、二進位RPM安裝
-
- 1、先卸載後安裝
安裝:
-
yum install ImageMagick ImageMagick-devel複製代碼如果已安裝過,先執行下面的卸載命令,我已安裝過6.2.8版本,所以要先卸載。
[root@jbxue soft]# convert --versionVersion: ImageMagick 6.2.8 05/07/12 Q16 file:/usr/share /ImageMagick-6.2.8/doc/index.htmlCopyright: Copyright (C) 1999-2006 ImageMagick Studio LLC[root@jbxue soft]# rpm -qa| grep ImageMagickImMagick-dem-de-de 6.2.8.0-15.el5_8ImageMagick-6.2.8.0-15.el5_8ImageMagick-devel-6.2.8.0-15.el5_8ImageMagick-6.2.8.0-8複製程式碼卸載:yum erase ImageMagick 或yum remove ImageMagick。
2、安裝基礎庫
yum install libtool-ltdl libtool-ltdl-devel freetype freetype-devel fontconfig-develwget http://centoscnustc.edu.edu. /epel/5/x86_64/epel-release-5-4.noarch.rpmrpm -Uvh epel-release-5-4.noarch.rpmyum --enablerepo=epel install jasper jasper-libs jasper -devel複製程式碼3、安裝ImageMagick-6.8.0-0.x86_64.rpm
下載位址:
http://www.imagemagick.org/script/binary-releases.php#unix
-
-
wget ftp://ftp.imagemagick.org/pub/ImageMagick/linux/CentOS/x86_64/ImageMagick-6.8. -0.x86_64.rpm
- wget ftp://ftp.imagemagick.org/pub/ImageMagick/linux/CentOS/x86_64/ImageMagick-devel-6.8.0-0.x86_64.rpm
-
rpm -Uvh ImageMagick-6.8.0-0.x86_64.rpm
-
複製程式碼
出現錯誤:
-
- yum install --nogpgcheck ImageMagick-6.8.0-0.x86_64.rpm
>4、檢測安裝結果
[root@jbxue soft]# convert --version
Version: ImageMagick 6.8. 0-0 2012-10-11 Q16 http://www.imagemagick.org
- Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
- Features: OpenMP
-
-
-
複製程式碼
三、參考資料
http://www.imagemagick.org/script/download.php
http://www.imagemagick.org/script/index.php
|