Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error installing in fedora 27 #11

Open
aoyawale opened this issue Aug 20, 2018 · 2 comments
Open

error installing in fedora 27 #11

aoyawale opened this issue Aug 20, 2018 · 2 comments

Comments

@aoyawale
Copy link

when I try gem install catpix

I get this errors:

gem install catpix                                                                                              2 ↵  6529  13:28:51 
Building native extensions.  This could take a while...
ERROR:  Error installing catpix:
	ERROR: Failed to build gem native extension.

    current directory: /home/jlozadad/.gem/ruby/gems/rmagick-2.16.0/ext/RMagick
/usr/bin/ruby -r ./siteconf20180820-16460-qlq0i5.rb extconf.rb
checking for gcc... yes
checking for Magick-config... no
checking for pkg-config... yes
Package MagickCore was not found in the pkg-config search path.
Perhaps you should add the directory containing `MagickCore.pc'
to the PKG_CONFIG_PATH environment variable
Package 'MagickCore', required by 'virtual:world', not found
checking for outdated ImageMagick version (<= 6.4.9)... *** 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}/lib64
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/usr/bin/$(RUBY_BASE_NAME)

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /home/jlozadad/.gem/ruby/extensions/x86_64-linux/2.4.0/rmagick-2.16.0/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /home/jlozadad/.gem/ruby/gems/rmagick-2.16.0 for inspection.
Results logged to /home/jlozadad/.gem/ruby/extensions/x86_64-linux/2.4.0/rmagick-2.16.0/gem_make.out

I check the log file:

find_executable: checking for gcc... -------------------- yes

--------------------

find_executable: checking for Magick-config... -------------------- no

--------------------

find_executable: checking for pkg-config... -------------------- yes

--------------------

Detected ImageMagick version: 
Can't install RMagick 2.16.0. You must have ImageMagick 6.4.9 or later.
Can't install RMagick 2.16.0. You must have ImageMagick 6.4.9 or later.

but, I have imagemagick installed

sudo dnf install ImageMagick                                                                                    1 ↵  6527  13:28:25 
Failed to synchronize cache for repo 'ippytraxx-gnome-twitch', disabling.
Last metadata expiration check: 0:00:09 ago on Mon 20 Aug 2018 01:28:25 PM EDT.
Package ImageMagick-1:6.9.9.38-1.fc27.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
@paulgoetze
Copy link

paulgoetze commented Oct 30, 2018

I had a similar problem (on Ubuntu, though). I needed to install the dev libs as well. Installing the Gem worked for me after running:

sudo apt install imagemagick libmagickwand-dev

@r33fyello
Copy link

Same on osx with : gem install catpix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants