Project

General

Profile

Can't find Magick-config

Added by Syed Habib M Siddikali almost 10 years ago

I am using Red Hat Enterprise Linux Server release 6.5.

I am trying to install Redmine2.5.2 for past day.
I had met an issue while using bundle install

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /usr/local/rvm/rubies/ruby-1.9.3-p547/bin/ruby extconf.rb 
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 2.13.2. Can't find Magick-config in /usr/lib64/ImageMagick-6.5.4/:/usr/local/rvm/gems/ruby-1.9.3-p547/bin:/usr/local/rvm/gems/ruby-1.9.3-p547@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p547/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/rvm/bin

*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
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/local/rvm/rubies/ruby-1.9.3-p547/bin/ruby

extconf failed, exit code 1

Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.3-p547/gems/rmagick-2.13.2 for inspection.
Results logged to /usr/local/rvm/gems/ruby-1.9.3-p547/extensions/x86_64-linux/1.9.1/rmagick-2.13.2/gem_make.out
An error occurred while installing rmagick (2.13.2), and Bundler cannot continue.
Make sure that `gem install rmagick -v '2.13.2'` succeeds before bundling.

How can I fix this?


Replies (2)

RE: Can't find Magick-config - Added by Jan Niggemann (redmine.org team member) almost 10 years ago

If you enter Can't find Magick-config in google, the first hit is: http://stackoverflow.com/questions/5201689/rmagick-gem-install-cant-find-magick-config
It suggests installing missing dev libraries, have you tried this?

RE: Can't find Magick-config - Added by Syed Habib M Siddikali almost 10 years ago

That wouldn't help me.

I tried this: https://gist.github.com/sorsucrel/6f79f4b2f86290b03766 and installed manually.

wget ftp://mirror.switch.ch/pool/4/mirror/scientificlinux/6rolling/x86_64/os/Packages/ImageMagick-6.5.4.7-6.el6_2.x86_64.rpm
wget ftp://195.220.108.108/linux/centos/6.5/os/x86_64/Packages/ghostscript-devel-8.70-19.el6.x86_64.rpm
wget ftp://mirror.switch.ch/pool/4/mirror/scientificlinux/6rolling/x86_64/os/Packages/jasper-devel-1.900.1-15.el6_1.1.x86_64.rpm
wget ftp://mirror.switch.ch/pool/4/mirror/scientificlinux/6rolling/x86_64/os/Packages/lcms-devel-1.19-1.el6.x86_64.rpm
wget ftp://rpmfind.net/linux/centos/6.5/os/x86_64/Packages/ImageMagick-devel-6.5.4.7-6.el6_2.x86_64.rpm

sudo rpm -ivh ImageMagick-6.5.4.7-6.el6_2.x86_64.rpm
sudo rpm -ivh ghostscript-devel-8.70-19.el6.x86_64.rpm
sudo rpm -ivh jasper-devel-1.900.1-15.el6_1.1.x86_64.rpm
sudo rpm -ivh lcms-devel-1.19-1.el6.x86_64.rpm
sudo rpm -ivh ImageMagick-devel-6.5.4.7-6.el6_2.x86_64.rpm

It helped me a charm to fix the issue.

Thank you for your reply.

    (1-2/2)