解决Fedora下RMagic无法安装的问题

初次安装时,出现以下错误

[root@www Tim]# gem install rmagick Building native extensions. This could take a while…ERROR: Error installing rmagick:ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb install rmagickchecking for Ruby version >= 1.8.2… yeschecking for gcc… yeschecking for Magick-config… noCan’t install RMagick 2.5.2. Can’t find Magick-config in /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.rb failed ***Could not create Makefile due to some reason, probably lack ofnecessary libraries and/or headers. Check the mkmf.log file for moredetails. You may need configuration options.

Provided configuration options:–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

Gem files will remain installed in /usr/lib64/ruby/gems/1.8/gems/rmagick-2.5.2 for inspection.Results logged to /usr/lib64/ruby/gems/1.8/gems/rmagick-2.5.2/ext/RMagick/gem_make.out[root@www Tim]#

根据提示,,应该是缺少magick库

[root@www Tim]# yum install ImageMagick-develLoaded plugins: fastestmirror, presto, refresh-packagekitSetting up and reading Presto delta metadataNo Presto metadata available for livnaNo Presto metadata available for FedoraNo Presto metadata available for adobe-linux-i386No Presto metadata available for updatesNo Presto metadata available for freshrpmsNo Presto metadata available for fusionLoading mirror speeds from cached hostfile* livna: rpm.livna.org* fedora: ftp.riken.jp* adobe-linux-i386: linuxdownload.adobe.com* updates: ftp.riken.jp* freshrpms: ayo.ie.freshrpms.net* fusion: Setting up Install ProcessParsing package install argumentsResolving Dependencies–> Running transaction check—> Package ImageMagick-devel.x86_64 0:6.3.8.1-4.fc9 set to be updated–> Processing Dependency: jasper for package: ImageMagick-devel–> Processing Dependency: ghostscript-devel for package: ImageMagick-devel–> Processing Dependency: lcms-devel for package: ImageMagick-devel–> Running transaction check—> Package jasper.x86_64 0:1.900.1-8.fc9 set to be updated—> Package ghostscript-devel.x86_64 0:8.62-4.fc9 set to be updated—> Package lcms-devel.x86_64 0:1.17-5.fc9 set to be updated–> Finished Dependency Resolution

Dependencies Resolved

=============================================================================Package Arch Version Repository Size =============================================================================Installing:ImageMagick-devel x86_64 6.3.8.1-4.fc9 fedora 77 kInstalling for dependencies:ghostscript-devel x86_64 8.62-4.fc9 updates 44 kjasper x86_64 1.900.1-8.fc9 fedora 18 klcms-devel x86_64 1.17-5.fc9 updates 50 k

Transaction Summary=============================================================================Install 4 Package(s) Update 0 Package(s) Remove 0 Package(s)

Total download size: 189 kIs this ok [y/N]: yDownloading Packages:Downloading DeltaRPMs:Rebuilding rpms from deltarpms(1/4): jasper-1.900.1-8.fc9.x86_64.rpm | 18 kB 00:05 (2/4): ghostscript-devel-8.62-4.fc9.x86_64.rpm | 44 kB 00:08 (3/4): lcms-devel-1.17-5.fc9.x86_64.rpm | 50 kB 00:14 (4/4): ImageMagick-devel-6.3.8.1-4.fc9.x86_64.rpm | 77 kB 00:17 Running rpm_check_debugRunning Transaction TestFinished Transaction TestTransaction Test SucceededRunning TransactionInstalling : jasper [1/4] error: failed to stat /media/disk: No such file or directoryInstalling : ghostscript-devel [2/4] Installing : lcms-devel [3/4] Installing : ImageMagick-devel [4/4]

Installed: ImageMagick-devel.x86_64 0:6.3.8.1-4.fc9Dependency Installed: ghostscript-devel.x86_64 0:8.62-4.fc9 jasper.x86_64 0:1.900.1-8.fc9 lcms-devel.x86_64 0:1.17-5.fc9Complete!

再次安装gem:

成功了,爽

[root@www Tim]# gem install rmagick –include-dependenciesINFO: `gem install -y` is now default and will be removedINFO: use –ignore-dependencies to install only the gems you listBuilding native extensions. This could take a while…Successfully installed rmagick-2.5.21 gem installed

灯红酒绿的城市,登上楼顶,俯视万家灯火,

解决Fedora下RMagic无法安装的问题

相关文章:

你感兴趣的文章:

标签云: