In the past, I used RMagick as well as Imagemagick, and recently I installed a new version of RMagick.
When I rebooted my rails server, I received errors. So I decided to remove the first imagemagick (from brew) and then remove rmagick.
I tried reinstalling rmagick and I have some problems (the first of which I cannot install from the bundle command). I tried gem install rmagick -v '2.13.1' , but I got the following permission error:
ERROR: While executing gem ... (Errno::EACCES) Permission denied - /Users/username/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper
I also tried with sudo and got
ERROR: While executing gem ... (Errno::EACCES) Permission denied - /Users/username/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper usercomputer:~ Username$ sudo gem install rmagick -v '2.13.1' Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. /Users/username/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb checking for Ruby version >= 1.8.5... yes extconf.rb:128: Use RbConfig instead of obsolete and deprecated Config. checking for /usr/bin/gcc-4.2... yes checking for Magick-config... no Can't install RMagick 2.13.1. Can't find Magick-config in /Users/username/.rvm/gems/ruby-1.9.3-p194/bin:/Users/Aurelien/.rvm/gems/ruby-1.9.3-p194@global/bin:/Users/username/.rvm/rubies/ruby-1.9.3-p194/bin:/Applications/MAMP/bin/php5/bin:/Applications/MAMP/htdocs/cake/cake/cake/console:/Users/username/.rvm/gems/ruby-1.9.3-p194/bin:/Users/username/.rvm/gems/ruby-1.9.3-p194@global/bin:/Users/username/.rvm/rubies/ruby-1.9.3-p194/bin:/Users/username/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/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:
Of course, I did something wrong along the way, but I'm not sure what?
Thank you for your answers.
ruby-on-rails gem rmagick
Aurelien Schlumberger Jan 16 '13 at 10:07 2013-01-16 10:07
source share