<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-24562432</id><updated>2012-01-29T14:10:27.822-05:00</updated><title type='text'>thoughts from left field</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://lfthoughts.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/24562432/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://lfthoughts.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Will Groppe</name><uri>http://www.blogger.com/profile/13343259743030304381</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-24562432.post-114306701554074475</id><published>2006-03-22T17:19:00.000-05:00</published><updated>2006-05-16T08:10:06.640-04:00</updated><title type='text'>Mac OS X &amp; Rails &amp; ImageMagick without the kruft</title><content type='html'>Recently I got one of the new Intel iMacs, and I wanted to move all my Rails development over to it.  Most things went very easily, however ImageMagick doesn't seem to have a binary for Intel Macs just yet.  I decided to try and install it from source.  It was actually very easy to do.  So if you don't feel like installing Darwin Ports/Fink just to get ImageMagick read on.&lt;br /&gt;&lt;br /&gt;If you're not comfortable dealing with the Terminal/shell access then you may want to wait for the binary release, or go the Darwin Ports/Fink route.&lt;br /&gt;&lt;br /&gt;Ideally you should have followed the Rails installation tutorial at &lt;a href="http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger"&gt;Hivelogic&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Basically you need to have your path setup to look in /usr/local/bin for binaries.  If you need help doing that, have a look at the aforementioned article.&lt;br /&gt;&lt;br /&gt;Start up Terminal(usually located in the /Applications folder).&lt;br /&gt;&lt;br /&gt;At the prompt enter:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;mkdir src&lt;br /&gt;cd src&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Now we're ready to get and install the required software.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note: the order here is important.&lt;/b&gt;&lt;br /&gt;&lt;h3&gt;PNG&lt;/h3&gt;&lt;br /&gt;This supports PNG files.  If you don't need support you can safely skip it.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;curl -O ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.2.8-config.tar.gz&lt;br /&gt;tar zxvf libpng-1.2.8-config.tar.gz&lt;br /&gt;cd libpng-1.2.8-config&lt;br /&gt;./configure --prefix=/usr/local&lt;br /&gt;make&lt;br /&gt;sudo make install&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;i&gt;Notes:&lt;/i&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;simplesystems ftp site seems a bit moody.  You can also get the library from &lt;a href="http://sourceforge.net/project/showfiles.php?group_id=5624"&gt;SourceForge&lt;/a&gt;.&lt;br /&gt;&lt;li&gt;PNG 1.2.10, the latest version seems to have build problems on Mac OS X, try getting 1.2.8 from sourceforge.&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h3&gt;JPEG&lt;/h3&gt;&lt;br /&gt;Pretty much everyone needs this.  Unfortunately it's the most troublesome to compile and &lt;br /&gt;install correctly.  Follow the directions carefully.  Note:  The single quotes in the fourth line &lt;br /&gt;are backquotes, not regular quotes.  (see the tilda key)&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;curl -O http://www.ijg.org/files/jpegsrc.v6b.tar.gz&lt;br /&gt;tar zxvf jpegsrc.v6b.tar.gz&lt;br /&gt;cd jpeg-6b&lt;br /&gt;ln -s `which glibtool` ./libtool&lt;br /&gt;export MACOSX_DEPLOYMENT_TARGET=10.4&lt;br /&gt;./configure --enable-shared --prefix=/usr/local&lt;br /&gt;make&lt;br /&gt;sudo make install&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;h3&gt;TIFF&lt;/h3&gt;&lt;br /&gt;Everyone needs this as well.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;curl -O ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.8.2.tar.gz&lt;br /&gt;tar zxvf tiff-3.8.2.tar.gz&lt;br /&gt;cd tiff-3.8.2&lt;br /&gt;./configure --prefix=/usr/local&lt;br /&gt;make&lt;br /&gt;sudo make install&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;h3&gt;ImageMagick&lt;/h3&gt;&lt;br /&gt;The big tamale!  The [VERSION] tag below denotes the version of ImageMagick you actually got.  ImageMagick.tar.gz is a link to the latest version of ImageMagick, so the version will change as they do new releases. &lt;br /&gt;&lt;pre&gt;&lt;br /&gt;curl -O ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz&lt;br /&gt;tar zxvf ImageMagick.tar.gz&lt;br /&gt;cd ImageMagick-[VERSION]&lt;br /&gt;./configure --without-perl&lt;br /&gt;make&lt;br /&gt;sudo make install&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;i&gt;Updated to use the latest version via the linked file.&lt;/i&gt;&lt;br /&gt;&lt;h3&gt;RMagick&lt;/h3&gt;&lt;br /&gt;One more step, add the ruby bindings to ImageMagick.  You may get some errors during the Rdoc &lt;br /&gt;install phase, you can safely ignore them.&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;sudo gem install rmagick&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Woot!  You're done.  Have a beverage, and get down to work.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/24562432-114306701554074475?l=lfthoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://lfthoughts.blogspot.com/feeds/114306701554074475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=24562432&amp;postID=114306701554074475' title='38 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/24562432/posts/default/114306701554074475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/24562432/posts/default/114306701554074475'/><link rel='alternate' type='text/html' href='http://lfthoughts.blogspot.com/2006/03/mac-os-x-rails-imagemagick-without.html' title='Mac OS X &amp; Rails &amp; ImageMagick without the kruft'/><author><name>Will Groppe</name><uri>http://www.blogger.com/profile/13343259743030304381</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>38</thr:total></entry></feed>
