Entries tagged with “Rmagick”.
Did you find what you wanted?
Thu 22 Dec 2011
Problem
You want to use the rmagick gem in your rails application after a new (K)ubuntu system installation, but the bundler command gives you errors.
Solution
Install the following before running budler again:
sudo apt-get install imagemagick libmagickcore-dev libmagickwand-dev
Fri 17 Jun 2011
Problem
You want to use the rmagick gem in your ruby on rails project, but you need to install the imagemagick first.
Solution
If Imagemagick is not already installed, use the following to install it:
$ sudo apt-get install imagemagick
Then install the development librarires for both the imagemagick and the MagickWand as in:
$ sudo apt get install libmagick-dev libmagickwand-dev
You should then be able to install and use the rmagick gem
Fri 17 Jun 2011
Problem
You want to use the rmagick gem in your ruby on rails project, but you need to install the imagemagick first.
Solution
If Imagemagick is not already installed, use the following to install it:
$ sudo urpmi imagemagick
Then install the development library for the 64bit version as in:
$ sudo urpmi lib64magick-devel
You should then be able to install and use the rmagick gem
Tue 13 Jul 2010
Problem
Cannot install RMagick as there is an error about nob being able to find some shared libraries.
Solution
After reading the RMagick installation FAQ it seem there is a problem with the LD_LIBRARY_PATH that cannot find the needed libraries as they are installed in /usr/local/lib instead of /usr/lib.
Doing a quick search revealed that people suggest that the LD_LIBRARY_PATH shouldn’t be changed, for various reasons.
So, the quick solution is to create a couple of symbolic links for the libraries that cannot be found, ie:
sudo ln -s /usr/local/lib/libMagickWand.so.4 /usr/lib/libMagickWand.so.4
ln -s /usr/local/lib/libMagickCore.so.4 /usr/lib/libMagickCore.so.4
Thu 18 Mar 2010
Problem
You have just deployed your rails application to dreamhost but you are getting this error from passenger.
Solution
There was a change in the ImageMagic between versions 6.4.3 and 6.4.4 from the affinity function to remap.
If you don’t want, or don’t have time to recompile the ImageMagick and install the rmagick gem, you can comment out the two declarations for the alias functions, located around lines 782 and 1525 in the file rmagick-2.12.2/lib/RMagick.rb:
alias_method :affinity, :remap