The Computer Oracle

How to install rmagick on Ubuntu 10.04?

Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Flying Over Ancient Lands

--

Chapters
00:00 Question
01:16 Accepted answer (Score 128)
01:36 Answer 2 (Score 30)
01:46 Answer 3 (Score 5)
02:18 Answer 4 (Score 2)
02:40 Thank you

--

Full question
https://superuser.com/questions/163818/h...

Answer 3 links:
http://www.question-defense.com/2010/05/...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#ubuntu1004 #imagemagick #rubygems

#avk47



ACCEPTED ANSWER

Score 128


I think you also have to install libmagickwand-dev from the ubuntu archive:

sudo apt-get install libmagickwand-dev

This package contains the MagickWand.h file.




ANSWER 2

Score 30


sudo apt-get install libmagickwand-dev imagemagick



ANSWER 3

Score 5


I did as following step to build from source

> wget ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz
> tar -xzvf ImageMagick.tar.gz
> ./configure --prefix=/usr/local --with-x=no --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 --disable-openmp
> make
> sudo make install
> sudo /sbin/ldconfig /usr/local
> sudo ln -f /usr/local/bin/Magick-config /usr/bin/Magick-config
> sudo PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ gem install rmagick

Result

Building native extensions.  This could take a while...
Successfully installed rmagick-2.13.1
1 gem installed



ANSWER 4

Score 2


I had a similar problem and came across this post: http://www.question-defense.com/2010/05/18/centos-linux-cant-install-rmagick-2-7-0-cant-find-magick-config

After I installed libmagick9-dev i could install rmagick gem without problem. Hope this helps.