Next, we’ll need the RMagick gem as well. This may take a while and you’ll see MacPorts downloading and installing ImageMagick, done? Let’s get on with RMagick the same way we got ImageMagick: sudo /opt/local/bin/port install rb-rmagickĪgain, waiting, I think it took about 15 minutes to finish. The path to the port binary may be different but I suppose it’s the default installation directory, isn’t it? sudo /opt/local/bin/port install ImageMagick Once MacPorts is installed you can install ImageMagick via Terminal. Installing MacPorts is straightforward and shouldn't be a problem, download the newest MacPorts-x.x.x.dmg and install the package. You need Xcode installed for MacPorts to work. This port automatically installs ImageMagick and all the dependent libraries. Let’s start with installing MacPorts, formerly called DarwinPorts. MacPorts may install versions of the software that are out-of-date, so check this first if that’s critical for you. There are numerous ways to get ImageMagick and RMagick installed on Mac OS X and, I don’t even remember all the different ways I tried but the following method seems to work. GraphicsMagick is another image editor that can be used in combination with RMagick but I didn’t investigate. The RMagick interface makes image editing in Ruby painless, if you get it installed that is. ImageMagick is a command line utility to convert, edit and compose images that is typically used in combination with a programming language. Update: Check this installation script by Solomon White if you are running Snow Leopard. Getting up and running with RMagick on Mac OS X. Installing ImageMagick & RMagick for Ruby on Rails 17 October 2007 Installing ImageMagick & RMagick for Ruby on Rails - Suffix
0 Comments
Leave a Reply. |