初次安装时,出现以下错误
- [root@wwwTim]#geminstallrmagick
- Buildingnativeextensions.Thiscouldtakeawhile...
- ERROR:Errorinstallingrmagick:
- ERROR:Failedtobuildgemnativeextension.
-
- /usr/bin/rubyextconf.rbinstallrmagick
- checkingforRubyversion>=1.8.2...yes
- checkingforgcc...yes
- checkingforMagick-config...no
- Can'tinstallRMagick2.5.2.Can'tfindMagick-configin/usr/kerberos/sbin:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/lib64/ccache:/usr/local/bin:/usr/bin:/bin:/home/Tim/bin
-
- ***extconf.rbfailed***
- CouldnotcreateMakefileduetosomereason,probablylackof
- necessarylibrariesand/orheaders.Checkthemkmf.logfileformore
- details.Youmayneedconfigurationoptions.
-
- Providedconfigurationoptions:
- --with-opt-dir
- --without-opt-dir
- --with-opt-include
- --without-opt-include=${opt-dir}/include
- --with-opt-lib
- --without-opt-lib=${opt-dir}/lib
- --with-make-prog
- --without-make-prog
- --srcdir=.
- --curdir
- --ruby=/usr/bin/ruby
-
-
- Gemfileswillremaininstalledin/usr/lib64/ruby/gems/1.8/gems/rmagick-2.5.2forinspection.
- Resultsloggedto/usr/lib64/ruby/gems/1.8/gems/rmagick-2.5.2/ext/RMagick/gem_make.out
- [root@wwwTim]#
- [root@wwwTim]#yuminstallImageMagick-devel
- Loadedplugins:fastestmirror,presto,refresh-packagekit
- SettingupandreadingPrestodeltametadata
- NoPrestometadataavailableforlivna
- NoPrestometadataavailableforfedora
- NoPrestometadataavailableforadobe-linux-i386
- NoPrestometadataavailableforupdates
- NoPrestometadataavailableforfreshrpms
- NoPrestometadataavailableforfusion
- Loadingmirrorspeedsfromcachedhostfile
- *livna:rpm.livna.org
- *fedora:ftp.riken.jp
- *adobe-linux-i386:linuxdownload.adobe.com
- *updates:ftp.riken.jp
- *freshrpms:ayo.ie.freshrpms.net
- *fusion:www.dfm.uninsubria.it
- SettingupInstallProcess
- Parsingpackageinstallarguments
- ResolvingDependencies
- -->Runningtransactioncheck
- --->PackageImageMagick-devel.x86_640:6.3.8.1-4.fc9settobeupdated
- -->ProcessingDependency:jasperforpackage:ImageMagick-devel
- -->ProcessingDependency:ghostscript-develforpackage:ImageMagick-devel
- -->ProcessingDependency:lcms-develforpackage:ImageMagick-devel
- -->Runningtransactioncheck
- --->Packagejasper.x86_640:1.900.1-8.fc9settobeupdated
- --->Packageghostscript-devel.x86_640:8.62-4.fc9settobeupdated
- --->Packagelcms-devel.x86_640:1.17-5.fc9settobeupdated
- -->FinishedDependencyResolution
- DependenciesResolved
- =============================================================================
- PackageArchVersionRepositorySize
- =============================================================================
- Installing:
- ImageMagick-develx86_646.3.8.1-4.fc9fedora77k
- Installingfordependencies:
- ghostscript-develx86_648.62-4.fc9updates44k
- jasperx86_641.900.1-8.fc9fedora18k
- lcms-develx86_641.17-5.fc9updates50k
- TransactionSummary
- =============================================================================
- Install4Package(s)
- Update0Package(s)
- Remove0Package(s)
- Totaldownloadsize:189k
- Isthisok[y/N]:y
- DownloadingPackages:
- DownloadingDeltaRPMs:
- Rebuildingrpmsfromdeltarpms
- (1/4):jasper-1.900.1-8.fc9.x86_64.rpm|18kB00:05
- (2/4):ghostscript-devel-8.62-4.fc9.x86_64.rpm|44kB00:08
- (3/4):lcms-devel-1.17-5.fc9.x86_64.rpm|50kB00:14
- (4/4):ImageMagick-devel-6.3.8.1-4.fc9.x86_64.rpm|77kB00:17
- Runningrpm_check_debug
- RunningTransactionTest
- FinishedTransactionTest
- TransactionTestSucceeded
- RunningTransaction
- Installing:jasper[1/4]
- error:failedtostat/media/disk:Nosuchfileordirectory
- Installing:ghostscript-devel[2/4]
- Installing:lcms-devel[3/4]
- Installing:ImageMagick-devel[4/4]
- Installed:ImageMagick-devel.x86_640:6.3.8.1-4.fc9
- DependencyInstalled:ghostscript-devel.x86_640:8.62-4.fc9jasper.x86_640:1.900.1-8.fc9lcms-devel.x86_640:1.17-5.fc9
- Complete!
再次安装gem:
成功了,爽
- [root@wwwTim]#geminstallrmagick--include-dependencies
- INFO:`geminstall-y`isnowdefaultandwillberemoved
- INFO:use--ignore-dependenciestoinstallonlythegemsyoulist
- Buildingnativeextensions.Thiscouldtakeawhile...
- Successfullyinstalledrmagick-2.5.2
- 1geminstalled
本文记录了在初次安装rmagick过程中遇到的错误及解决方法。通过安装缺失的依赖库ImageMagick-devel及其相关组件,最终成功安装了rmagick。
5005

被折叠的 条评论
为什么被折叠?



