A
A
Alexey2016-05-30 23:14:50
ruby
Alexey, 2016-05-30 23:14:50

How to fix gem install rmagick -v 2.15.4 error?

Good afternoon!
Faced a problem while installing on centos 7 gem install rmagick -v 2.15.4

Building native extensions.  This could take a while...
ERROR:  Error installing rmagick:
ERROR: Failed to build gem native extension.

    /usr/bin/ruby extconf.rb
checking for gcc... yes
checking for Magick-config... no
checking for pkg-config... yes
...
Gem files will remain installed in /usr/local/share/gems/gems/rmagick-2.15.4 for inspection.
Results logged to /usr/local/share/gems/gems/rmagick-2.15.4/ext/RMagick/gem_make.out

I found many solutions on the Internet, but none of them worked for me. How can this problem be solved? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuzin, 2016-05-31
@Bobson8

The installer complains about the dependency - Magick-config. Install it and run the installation again. If the package is already installed in the system, then most likely the compiler does not see it, write the path to it in /usr/bin/ruby/extconf.rb
For more details on the cause of the problem, read the log /usr/local/share/gems/gems/ rmagick-2.15.4/ext/RMagick/gem_make.out
PS Here it is advised to check the ruby ​​version - there may be jambs with it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question