<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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>Comments on: Solving the problem with Ruby on Rails, Tiger, and the mysql gem</title>
	<atom:link href="http://infovore.org/archives/2005/08/07/problems-with-ruby-on-rails-mysql-and-osx-tiger/feed/" rel="self" type="application/rss+xml" />
	<link>http://infovore.org/archives/2005/08/07/problems-with-ruby-on-rails-mysql-and-osx-tiger/</link>
	<description>a weblog by Tom Armitage</description>
	<lastBuildDate>Sun, 08 Apr 2012 09:50:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Tom</title>
		<link>http://infovore.org/archives/2005/08/07/problems-with-ruby-on-rails-mysql-and-osx-tiger/comment-page-1/#comment-1221</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Mon, 28 Nov 2005 12:25:57 +0000</pubDate>
		<guid isPermaLink="false">http://infovore.org/archives/2005/08/07/problems-with-ruby-on-rails-mysql-and-osx-tiger/#comment-1221</guid>
		<description>Hmn. Not sure what the problem is, but I get a feeling it might be the &quot;MySQL 5.0&quot; part of your system. I&#039;d check that there&#039;s not a newer (less stable) version of the mysql gem for it. Also, check where Mysql is installed on your system - if it&#039;s not in (or symlinked in) /usr/local/mysql, that would cause problems.

Finally, it&#039;s giving a password error at the end - so it could be something to do with the new way of encrypting MySQL passwords (unless, of course, you&#039;re just using no password for your account).

As a final measure: check out #rubyonrails on irc.freenode.net; they&#039;re more knowledgable and helpful than I am, for sure. Thanks for your comment, anyhow, Stefano.</description>
		<content:encoded><![CDATA[<p>Hmn. Not sure what the problem is, but I get a feeling it might be the &#8220;MySQL 5.0&#8243; part of your system. I&#8217;d check that there&#8217;s not a newer (less stable) version of the mysql gem for it. Also, check where Mysql is installed on your system &#8211; if it&#8217;s not in (or symlinked in) /usr/local/mysql, that would cause problems.</p>
<p>Finally, it&#8217;s giving a password error at the end &#8211; so it could be something to do with the new way of encrypting MySQL passwords (unless, of course, you&#8217;re just using no password for your account).</p>
<p>As a final measure: check out #rubyonrails on irc.freenode.net; they&#8217;re more knowledgable and helpful than I am, for sure. Thanks for your comment, anyhow, Stefano.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefano</title>
		<link>http://infovore.org/archives/2005/08/07/problems-with-ruby-on-rails-mysql-and-osx-tiger/comment-page-1/#comment-1220</link>
		<dc:creator>Stefano</dc:creator>
		<pubDate>Sun, 27 Nov 2005 18:26:59 +0000</pubDate>
		<guid isPermaLink="false">http://infovore.org/archives/2005/08/07/problems-with-ruby-on-rails-mysql-and-osx-tiger/#comment-1220</guid>
		<description>&lt;!-- spamk    : Comment text: &#039;Tom, 

this was a useful tip, however there must be something else to it. The following shows that your solution does not work for my system (OSX 10.4.3, MySQL 5.0, Ruby 1.8.2). 

I am recording this next to your tip for the benefit of those like me who can&#039;t get past the scaffold in RoR.

Best,

Stefano

stefano-bertolos-power-mac-g5:~/rails/depot stefano$ sudo gcc_select 3.3
Default compiler has been set to:
gcc version 3.3 20030304 (Apple Computer, Inc. build 1809)
stefano-bertolos-power-mac-g5:~/rails/depot stefano$ sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql
Attempting local installation of &#039;mysql&#039;
Local gem file not found: mysql*.gem
Attempting remote installation of &#039;mysql&#039;
Building native extensions.  This could take a while...
/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:211: warning: Insecure world writable dir /usr/local, mode 040777
/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:222: warning: Insecure world writable dir /usr/local, mode 040777
ld: truncated or malformed archive: /usr/local/mysql/lib/libmysqlclient.a (ranlib structures in table of contents extends past the end of the table of contents, can&#039;t load from it)
make: *** [mysql.bundle] Error 1
/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:224: warning: Insecure world writable dir /usr/local, mode 040777
ld: truncated or malformed archive: /usr/local/mysql/lib/libmysqlclient.a (ranlib structures in table of contents extends past the end of the table of contents, can&#039;t load from it)
make: *** [mysql.bundle] Error 1
ruby extconf.rb install mysql -- --with-mysql-dir=/usr/local/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

make
cc  -dynamic -bundle -undefined suppress -flat_namespace  -L&quot;/usr/lib&quot; -o mysql.bundle mysql.o  -L/usr/local/mysql/lib -lmysqlclient -lz -lm  -lpthread -ldl -lobjc  

make install
cc  -dynamic -bundle -undefined suppress -flat_namespace  -L&quot;/usr/lib&quot; -o mysql.bundle mysql.o  -L/usr/local/mysql/lib -lmysqlclient -lz -lm  -lpthread -ldl -lobjc  
Successfully installed mysql-2.7
stefano-bertolos-power-mac-g5:~/rails/depot stefano$ sudo gcc_select 4.0
Default compiler has been set to:
gcc version 4.0.0 20041026 (Apple Computer, Inc. build 4061)
stefano-bertolos-power-mac-g5:~/rails/depot stefano$ ruby script/generate scaffold Product Admin
      exists  app/controllers/
      exists  app/helpers/
      exists  app/views/admin
      exists  test/functional/
  dependency  model
      exists    app/models/
      exists    test/unit/
      exists    test/fixtures/
   identical    app/models/product.rb
   identical    test/unit/product_test.rb
   identical    test/fixtures/products.yml
Access denied for user &#039;&#039;@&#039;localhost&#039; (using password: NO)
stefano-bertolos-power-mac-g5:~/rails/depot stefano$ 
&#039; matched apple.com --&gt;



Tom, 

this was a useful tip, however there must be something else to it. The following shows that your solution does not work for my system (OSX 10.4.3, MySQL 5.0, Ruby 1.8.2). 

I am recording this next to your tip for the benefit of those like me who can&#039;t get past the scaffold in RoR.

Best,

Stefano

stefano-bertolos-power-mac-g5:~/rails/depot stefano$ sudo gcc_select 3.3
Default compiler has been set to:
gcc version 3.3 20030304 (Apple Computer, Inc. build 1809)
stefano-bertolos-power-mac-g5:~/rails/depot stefano$ sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql
Attempting local installation of &#039;mysql&#039;
Local gem file not found: mysql*.gem
Attempting remote installation of &#039;mysql&#039;
Building native extensions.  This could take a while...
/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:211: warning: Insecure world writable dir /usr/local, mode 040777
/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:222: warning: Insecure world writable dir /usr/local, mode 040777
ld: truncated or malformed archive: /usr/local/mysql/lib/libmysqlclient.a (ranlib structures in table of contents extends past the end of the table of contents, can&#039;t load from it)
make: *** [mysql.bundle] Error 1
/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:224: warning: Insecure world writable dir /usr/local, mode 040777
ld: truncated or malformed archive: /usr/local/mysql/lib/libmysqlclient.a (ranlib structures in table of contents extends past the end of the table of contents, can&#039;t load from it)
make: *** [mysql.bundle] Error 1
ruby extconf.rb install mysql -- --with-mysql-dir=/usr/local/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

make
cc  -dynamic -bundle -undefined suppress -flat_namespace  -L&quot;/usr/lib&quot; -o mysql.bundle mysql.o  -L/usr/local/mysql/lib -lmysqlclient -lz -lm  -lpthread -ldl -lobjc  

make install
cc  -dynamic -bundle -undefined suppress -flat_namespace  -L&quot;/usr/lib&quot; -o mysql.bundle mysql.o  -L/usr/local/mysql/lib -lmysqlclient -lz -lm  -lpthread -ldl -lobjc  
Successfully installed mysql-2.7
stefano-bertolos-power-mac-g5:~/rails/depot stefano$ sudo gcc_select 4.0
Default compiler has been set to:
gcc version 4.0.0 20041026 (Apple Computer, Inc. build 4061)
stefano-bertolos-power-mac-g5:~/rails/depot stefano$ ruby script/generate scaffold Product Admin
      exists  app/controllers/
      exists  app/helpers/
      exists  app/views/admin
      exists  test/functional/
  dependency  model
      exists    app/models/
      exists    test/unit/
      exists    test/fixtures/
   identical    app/models/product.rb
   identical    test/unit/product_test.rb
   identical    test/fixtures/products.yml
Access denied for user &#039;&#039;@&#039;localhost&#039; (using password: NO)
stefano-bertolos-power-mac-g5:~/rails/depot stefano$</description>
		<content:encoded><![CDATA[<p><!-- spamk    : Comment text: 'Tom, </p>
<p>this was a useful tip, however there must be something else to it. The following shows that your solution does not work for my system (OSX 10.4.3, MySQL 5.0, Ruby 1.8.2). </p>
<p>I am recording this next to your tip for the benefit of those like me who can't get past the scaffold in RoR.</p>
<p>Best,</p>
<p>Stefano</p>
<p>stefano-bertolos-power-mac-g5:~/rails/depot stefano$ sudo gcc_select 3.3<br />
Default compiler has been set to:<br />
gcc version 3.3 20030304 (Apple Computer, Inc. build 1809)<br />
stefano-bertolos-power-mac-g5:~/rails/depot stefano$ sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql<br />
Attempting local installation of 'mysql'<br />
Local gem file not found: mysql*.gem<br />
Attempting remote installation of 'mysql'<br />
Building native extensions.  This could take a while...<br />
/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:211: warning: Insecure world writable dir /usr/local, mode 040777<br />
/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:222: warning: Insecure world writable dir /usr/local, mode 040777<br />
ld: truncated or malformed archive: /usr/local/mysql/lib/libmysqlclient.a (ranlib structures in table of contents extends past the end of the table of contents, can't load from it)<br />
make: *** [mysql.bundle] Error 1<br />
/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:224: warning: Insecure world writable dir /usr/local, mode 040777<br />
ld: truncated or malformed archive: /usr/local/mysql/lib/libmysqlclient.a (ranlib structures in table of contents extends past the end of the table of contents, can't load from it)<br />
make: *** [mysql.bundle] Error 1<br />
ruby extconf.rb install mysql -- --with-mysql-dir=/usr/local/mysql<br />
checking for mysql_query() in -lmysqlclient... no<br />
checking for main() in -lm... yes<br />
checking for mysql_query() in -lmysqlclient... no<br />
checking for main() in -lz... yes<br />
checking for mysql_query() in -lmysqlclient... no<br />
checking for main() in -lsocket... no<br />
checking for mysql_query() in -lmysqlclient... no<br />
checking for main() in -lnsl... no<br />
checking for mysql_query() in -lmysqlclient... no</p>
<p>make<br />
cc  -dynamic -bundle -undefined suppress -flat_namespace  -L"/usr/lib" -o mysql.bundle mysql.o  -L/usr/local/mysql/lib -lmysqlclient -lz -lm  -lpthread -ldl -lobjc  </p>
<p>make install<br />
cc  -dynamic -bundle -undefined suppress -flat_namespace  -L"/usr/lib" -o mysql.bundle mysql.o  -L/usr/local/mysql/lib -lmysqlclient -lz -lm  -lpthread -ldl -lobjc<br />
Successfully installed mysql-2.7<br />
stefano-bertolos-power-mac-g5:~/rails/depot stefano$ sudo gcc_select 4.0<br />
Default compiler has been set to:<br />
gcc version 4.0.0 20041026 (Apple Computer, Inc. build 4061)<br />
stefano-bertolos-power-mac-g5:~/rails/depot stefano$ ruby script/generate scaffold Product Admin<br />
      exists  app/controllers/<br />
      exists  app/helpers/<br />
      exists  app/views/admin<br />
      exists  test/functional/<br />
  dependency  model<br />
      exists    app/models/<br />
      exists    test/unit/<br />
      exists    test/fixtures/<br />
   identical    app/models/product.rb<br />
   identical    test/unit/product_test.rb<br />
   identical    test/fixtures/products.yml<br />
Access denied for user ''@'localhost' (using password: NO)<br />
stefano-bertolos-power-mac-g5:~/rails/depot stefano$<br />
' matched apple.com --></p>
<p>Tom, </p>
<p>this was a useful tip, however there must be something else to it. The following shows that your solution does not work for my system (OSX 10.4.3, MySQL 5.0, Ruby 1.8.2). </p>
<p>I am recording this next to your tip for the benefit of those like me who can&#8217;t get past the scaffold in RoR.</p>
<p>Best,</p>
<p>Stefano</p>
<p>stefano-bertolos-power-mac-g5:~/rails/depot stefano$ sudo gcc_select 3.3<br />
Default compiler has been set to:<br />
gcc version 3.3 20030304 (Apple Computer, Inc. build 1809)<br />
stefano-bertolos-power-mac-g5:~/rails/depot stefano$ sudo gem install mysql &#8212; &#8211;with-mysql-dir=/usr/local/mysql<br />
Attempting local installation of &#8216;mysql&#8217;<br />
Local gem file not found: mysql*.gem<br />
Attempting remote installation of &#8216;mysql&#8217;<br />
Building native extensions.  This could take a while&#8230;<br />
/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:211: warning: Insecure world writable dir /usr/local, mode 040777<br />
/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:222: warning: Insecure world writable dir /usr/local, mode 040777<br />
ld: truncated or malformed archive: /usr/local/mysql/lib/libmysqlclient.a (ranlib structures in table of contents extends past the end of the table of contents, can&#8217;t load from it)<br />
make: *** [mysql.bundle] Error 1<br />
/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:224: warning: Insecure world writable dir /usr/local, mode 040777<br />
ld: truncated or malformed archive: /usr/local/mysql/lib/libmysqlclient.a (ranlib structures in table of contents extends past the end of the table of contents, can&#8217;t load from it)<br />
make: *** [mysql.bundle] Error 1<br />
ruby extconf.rb install mysql &#8212; &#8211;with-mysql-dir=/usr/local/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</p>
<p>make<br />
cc  -dynamic -bundle -undefined suppress -flat_namespace  -L&#8221;/usr/lib&#8221; -o mysql.bundle mysql.o  -L/usr/local/mysql/lib -lmysqlclient -lz -lm  -lpthread -ldl -lobjc  </p>
<p>make install<br />
cc  -dynamic -bundle -undefined suppress -flat_namespace  -L&#8221;/usr/lib&#8221; -o mysql.bundle mysql.o  -L/usr/local/mysql/lib -lmysqlclient -lz -lm  -lpthread -ldl -lobjc<br />
Successfully installed mysql-2.7<br />
stefano-bertolos-power-mac-g5:~/rails/depot stefano$ sudo gcc_select 4.0<br />
Default compiler has been set to:<br />
gcc version 4.0.0 20041026 (Apple Computer, Inc. build 4061)<br />
stefano-bertolos-power-mac-g5:~/rails/depot stefano$ ruby script/generate scaffold Product Admin<br />
      exists  app/controllers/<br />
      exists  app/helpers/<br />
      exists  app/views/admin<br />
      exists  test/functional/<br />
  dependency  model<br />
      exists    app/models/<br />
      exists    test/unit/<br />
      exists    test/fixtures/<br />
   identical    app/models/product.rb<br />
   identical    test/unit/product_test.rb<br />
   identical    test/fixtures/products.yml<br />
Access denied for user &#8221;@&#8217;localhost&#8217; (using password: NO)<br />
stefano-bertolos-power-mac-g5:~/rails/depot stefano$</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Infovore : Hear the Tiger RoR</title>
		<link>http://infovore.org/archives/2005/08/07/problems-with-ruby-on-rails-mysql-and-osx-tiger/comment-page-1/#comment-804</link>
		<dc:creator>Infovore : Hear the Tiger RoR</dc:creator>
		<pubDate>Mon, 08 Aug 2005 07:11:19 +0000</pubDate>
		<guid isPermaLink="false">http://infovore.org/archives/2005/08/07/problems-with-ruby-on-rails-mysql-and-osx-tiger/#comment-804</guid>
		<description>[...]  when I did it a few months ago, too. 	Update: of course, then I ran into problems. What I discovered is that those instructions are for an install [...]</description>
		<content:encoded><![CDATA[<p>[...]  when I did it a few months ago, too. 	Update: of course, then I ran into problems. What I discovered is that those instructions are for an install [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

