<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Codedrop™ Weblog &#187; MacPorts</title>
	<atom:link href="http://www.codedrop.ca/blog/archives/tag/macports/feed" rel="self" type="application/rss+xml" />
	<link>http://www.codedrop.ca/blog</link>
	<description>Drop'n some code and other tech tidbits...</description>
	<lastBuildDate>Sun, 01 Jan 2012 07:48:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Mysql, Rmagick on Snow Leopard, Homebrew to the rescue!</title>
		<link>http://www.codedrop.ca/blog/archives/214</link>
		<comments>http://www.codedrop.ca/blog/archives/214#comments</comments>
		<pubDate>Sun, 28 Feb 2010 06:30:00 +0000</pubDate>
		<dc:creator>groll</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[MacPorts]]></category>

		<guid isPermaLink="false">http://www.codedrop.ca/blog/?p=214</guid>
		<description><![CDATA[Well after sitting on my install disks for a few months I finally figured I better upgrade my primary MacBook Pro. As expected, my rails projects and several other things did not function&#8230;. Rmagick and MySql were borked as well.. After spending several nights reinstalling Xcode, updating my macports, trying to compile from src to [...]]]></description>
			<content:encoded><![CDATA[<p>Well after sitting on my install disks for a few months I finally figured I better upgrade my primary MacBook Pro.  As expected, my rails projects and several other things did not function&#8230;. Rmagick and MySql were borked as well..  </p>
<p>After spending several nights reinstalling Xcode, updating my macports, trying to compile from src to no avail I had someone recommend Homebrew to me.  At first I figured.. meh.. another package manager that won&#8217;t work&#8230; suprisingly.. it did!.. Macports is garbage in comparison.. so to get to the good stuff.. here&#8217;s the steps to take if you find yourself in this situation!</p>
<p>1) Best to start clean.. first thing was to wipe the macports installs.</p>
<p><code><br />
sudo port -f uninstall installed</p>
<p>sudo rm -rf /opt/local \<br />
/Applications/MacPorts \<br />
/Applications/DarwinPorts \<br />
/Library/Tcl/macports1.0 \<br />
/Library/Tcl/darwinports1.0 \<br />
/Library/LaunchDaemons/org.macports.* \<br />
/Library/StartupItems/DarwinPortsStartup \<br />
/Library/Receipts/MacPorts*.pkg \<br />
/Library/Receipts/DarwinPorts*.pkg \<br />
~/.macports<br />
</code></p>
<p>2) Download and install the latest XCode development tools..  your DVD is probably out of date.  Ensure that the optional components for command line development are installed (&#8220;Unix Development&#8221; in the Xcode 3.x installer). Also include the X11 items.</p>
<p>3) Rebooted and hold down &#8217;6&#8242; and &#8217;4&#8242; keys to switch to 64 bit mode&#8230; (by default snow leopard boots in 32 bit mode.. you can check this in the System Profiler).</p>
<p>4) Install homebrew<br />
sudo chown -R `whoami` /usr/local<br />
curl -L http://github.com/mxcl/homebrew/tarball/master | tar xz &#8211;strip 1 -C /usr/local<br />
brew install git</p>
<p>5) Install mysql<br />
brew install mysql<br />
export ARCHFLAGS=&#8221;-arch i386 -arch x86_64&#8243;<br />
gem install mysql &#8212; &#8211;with-mysql-dir=/usr/local \<br />
&#8211;with-mysql-config=/usr/local/bin/mysql_config</p>
<p>6) Install imagemagick<br />
brew install imagemagick</p>
<p>and finally:</p>
<p>7) sudo gem install rmagick</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/home/?status=Mysql%2C+Rmagick+on+Snow+Leopard%2C+Homebrew+to+the+rescue%21+http%3A%2F%2Ftinyurl.com%2F3a988sz" title="Post to Twitter"><img class="nothumb" src="http://www.codedrop.ca/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Mysql%2C+Rmagick+on+Snow+Leopard%2C+Homebrew+to+the+rescue%21+http%3A%2F%2Ftinyurl.com%2F3a988sz" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.codedrop.ca/blog/archives/214/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

