You are viewing an archived version of danielfischer.com

 

An even easier way to install RMagick for Ruby on Rails development

Published: June 20th, 2007

Tired of long boring tutorials on how to install RMagick for Ruby on Rails development? Well, if you happen to use OSX, you’re in luck for a 5 minute solution!

Download darwin ports:
http://darwinports.com/download/

Open the image, install it. Set it up (should take no longer than 5 minutes)

Then type:
sudo port install imagemagick

Wait 10 minutes.

Done.

sudo gem install rmagick

Done.

You have imagemagick, it’s dependencies, and now a gem that will allow you to wrap it.

Much easier than this tutorial

[...] I came across this great piece of news and suddenly things clicked into place. [...]

[...] Daniel Fischer has a quick guide on Darwin Ports and the RMagick instalation, looks easy enough but I wanted more control over the installation so I ended up following Marc-André Cournoyer who wrote a very handy tutorial on installing everything by hand which I followed to the letter and amazingly it all worked out ok in the end. It seems making sure the fonts are on the right place did the trick. [...]

Thanks for this…

Easy way to install darwin ports:

curl -O http://svn.macports.org/repository/macports/downloads/DarwinPorts-1.3.2/DarwinPorts-1.3.2.tar.gz
tar xzvf DarwinPorts-1.3.2.tar.gz
cd DarwinPorts-1.3.2
./configure –prefix=/usr/local
make
sudo make install
cd ..

After this, I still wasn’t able to install ImageMagick using ports - I would get the error

No index(es) found! Have you synced your source indexes?

Then I found this:

sudo port selfupdate

Everything is magically fixed now! Hope that helps someone :)

gravatar
  • Dianna
  • Aug 14th

After installing the image of ports I can no loonger use my ruby gems it says they aint present. What is this problem

gravatar
  • Lyn Williams
  • Aug 22nd

Did you set up your paths?

gravatar

The RMagick command did not work for me, but using the rmagick-osx-installer seemed to have workd: http://rubyforge.org/frs/?group_id=12&release_id=21634

I had two errors though:

Summary: There were 2 failures

libpng was not installed successfully
libjpeg was installed successfully
ghostscript was installed successfully
ghostscript-fonts-std was installed successfully
FreeType was installed successfully
libwmf was not installed successfully
ImageMagick was installed successfully
RMagick was installed successfully
Removing rm_install_tmp directory…Done

gravatar
Enter your comment

Ready. Set. Go.

In terms of the formatting, you're allowed to use markdown, textile, or basic html; it's truly up to you -- what strikes your fancy?

You don't have to worry about your e-mail address being sold to a russian-spam-mafia. I'm only going to use it for my own weird needs; like asking you out for a date on a lonely night of coding.