<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Ruby, Leopard and gems</title>
	<link>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/</link>
	<description>we don't believe in slogans</description>
	<pubDate>Fri, 05 Sep 2008 23:20:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1</generator>

	<item>
		<title>By: Doggie</title>
		<link>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-19219</link>
		<author>Doggie</author>
		<pubDate>Thu, 25 Oct 2007 21:16:01 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-19219</guid>
					<description>"sudo gem install mysql -- -arch i386" might also work.</description>
		<content:encoded><![CDATA[<p>&#8220;sudo gem install mysql &#8212; -arch i386&#8243; might also work.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: sd</title>
		<link>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-19220</link>
		<author>sd</author>
		<pubDate>Thu, 25 Oct 2007 21:20:19 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-19220</guid>
					<description>Doggie, it doesn't work, because ruby's extconf still inserts it's own flags, so you end up with -arch i386 --more-flags-here -arch ppc -arch i386</description>
		<content:encoded><![CDATA[<p>Doggie, it doesn&#8217;t work, because ruby&#8217;s extconf still inserts it&#8217;s own flags, so you end up with -arch i386 &#8211;more-flags-here -arch ppc -arch i386</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: lrz</title>
		<link>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-19229</link>
		<author>lrz</author>
		<pubDate>Thu, 25 Oct 2007 21:54:39 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-19229</guid>
					<description>Alternatively, you can configure the sudoers file to pass ARCHFLAGS ($ sudo visudo).</description>
		<content:encoded><![CDATA[<p>Alternatively, you can configure the sudoers file to pass ARCHFLAGS ($ sudo visudo).</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Liz</title>
		<link>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-19415</link>
		<author>Liz</author>
		<pubDate>Sat, 27 Oct 2007 04:11:56 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-19415</guid>
					<description>I can't seem to get mysql itself to work... how did you install mysql on leopard?</description>
		<content:encoded><![CDATA[<p>I can&#8217;t seem to get mysql itself to work&#8230; how did you install mysql on leopard?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: ruby mysql gem on Leo, saved. &#171; copy_paste</title>
		<link>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-19696</link>
		<author>ruby mysql gem on Leo, saved. &#171; copy_paste</author>
		<pubDate>Mon, 29 Oct 2007 00:15:49 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-19696</guid>
					<description>[...] ruby mysql gem on Leo,&#160;saved. October 29th, 2007   http://trac.macosforge.org/projects/ruby/wiki/Troubleshooting http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/ [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] ruby mysql gem on Leo,&nbsp;saved. October 29th, 2007   <a href="http://trac.macosforge.org/projects/ruby/wiki/Troubleshooting" rel="nofollow">http://trac.macosforge.org/projects/ruby/wiki/Troubleshooting</a> <a href="http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/" rel="nofollow">http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/</a> [&#8230;]</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Aashish</title>
		<link>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-19722</link>
		<author>Aashish</author>
		<pubDate>Mon, 29 Oct 2007 04:00:31 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-19722</guid>
					<description>I tried using mysql module on Leopard but it still fails. Here is the output. Any thoughts  ?

localhost-3:early-prog $ uname -a 
Darwin localhost-3.local 9.0.0 Darwin Kernel Version 9.0.0: Tue Oct  9 21:35:55 PDT 2007; root:xnu-1228~1/RELEASE_I386 i386
localhost-3:early-prog $ sudo bash -c "ARCHFLAGS='-arch i386' gem install mysql"
Select which gem to install for your platform (universal-darwin9.0)
 1. mysql 2.7.3 (mswin32)
 2. mysql 2.7.1 (mswin32)
 3. mysql 2.7 (ruby)
 4. mysql 2.6 (ruby)
 5. Skip this gem
 6. Cancel installation
&#62; 3
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
    ERROR: Failed to build gem native extension.

ruby extconf.rb install mysql
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... no
checking for mysql_query() in -lmysqlclient... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
	--with-opt-dir
	--without-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
	--with-mysql-config
	--without-mysql-config
	--with-mysql-dir
	--without-mysql-dir
	--with-mysql-include
	--without-mysql-include=${mysql-dir}/include
	--with-mysql-lib
	--without-mysql-lib=${mysql-dir}/lib
	--with-mysqlclientlib
	--without-mysqlclientlib
	--with-mlib
	--without-mlib
	--with-mysqlclientlib
	--without-mysqlclientlib
	--with-zlib
	--without-zlib
	--with-mysqlclientlib
	--without-mysqlclientlib
	--with-socketlib
	--without-socketlib
	--with-mysqlclientlib
	--without-mysqlclientlib
	--with-nsllib
	--without-nsllib
	--with-mysqlclientlib
	--without-mysqlclientlib


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/mysql-2.7 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.7/gem_make.out
localhost-3:early-prog $</description>
		<content:encoded><![CDATA[<p>I tried using mysql module on Leopard but it still fails. Here is the output. Any thoughts  ?</p>
<p>localhost-3:early-prog $ uname -a<br />
Darwin localhost-3.local 9.0.0 Darwin Kernel Version 9.0.0: Tue Oct  9 21:35:55 PDT 2007; root:xnu-1228~1/RELEASE_I386 i386<br />
localhost-3:early-prog $ sudo bash -c &#8220;ARCHFLAGS=&#8217;-arch i386&#8242; gem install mysql&#8221;<br />
Select which gem to install for your platform (universal-darwin9.0)<br />
 1. mysql 2.7.3 (mswin32)<br />
 2. mysql 2.7.1 (mswin32)<br />
 3. mysql 2.7 (ruby)<br />
 4. mysql 2.6 (ruby)<br />
 5. Skip this gem<br />
 6. Cancel installation<br />
&gt; 3<br />
Building native extensions.  This could take a while&#8230;<br />
ERROR:  While executing gem &#8230; (Gem::Installer::ExtensionBuildError)<br />
    ERROR: Failed to build gem native extension.</p>
<p>ruby extconf.rb install mysql<br />
checking for mysql_query() in -lmysqlclient&#8230; no<br />
checking for main() in -lm&#8230; yes<br />
checking for mysql_query() in -lmysqlclient&#8230; no<br />
checking for main() in -lz&#8230; yes<br />
checking for mysql_query() in -lmysqlclient&#8230; no<br />
checking for main() in -lsocket&#8230; no<br />
checking for mysql_query() in -lmysqlclient&#8230; no<br />
checking for main() in -lnsl&#8230; no<br />
checking for mysql_query() in -lmysqlclient&#8230; no<br />
*** extconf.rb failed ***<br />
Could not create Makefile due to some reason, probably lack of<br />
necessary libraries and/or headers.  Check the mkmf.log file for more<br />
details.  You may need configuration options.</p>
<p>Provided configuration options:<br />
	&#8211;with-opt-dir<br />
	&#8211;without-opt-dir<br />
	&#8211;with-opt-include<br />
	&#8211;without-opt-include=${opt-dir}/include<br />
	&#8211;with-opt-lib<br />
	&#8211;without-opt-lib=${opt-dir}/lib<br />
	&#8211;with-make-prog<br />
	&#8211;without-make-prog<br />
	&#8211;srcdir=.<br />
	&#8211;curdir<br />
	&#8211;ruby=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby<br />
	&#8211;with-mysql-config<br />
	&#8211;without-mysql-config<br />
	&#8211;with-mysql-dir<br />
	&#8211;without-mysql-dir<br />
	&#8211;with-mysql-include<br />
	&#8211;without-mysql-include=${mysql-dir}/include<br />
	&#8211;with-mysql-lib<br />
	&#8211;without-mysql-lib=${mysql-dir}/lib<br />
	&#8211;with-mysqlclientlib<br />
	&#8211;without-mysqlclientlib<br />
	&#8211;with-mlib<br />
	&#8211;without-mlib<br />
	&#8211;with-mysqlclientlib<br />
	&#8211;without-mysqlclientlib<br />
	&#8211;with-zlib<br />
	&#8211;without-zlib<br />
	&#8211;with-mysqlclientlib<br />
	&#8211;without-mysqlclientlib<br />
	&#8211;with-socketlib<br />
	&#8211;without-socketlib<br />
	&#8211;with-mysqlclientlib<br />
	&#8211;without-mysqlclientlib<br />
	&#8211;with-nsllib<br />
	&#8211;without-nsllib<br />
	&#8211;with-mysqlclientlib<br />
	&#8211;without-mysqlclientlib</p>
<p>Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/mysql-2.7 for inspection.<br />
Results logged to /Library/Ruby/Gems/1.8/gems/mysql-2.7/gem_make.out<br />
localhost-3:early-prog $</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Jon Gretar</title>
		<link>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-19759</link>
		<author>Jon Gretar</author>
		<pubDate>Mon, 29 Oct 2007 12:10:07 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-19759</guid>
					<description>Liz.... Check out the information at http://trac.macosforge.org/projects/ruby/wiki/Troubleshooting</description>
		<content:encoded><![CDATA[<p>Liz&#8230;. Check out the information at <a href="http://trac.macosforge.org/projects/ruby/wiki/Troubleshooting" rel="nofollow">http://trac.macosforge.org/projects/ruby/wiki/Troubleshooting</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: as</title>
		<link>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-19763</link>
		<author>as</author>
		<pubDate>Mon, 29 Oct 2007 13:11:14 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-19763</guid>
					<description>So I see my post was moderated. Any thoughts on why am I seeing those errors ? I don't think I have to have mysql installed on my system to have ruby load up mysql module ? DO I have to ?</description>
		<content:encoded><![CDATA[<p>So I see my post was moderated. Any thoughts on why am I seeing those errors ? I don&#8217;t think I have to have mysql installed on my system to have ruby load up mysql module ? DO I have to ?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Elliot Temple</title>
		<link>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-19951</link>
		<author>Elliot Temple</author>
		<pubDate>Tue, 30 Oct 2007 19:41:59 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-19951</guid>
					<description>regarding update 3: instead of making a link, why not tell it the right place? here is what i used (with macports install of mysql):

sudo env ARCHFLAGS="-arch ppc" gem install mysql -- --with-mysql-include=/opt/local/include/mysql5/mysql/ --with-mysql-lib=/opt/local/lib/mysql5/mysql/

note: if you copy this, change 'ppc' as needed</description>
		<content:encoded><![CDATA[<p>regarding update 3: instead of making a link, why not tell it the right place? here is what i used (with macports install of mysql):</p>
<p>sudo env ARCHFLAGS=&#8221;-arch ppc&#8221; gem install mysql &#8212; &#8211;with-mysql-include=/opt/local/include/mysql5/mysql/ &#8211;with-mysql-lib=/opt/local/lib/mysql5/mysql/</p>
<p>note: if you copy this, change &#8216;ppc&#8217; as needed</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Evan Drake</title>
		<link>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-20247</link>
		<author>Evan Drake</author>
		<pubDate>Fri, 02 Nov 2007 04:28:19 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-20247</guid>
					<description>I am getting the same issue as Aashish.  What to do?</description>
		<content:encoded><![CDATA[<p>I am getting the same issue as Aashish.  What to do?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Evan Drake</title>
		<link>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-20248</link>
		<author>Evan Drake</author>
		<pubDate>Fri, 02 Nov 2007 04:37:58 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-20248</guid>
					<description>Also, it is saying I don't have permission to the /usr/bin directory.  Should I change this, and if so how.  Finally, it is telling me that extconf.rb cannot be found.  I installed the XCode Tools.  How do I get this file, and what happened to it?</description>
		<content:encoded><![CDATA[<p>Also, it is saying I don&#8217;t have permission to the /usr/bin directory.  Should I change this, and if so how.  Finally, it is telling me that extconf.rb cannot be found.  I installed the XCode Tools.  How do I get this file, and what happened to it?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Joannou Ng</title>
		<link>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-20249</link>
		<author>Joannou Ng</author>
		<pubDate>Fri, 02 Nov 2007 04:49:20 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-20249</guid>
					<description>This will be helpful to some folks:
Migrating MySQL 5.0.45 to Mac OS X 10 .5 Leopard http://blog.tomatocheese.com/archives/2007/11/1/migrating_mysql_to_mac_os_x_leopard/</description>
		<content:encoded><![CDATA[<p>This will be helpful to some folks:<br />
Migrating MySQL 5.0.45 to Mac OS X 10 .5 Leopard <a href="http://blog.tomatocheese.com/archives/2007/11/1/migrating_mysql_to_mac_os_x_leopard/" rel="nofollow">http://blog.tomatocheese.com/archives/2007/11/1/migrating_mysql_to_mac_os_x_leopard/</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Ben Marklein</title>
		<link>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-20418</link>
		<author>Ben Marklein</author>
		<pubDate>Sat, 03 Nov 2007 17:27:23 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-20418</guid>
					<description>Aashish and Evan - I had the same problem, and this is what finally worked for me:

sudo bash -c "ARCHFLAGS='-arch i386' gem install mysql  -- -with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include"</description>
		<content:encoded><![CDATA[<p>Aashish and Evan - I had the same problem, and this is what finally worked for me:</p>
<p>sudo bash -c &#8220;ARCHFLAGS=&#8217;-arch i386&#8242; gem install mysql  &#8212; -with-mysql-dir=/usr/local/mysql &#8211;with-mysql-lib=/usr/local/mysql/lib &#8211;with-mysql-include=/usr/local/mysql/include&#8221;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Chris Chandler</title>
		<link>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-20841</link>
		<author>Chris Chandler</author>
		<pubDate>Tue, 06 Nov 2007 14:35:30 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-20841</guid>
					<description>Step By Step Reinstall, and startup command instructions for MySQL
http://www.developingchris.com/2007/10/26/mysql-and-os-x-105-leopard/</description>
		<content:encoded><![CDATA[<p>Step By Step Reinstall, and startup command instructions for MySQL<br />
<a href="http://www.developingchris.com/2007/10/26/mysql-and-os-x-105-leopard/" rel="nofollow">http://www.developingchris.com/2007/10/26/mysql-and-os-x-105-leopard/</a></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: John Corrigan</title>
		<link>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-23959</link>
		<author>John Corrigan</author>
		<pubDate>Thu, 06 Dec 2007 04:47:34 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-23959</guid>
					<description>For MacPorts install of MySQL, this worked for me (based on Ben and Elliot above):

sudo bash -c "ARCHFLAGS='-arch i386' gem install mysql -- --with-mysql-dir=/opt/local/lib/mysql5 --with-mysql-lib=/opt/local/lib/mysql5/mysql --with-mysql-include=/opt/local/include/mysql5/mysql"</description>
		<content:encoded><![CDATA[<p>For MacPorts install of MySQL, this worked for me (based on Ben and Elliot above):</p>
<p>sudo bash -c &#8220;ARCHFLAGS=&#8217;-arch i386&#8242; gem install mysql &#8212; &#8211;with-mysql-dir=/opt/local/lib/mysql5 &#8211;with-mysql-lib=/opt/local/lib/mysql5/mysql &#8211;with-mysql-include=/opt/local/include/mysql5/mysql&#8221;</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: roger pack</title>
		<link>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-24333</link>
		<author>roger pack</author>
		<pubDate>Tue, 11 Dec 2007 03:44:32 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-24333</guid>
					<description>f you have a PPC Mac (I hear some still exist), you’d enter:

sudo env ARCHFLAGS="-arch ppc" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config</description>
		<content:encoded><![CDATA[<p>f you have a PPC Mac (I hear some still exist), you’d enter:</p>
<p>sudo env ARCHFLAGS=&#8221;-arch ppc&#8221; gem install mysql &#8212; &#8211;with-mysql-config=/usr/local/mysql/bin/mysql_config</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Pbur&#8217;s Adventures &#187; Blog Archive &#187; links for 2007-12-29</title>
		<link>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-25570</link>
		<author>Pbur&#8217;s Adventures &#187; Blog Archive &#187; links for 2007-12-29</author>
		<pubDate>Sat, 29 Dec 2007 04:25:08 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-25570</guid>
					<description>[...] Ruby, Leopard and gems A couple of notes about building native gems on leopard (tags: Leopard postgresql mysql ruby osx)      Leave a Comment [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Ruby, Leopard and gems A couple of notes about building native gems on leopard (tags: Leopard postgresql mysql ruby osx)      Leave a Comment [&#8230;]</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: vlad</title>
		<link>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-27088</link>
		<author>vlad</author>
		<pubDate>Fri, 18 Jan 2008 05:45:41 +0000</pubDate>
		<guid>http://www.notsostupid.com/blog/2007/10/25/ruby-leopard-and-gems/#comment-27088</guid>
					<description>none of the above seemed to have worked for me, but this did:
http://www.schmidp.com/2007/9/29/rails-mysql-and-leopard</description>
		<content:encoded><![CDATA[<p>none of the above seemed to have worked for me, but this did:<br />
<a href="http://www.schmidp.com/2007/9/29/rails-mysql-and-leopard" rel="nofollow">http://www.schmidp.com/2007/9/29/rails-mysql-and-leopard</a></p>
]]></content:encoded>
				</item>
</channel>
</rss>
