Solve the problem that RMagic cannot be installed in Fedora.

Source: Internet
Author: User
Tags imagemagick
The following ERROR occurs during initial installation: [root @ wwwTim] # geminstallrmagickBuildingnativeextensions. Thiscouldtakeawhile... ERROR: Errorinstallingrmagick: ERROR: Failed./usr/bin/rubyext

The following error occurs during initial installation:

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

/Usr/bin/ruby extconf. rb install rmagick
Checking for Ruby version> = 1.8.2... yes
Checking for gcc... yes
Checking for Magick-config... no
Can't install RMagick 2.5.2. could'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:/home/Tim/bin


* ** Extconf. rb failed ***
Cocould not create Makefile due to some reason, probably lack
Necessary libraries and/or headers. Check the mkmf. log file for more
Details. 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] #


The magick library is missing as prompted.

[Root @ www Tim] # yum install ImageMagick-devel
Loaded plugins: fastestmirror, presto, refresh-packagekit
Setting up and reading Presto delta metadata
No Presto metadata available for livna
No Presto metadata available for Fedora
No Presto metadata available for adobe-linux-i386
No Presto metadata available for updates
No Presto metadata available for freshrpms
No Presto metadata available for fusion
Loading 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: www. dfm. uninsubria. it
Setting up Install Process
Parsing package install arguments
Resolving 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. 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. 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 k
Installing for dependencies:
Ghostscript-devel x86_64 8.62-4. fc9 updates 44 k
Jasper x86_64 1.900.1-8. fc9 fedora 18 k
Lcms-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 k
Is this OK [y/N]: y
Downloading Packages:
Downloading DeltaRPMs:
Rebuilding rpms from deltarpms
(1/4): jasper-1.900.1-8.fc9.x86_64.rpm | 18 kB
(2/4): ghostscript-devel-8.62-4.fc9.x86_64.rpm | 44 kB
(3/4): lcms-devel-1.17-5.fc9.x86_64.rpm | 50 kB
(4/4): ImageMagick-devel-6.3.8.1-4.fc9.x86_64.rpm | 77 kB
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: jasper [1/4]
Error: failed to stat/media/disk: No such file or directory
Installing: ghostscript-devel [2/4]
Installing: lcms-devel [3/4]
Installing: ImageMagick-devel [2, 4/4]

Installed: ImageMagick-devel.x86_64 0: 6. 3.8.1-4. fc9
Dependency Installed: ghostscript-devel.x86_64. 62-4.fc9 jasper. x86_64. 900.1-8. fc9 lcms-devel.x86_64. 17-5.fc9
Complete!


Install gem again:

Success, great

[Root @ www Tim] # gem install rmagick -- include-dependencies
INFO: 'gem install-y' is now default and will be removed
INFO: use -- ignore-dependencies to install only the gems you list
Building native extensions. This cocould take a while...
Successfully installed rmagick-2.5.2
1 gem installed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.