Centos
在 CentOS 6.3 上安裝最新的 ImageMagick
我很難在 CentOS 6.3 x86_64 伺服器上安裝最新版本的 ImageMagick。首先,我
$$ downloaded $$ 1 ImageMagick 站點的 RPM 並嘗試安裝它。由於缺少依賴項而失敗:
error: Failed dependencies: libHalf.so.4()(64bit) is needed by ImageMagick-6.8.0-4.x86_64 libIex.so.4()(64bit) is needed by ImageMagick-6.8.0-4.x86_64 libIlmImf.so.4()(64bit) is needed by ImageMagick-6.8.0-4.x86_64 libImath.so.4()(64bit) is needed by ImageMagick-6.8.0-4.x86_64 libltdl.so.3()(64bit) is needed by ImageMagick-6.8.0-4.x86_64
我已經
libtool-ltdl
安裝了,但包括libltdl.so.7
,不包括libltdl.so.4
.libHalf
我對,libIex
和有類似的libIlmImf
問題libImath
。通常,您可以安裝 OpenEXR 來獲取這些依賴項。不幸的是,CentOS 6.3 包含 OpenEXR 1.6.1,其中包含 ilmbase-devel 1.0.1。ilmbase-devel 的該版本包括這些依賴項的更新版本:
libHalf.so.6
libIex.so.6
libIlmImf.so.6
libImath.so.6
我接下來嘗試遵循
$$ instructions $$ 2用於從原始碼安裝 ImageMagick。那裡也沒有運氣。我得到一個建構錯誤:
RPM build errors: File not found by glob: /home/sean/rpmbuild/BUILDROOT/ImageMagick-6.8.0-4.x86_64/usr/lib64/ImageMagick-6.8.0/modules-Q16/coders/djvu.*
我什至重新執行
configure
以明確排除 djvu,但仍然遇到相同的錯誤。在這一點上,我正在拔頭髮。在 CentOS 6.3 上安裝相對較新版本的 ImageMagick (> 6.7) 的最簡單方法是什麼?有人在某處提供具有依賴關係的RPM 嗎?
你不應該有這些問題……我試圖搜尋目前版本的ImageMagick的漂亮的罐裝二進製文件。我找不到任何沒有奇怪的先決條件的東西……
所以我啟動了一個 CentOS 6.3 虛擬機並建構了最新的 ImageMagick SRPM 文件。您可能還想啟用RepoForge 儲存庫(以前稱為 RPMForge)。建構順利進行!
系統資訊:
[root@MDMarra ~]# uname -a Linux MDMarra.localdomain 2.6.32-279.11.1.el6.x86_64 #1 SMP Tue Oct 16 15:57:10 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux [root@MDMarra ~]# cat /etc/issue CentOS release 6.3 (Final) Kernel \r on an \m [root@MDMarra ~]# yum repolist repo id repo name status base CentOS-6 - Base 6346 extras CentOS-6 - Extras 6 rpmforge Red Hat Enterprise 6 - RPMforge.net - dag 4453 update CentOS-6 - Updates 820
開始安裝:
[root@MDMarra ~]# wget http://imagemagick.mirrorcatalogs.com/linux/SRPMS/ImageMagick-6.8.0-4.src.rpm [root@MDMarra ~]# yum install bzip2-devel freetype-devel libjpeg-devel libpng-devel libtiff-devel giflib-devel zlib-devel ghostscript-devel djvulibre-devel libwmf-devel jasper-devel libtool-ltdl-devel libX11-devel libXext-devel libXt-devel lcms-devel libxml2-devel librsvg2-devel OpenEXR-devel [root@MDMarra ~]# rpmbuild --rebuild ImageMagick-6.8.0-4.src.rpm
生成了這些文件:
Processing files: ImageMagick-debuginfo-6.8.0-4.x86_64 Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/ImageMagick-6.8.0-4.x86_64 Wrote: /root/rpmbuild/RPMS/x86_64/ImageMagick-6.8.0-4.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/ImageMagick-devel-6.8.0-4.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/ImageMagick-djvu-6.8.0-4.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/ImageMagick-doc-6.8.0-4.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/ImageMagick-perl-6.8.0-4.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/ImageMagick-c++-6.8.0-4.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/ImageMagick-c++-devel-6.8.0-4.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/ImageMagick-debuginfo-6.8.0-4.x86_64.rpm
安裝包:
rpm -ivh /root/rpmbuild/RPMS/x86_64/ImageMagick-6.8.0-4.x86_64.rpm
檢查已安裝的二進製文件:
[root@MDMarra ~]# rpm -qlp /root/rpmbuild/RPMS/x86_64/ImageMagick-6.8.0-4.x86_64.rpm| grep bin /usr/bin/animate /usr/bin/compare /usr/bin/composite /usr/bin/conjure /usr/bin/convert /usr/bin/display /usr/bin/identify /usr/bin/import /usr/bin/mogrify /usr/bin/montage /usr/bin/stream
查看新安裝的包版本號:
[root@MDMarra ~]# /usr/bin/convert -version Version: ImageMagick 6.8.0-4 2012-11-07 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC Features: OpenMP
享受!!