Installing RMagick Gem On OS X 10.5 (Leopard)
My colleague has another installation instructions on OS X 10.4 (Tiger).
But for you lucky Leopard users here are a few easy steps you can take to install the RMagick Gem on OS X (Leopard).
Install developer tools
Leopard Install DVD > Optional Installs > Double Click ‘Optional Installs.mkpg’
If you do not install the developer tools you will not be able to continue.
Install Macports
http://darwinports.com/download/ > Double click ‘MacPorts-1.5.0.pkg’
Update Macports
Open a new terminal window.
$ sudo port -d selfupdate
Password:
Install Tiff Library And ImageMagick Executables
The tiff has to be installed with a special provision. If you just install as is you would get errors because of the OpenGL subsystem. So to avoid this problem you type in the same terminal window:
$ sudo port install tiff -macosx
Password:
Then:
$ sudo port install ImageMagick
Password:
And of course you may want to finish off with the rmagick gem itself!
$ sudo gem install rmagick
Password:
on December 21st, 2007 at 5:24 pm
Spiffing. Thanks
on November 6th, 2008 at 6:03 pm
After the DarwinPorts install, port was not in my path. To get it there I needed:
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
to prepend it to my current path.
on January 19th, 2009 at 5:08 pm
The PATH export is created in ~/.profile during the MacPorts installation. Just close and restart your terminal or type
. ~/.profile
to load .profile
on February 25th, 2009 at 7:15 pm
I had to add
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
to
~/.bash_login
on March 31st, 2009 at 6:12 pm
If you are running K SHELL , opening a new window will automatically add the /opt/local/bin to your PATH variable.
If you are using BASH shell, you will have to edit the .bash_profile to add /opt/local/bin to your PATH variable.