<?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/"
	>

<channel>
	<title>johnnypez.com</title>
	<atom:link href="http://www.johnnypez.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johnnypez.com</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Thu, 08 Jul 2010 21:52:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Hex to UIColor</title>
		<link>http://www.johnnypez.com/design-development/hex-to-uicolor/</link>
		<comments>http://www.johnnypez.com/design-development/hex-to-uicolor/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 08:59:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Design & Development]]></category>

		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.johnnypez.com/?p=159</guid>
		<description><![CDATA[Alrighty, just a quick one.
I&#8217;ve been looking all over for something that quickly gives me the code for a UIColor when given a HEX colour.
I couldn&#8217;t find one so I whipped one up double quick.
http://scratch.johnnypez.com/hex-to-uicolor
]]></description>
			<content:encoded><![CDATA[<p>Alrighty, just a quick one.<br />
I&#8217;ve been looking all over for something that quickly gives me the code for a UIColor when given a HEX colour.<br />
I couldn&#8217;t find one so I whipped one up double quick.</p>
<p><a href="http://scratch.johnnypez.com/hex-to-uicolor" title="Convert Hex to UIColor">http://scratch.johnnypez.com/hex-to-uicolor</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnnypez.com/design-development/hex-to-uicolor/feed/</wfw:commentRss>
		</item>
		<item>
		<title>ifconfig eth0 shows packet errors</title>
		<link>http://www.johnnypez.com/linux/ifconfig-eth0-shows-packet-errors/</link>
		<comments>http://www.johnnypez.com/linux/ifconfig-eth0-shows-packet-errors/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 15:20:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.johnnypez.com/?p=144</guid>
		<description><![CDATA[Just a quick note on problem I came up against today.
I monitor one of my production servers (running Ubuntu 7.10 server) with Munin and through this I had noticed a lot of errors on network interface eth0.
I had a quick look with ifconfig eth0 to see what was going on. These were the lines of [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick note on problem I came up against today.<br />
I monitor one of my production servers (running Ubuntu 7.10 server) with Munin and through this I had noticed a lot of errors on network interface eth0.</p>
<p>I had a quick look with <code>ifconfig eth0</code> to see what was going on. These were the lines of interest from the output:</p>
<pre>
RX packets:404933416 errors:0 dropped:0 overruns:0 frame:0
TX packets:501341708 errors:31383248 dropped:0 overruns:11 carrier:62766496
</pre>
<p>Obviously something is not right.<br />
I spent a while reading through log files to no avail, this isn&#8217;t really my area of expertise so I gave in and contacted my hosting provider.<br />
<span id="more-144"></span><br />
A Digiweb engineer got back to me very quickly advising me to check if the network interface was running at half-duplex.<br />
I used ethtool to check this out: </p>
<pre>
john:~$ sudo ethtool eth0
Settings for eth0:
	Supported ports: [ TP MII ]
	Supported link modes:   10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	Supports auto-negotiation: Yes
	Advertised link modes:  10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/Full
	Advertised auto-negotiation: Yes
	Speed: 10Mb/s
	Duplex: Half
	Port: MII
	PHYAD: 32
	Transceiver: internal
	Auto-negotiation: on
	Supports Wake-on: pumbg
	Wake-on: d
	Current message level: 0x00000007 (7)
	Link detected: yes
</pre>
<p>The interface was only running at 10Mb/s half-duplex.<br />
It seems auto-negotiation of the link had failed.</p>
<pre>john:~$ sudo mii-tool eth0
eth0: autonegotiation failed, link ok</pre>
<p>I fixed this be turning off auto-negotiation and applying the desired settings to eth0 with the following command:</p>
<pre>john:~$ ethtool -s eth0 speed 100 duplex full autoneg off</pre>
<p>Then to make sure this is always done with the interface is being brought up I added that command to /etc/network/interfaces just after the iface line:</p>
<pre>iface eth0 inet static
pre-up /usr/sbin/ethtool -s eth0 speed 100 duplex full autoneg off</pre>
<p>Having done this, the error count on eth0 hasn&#8217;t increased. Job done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnnypez.com/linux/ifconfig-eth0-shows-packet-errors/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Unable to find a $JAVA_HOME at &#8230; on Mac OSX</title>
		<link>http://www.johnnypez.com/design-development/unable-to-find-a-java_home-at-on-mac-osx/</link>
		<comments>http://www.johnnypez.com/design-development/unable-to-find-a-java_home-at-on-mac-osx/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 09:44:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Design & Development]]></category>

		<category><![CDATA[java]]></category>

		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://www.johnnypez.com/?p=140</guid>
		<description><![CDATA[I recently switched my Java versions from 1.5 to 1.6 and I&#8217;ve been hitting some issues with the java path.
I tried setting the environment variable JAVA_HOME=/usr and that worked for some stuff but I still saw this error when running java.
eg:
>java -version
Unable to find a $JAVA_HOME at &#8220;/usr&#8221;, continuing with system-provided Java
I solved the problem [...]]]></description>
			<content:encoded><![CDATA[<p>I recently switched my Java versions from 1.5 to 1.6 and I&#8217;ve been hitting some issues with the java path.<br />
I tried setting the environment variable <code>JAVA_HOME=/usr</code> and that worked for some stuff but I still saw this error when running java.<br />
eg:<br />
<code>>java -version<br />
Unable to find a $JAVA_HOME at &#8220;/usr&#8221;, continuing with system-provided Java</code></p>
<p>I solved the problem by doing the following.<br />
First I found out where java actually was with:<br />
<code>>ls -l' `which java`<br />
/usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java</code></p>
<p>I noticed a command called java_home in that same directory. Running that command yields the correct java home directory.<br />
<code>>/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java_home<br />
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home</code></p>
<p>To correctly set the my JAVA_HOME environment variable in future, I added the following to my <code>~/.profile</code></p>
<p><code>export JAVA_HOME=`/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java_home`</code></p>
<p>Once you have done this you can restart your terminal window or run <code>>. ~/.profile</code> to reload you profile into the current terminal session.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnnypez.com/design-development/unable-to-find-a-java_home-at-on-mac-osx/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Compiling Nginx with Phusion Passenger on OSX</title>
		<link>http://www.johnnypez.com/web-design-and-development/compiling-nginx-with-phusion-passenger-on-osx/</link>
		<comments>http://www.johnnypez.com/web-design-and-development/compiling-nginx-with-phusion-passenger-on-osx/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 09:21:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Design & Development]]></category>

		<guid isPermaLink="false">http://www.johnnypez.com/?p=126</guid>
		<description><![CDATA[It took me a little while to get passenger set up with Nginx because I wanted to compile Nginx separately instead of using the tool provided with the passenger gem.  I have it all working now so here&#8217;s how I did it. I&#8217;m running OSX Leopard but this should be fine on any Linux [...]]]></description>
			<content:encoded><![CDATA[<p>It took me a little while to get passenger set up with Nginx because I wanted to compile Nginx separately instead of using the tool provided with the passenger gem.  I have it all working now so here&#8217;s how I did it. I&#8217;m running OSX Leopard but this should be fine on any Linux distro too.<br />
<span id="more-126"></span></p>
<pre>
sudo gem install passenger
cd `passenger-config --root`
rake nginx
</pre>
<p>Download latest stable nginx tarball. (currently 0.6.36) to the directory of your choice, then, in that directory</p>
<pre>
tar -xzf nginx-0.6.36.tar.gz
cd nginx-0.6.36
./configure --with-http_ssl_module --add-module=`passenger-config --root`/ext/nginx
make
sudo make install
</pre>
<p>OR</p>
<p>If you already have nginx installed you might just want to copy the nginx binary from objs/nginx and replace the existing nginx binary with that.</p>
<pre>
cp -f objs/nginx /usr/local/nginx/sbin/nginx
</pre>
<p>Edit the nginx.conf (should be in /usr/local/nginx/conf) to add passenger_root, again you can get this path with <code>passenger-config --root</code>.<br />
Create a virtual host with a root in the rails app public dir and set <code>passenger_enabled on;</code> also set <code>rails_env development;</code>. It is important that the server <code>root</code> directive is set to the public directory of your rails app.</p>
<p>The following is an excerpt from my nginx.conf with passenger relevant config only:</p>
<pre>
http {
  #
  #
  passenger_root /Library/Ruby/Gems/1.8/gems/passenger-2.2.2;
  #
  #
  server {
    listen 80;
    server_name www.example.com;
    root /some/path/to/my_rails_app/public;
    passenger_enabled on;
    rails_env development;
  }
  #
  #
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.johnnypez.com/web-design-and-development/compiling-nginx-with-phusion-passenger-on-osx/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Getting WP-Super-Cache to work with Wordpress on Nginx</title>
		<link>http://www.johnnypez.com/web-design-and-development/getting-wp-super-cache-to-work-with-wordpress-on-nginx/</link>
		<comments>http://www.johnnypez.com/web-design-and-development/getting-wp-super-cache-to-work-with-wordpress-on-nginx/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 10:24:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Design & Development]]></category>

		<category><![CDATA[nginx]]></category>

		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[wp-super-cache]]></category>

		<guid isPermaLink="false">http://www.johnnypez.com/?p=121</guid>
		<description><![CDATA[I was setting up WP-Super-Cache yesterday when I ran into this gotcha, I&#8217;ve done this before so I should have known better, I&#8217;m blogging it now so that I don&#8217;t forget and anyone else with this issue can be saved some hassle.
Essentially WP-Super-Cache was only half on, it could generate wp-cache files but was not [...]]]></description>
			<content:encoded><![CDATA[<p>I was setting up WP-Super-Cache yesterday when I ran into this gotcha, I&#8217;ve done this before so I should have known better, I&#8217;m blogging it now so that I don&#8217;t forget and anyone else with this issue can be saved some hassle.</p>
<p>Essentially WP-Super-Cache was only half on, it could generate wp-cache files but was not creating static cache files.  The reason for this was that the querystring always contained at least one value even though it wasn&#8217;t in my URLs. That drove me crazy until I remembered this morning that the recommended Nginx setup was the problem the last time. The reason for this is the following part of the Nginx config that rewrites any non existing file requests to Wordpress&#8217; index.php</p>
<p><code><br />
      if (!-e $request_filename) {<br />
        rewrite ^(.+)$ /index.php?q=$1 last;<br />
      }<br />
</code></p>
<p>This will cause WP-Super-Cache to never generate any static cache files since one of its conditions for doing so is that the querystring is empty.<br />
If your Nginx config has this, try changing removing the <code>?q=$1</code> as below:</p>
<p><code><br />
      if (!-e $request_filename) {<br />
        rewrite ^(.+)$ /index.php last;<br />
      }<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnnypez.com/web-design-and-development/getting-wp-super-cache-to-work-with-wordpress-on-nginx/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Sharing Wireless iMac connection to PS3</title>
		<link>http://www.johnnypez.com/uncategorized/sharing-wireless-imac-connection-to-ps3/</link>
		<comments>http://www.johnnypez.com/uncategorized/sharing-wireless-imac-connection-to-ps3/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 09:22:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.johnnypez.com/?p=116</guid>
		<description><![CDATA[My girlfriend won a PS3 at work yesterday. So yeah, Christmas came early for me!  Before I started any gaming I wanted to see what the media centre capabilities were but I ran into some trouble with the wireless setup. Here&#8217;s what I did. This is not meant to be a beginners step by step [...]]]></description>
			<content:encoded><![CDATA[<p>My girlfriend won a PS3 at work yesterday. So yeah, Christmas came early for me!  Before I started any gaming I wanted to see what the media centre capabilities were but I ran into some trouble with the wireless setup. Here&#8217;s what I did. This is not meant to be a beginners step by step guide but It will point you in the right direction if you run into this problem.</p>
<p><span id="more-116"></span></p>
<p>To start, I shared my broadband connection through my iMac&#8217;s in-built Airport, setting up a 40/64bit WEP passphrase in the process.  Then on the PS3 I went to the Network Settings menu and scanned for a wireless connection. It picked up my shared wireless connection right away, I then chose WEP for the security and entered the passphrase that I set up.</p>
<p>It seemed that was mistake number one.  The only way I could get this WEP key to work was to enter the HEX version of the passphrase.  OSX doesn&#8217;t show you the HEX version of your key so I popped over to this site : http://www.andrewscompanies.com/tools/wep.asp and entered a passphrase to get the HEX equivalent. So for example <code>ASCII: fubar = HEX: 6675626172</code></p>
<p>I entered the 10 characther HEX key and that got me to the next step.</p>
<p>Note: Stronger encryption keys will be longer, 128bit WEP uses a 13 character passphrase or 26 character hex key.</p>
<p>The second place where I ran into trouble was with DHCP. It just doesn&#8217;t work for me with some devices. My iPod Touch gets its IP address without any trouble but the PS3 just wouldn&#8217;t. Luckily I had just been through the same trouble with my Nokia E51 last week so I knew that I had to assign addresses manually.</p>
<p>My iMac&#8217;s Airport issues addresses in the range 10.0.2.x, so I jumped into the PS3 custom network setup and manually assigned it an IP address of 10.0.2.5, subnet mask remains at 255.255.255.0,  the router address in this case is 10.0.2.1, and the DNS primary address I set to the address of my broadband router which is 192.168.1.1.</p>
<p>After that everything was up and running.</p>
<p>I fired up <a title="Nullriver MediaLink" href="http://www.nullriver.com/products/medialink" target="_blank">Nullriver MediaLink</a> (which is just brilliant btw) to share media content from my iMac and I was browsing my movies and music from the comfort of my couch in no time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnnypez.com/uncategorized/sharing-wireless-imac-connection-to-ps3/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Moved to Slicehost</title>
		<link>http://www.johnnypez.com/uncategorized/moved-to-slicehost/</link>
		<comments>http://www.johnnypez.com/uncategorized/moved-to-slicehost/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 09:30:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.johnnypez.com/?p=114</guid>
		<description><![CDATA[I completed my move from GoDaddy to Slicehost over the weekend. My move to a grown up host was long overdue. I went with a 256mb slice to start with and Ubuntu 8.04.  I have to say Slicehost are superb and I&#8217;d recommend them to anyone, my only problem, though it&#8217;s not their fault is [...]]]></description>
			<content:encoded><![CDATA[<p>I completed my move from GoDaddy to Slicehost over the weekend. My move to a grown up host was long overdue. I went with a 256mb slice to start with and Ubuntu 8.04.  I have to say Slicehost are superb and I&#8217;d recommend them to anyone, my only problem, though it&#8217;s not their fault is that I do notice a small bit of latency when I&#8217;m issuing commands over ssh, but hey I&#8217;m almost on the other side of the world, what can you do?</p>
<p>I&#8217;m now running Wordpress 2.7 served up with Nginx and PHP over fast-cgi. I don&#8217;t get much traffic but if I ever do I&#8217;ll be able to handle it.</p>
<p>That&#8217;s all for now. Enjoy the Holidays.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnnypez.com/uncategorized/moved-to-slicehost/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Glen Hansard - Say it to me now</title>
		<link>http://www.johnnypez.com/music/song-of-the-week/glen-hansard-say-it-to-me-now/</link>
		<comments>http://www.johnnypez.com/music/song-of-the-week/glen-hansard-say-it-to-me-now/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 14:36:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Song Of The Week]]></category>

		<guid isPermaLink="false">http://blog.johnnypez.com/?p=113</guid>
		<description><![CDATA[
So long since I&#8217;ve posted a song of the week. Laziness really, or maybe just lack of songs that I really felt good about. I never really gave Glen Hansard much attention until I watched Once. I can&#8217;t stop listening to him now. And this track &#8216;Say it to me now&#8217; has gone straight into [...]]]></description>
			<content:encoded><![CDATA[<div class="youtube"><object width="357" height="266"><param name="movie" value="http://www.youtube.com/v/NXRwplFTh_Y&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/NXRwplFTh_Y&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="357" height="266"></embed></object></div>
<p>So long since I&#8217;ve posted a song of the week. Laziness really, or maybe just lack of songs that I really felt good about. I never really gave Glen Hansard much attention until I watched Once. I can&#8217;t stop listening to him now. And this track &#8216;Say it to me now&#8217; has gone straight into my all-time favourite songs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnnypez.com/music/song-of-the-week/glen-hansard-say-it-to-me-now/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Problem installing Rubygems on Ubuntu</title>
		<link>http://www.johnnypez.com/uncategorized/problem-installing-rubygems-on-ubuntu/</link>
		<comments>http://www.johnnypez.com/uncategorized/problem-installing-rubygems-on-ubuntu/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 09:01:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.johnnypez.com/?p=111</guid>
		<description><![CDATA[I was installing Rubygems 1.2.0 on Ubuntu 7.04 on Friday, something I&#8217;ve done many times but for the first time I saw this error when I ran sudo ruby setup.rb
./lib/rubygems/spec_fetcher.rb:1:in `require': no such file to load -- zlib (LoadError)
	from ./lib/rubygems/spec_fetcher.rb:1
	from ./lib/rubygems/source_index.rb:10:in `require'
	from ./lib/rubygems/source_index.rb:10
	from ./lib/rubygems.rb:767:in `require'
	from ./lib/rubygems.rb:767
	from setup.rb:22:in `require'
	from setup.rb:22
Having a look around the web yielded [...]]]></description>
			<content:encoded><![CDATA[<p>I was installing Rubygems 1.2.0 on Ubuntu 7.04 on Friday, something I&#8217;ve done many times but for the first time I saw this error when I ran <code>sudo ruby setup.rb</code></p>
<pre>./lib/rubygems/spec_fetcher.rb:1:in `require': no such file to load -- zlib (LoadError)
	from ./lib/rubygems/spec_fetcher.rb:1
	from ./lib/rubygems/source_index.rb:10:in `require'
	from ./lib/rubygems/source_index.rb:10
	from ./lib/rubygems.rb:767:in `require'
	from ./lib/rubygems.rb:767
	from setup.rb:22:in `require'
	from setup.rb:22</pre>
<p>Having a look around the web yielded several approaches to solve the problem but no solution so I decided to build Zlib from source, then rebuild Ruby and then install Rubygems. That worked.<br />
<span id="more-111"></span></p>
<p>Here it is step by step.<br />
I assume you already have the ruby and rubygems sources at this point.</p>
<ol>
<li>Change directory to wherever you keep source files. I use ~/src. Download and extract the Zlib source tarball to that directory.
<pre>    cd ~/src
    wget http://www.zlib.net/zlib-1.2.3.tar.gz
    tar -xzf zlib-1.2.3.tar.gz</pre>
</li>
<li>Build Zlib
<pre>    cd ./zlib-1.2.3
    ./configure
    make
    sudo make install</pre>
</li>
<li>Rebuild ruby
<pre>    cd ~/src/ruby-1.8.6-p114
    ./configure
    make
    sudo make install</pre>
</li>
<li>and finally install Rubygems
<pre>    cd ~/src/rubygems-1.2.0
    sudo ruby setup.rb</pre>
</li>
</ol>
<p>You should be up and running now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnnypez.com/uncategorized/problem-installing-rubygems-on-ubuntu/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mysql gem on OSX Leopard</title>
		<link>http://www.johnnypez.com/uncategorized/mysql-gem-on-osx-leopard/</link>
		<comments>http://www.johnnypez.com/uncategorized/mysql-gem-on-osx-leopard/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 10:04:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.johnnypez.com/?p=110</guid>
		<description><![CDATA[Just a quick note on a problem I ran into this morning.
I needed the mysql gem so I ran gem install mysql only to find I got the following error:
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. 
The solution was to use the following:
gem install mysql [...]]]></description>
			<content:encoded><![CDATA[<p>Just a quick note on a problem I ran into this morning.</p>
<p>I needed the mysql gem so I ran <code>gem install mysql</code> only to find I got the following error:</p>
<p><code>*** extconf.rb failed ***<br />
Could not create Makefile due to some reason, probably lack of<br />
necessary libraries and/or headers. </code></p>
<p>The solution was to use the following:<br />
<code>gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config</code></p>
<p>It should work as long as the path to mysql_config is correct, you may need to change the path for your own system. You can check the path to mysql_config with: <code>which mysql_config</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.johnnypez.com/uncategorized/mysql-gem-on-osx-leopard/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
