after upgraded to Snow Leopard... (32bits arch) I re-installed the mysql gem (i386 architecture) , all gems and rails 2.3.4 testing in the console $ irb irb(main):001:0> require ''rubygems'' => true irb(main):002:0> require ''mysql'' => true Mysql.get_client_info NoMethodError: undefined method `get_client_info'' for Mysql:Class from (irb):3 I should get "5.1.38" (MySQL installed db version...) or did the Mysql class changed w Rails 2.3.4 ? is this test wrong ? thanks for your advices
Your test works for me. But I had a horrible time getting everything working on a Macbook. I have no idea what finally worked, as I was trying so many different things and then walked away whistling when it finally did work. Did you do an upgrade, or a clean install? I did an upgrade and I think that was the source of most of my problems. I also had no issue at all with a 64bit iMac. What finally worked for me: install mysql-5.1.38-osx10.5-x86_64 (from mysql.org). Then install the mysql gem with: env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql- config=/usr/local/mysql/bin/mysql_config Run this ruby script to see what other gems are broken in the 32->64 bit transition: http://gist.github.com/178178 There''s some more detail in the following: http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard On Sep 10, 7:15 pm, Erwin <yves_duf...-ee4meeAH724@public.gmane.org> wrote:> after upgraded to Snow Leopard... (32bits arch) > > I re-installed the mysql gem (i386 architecture) , all gems and > rails 2.3.4 > testing in the console > > $ irb > irb(main):001:0> require ''rubygems'' > => true > irb(main):002:0> require ''mysql'' > => true > > Mysql.get_client_info > NoMethodError: undefined method `get_client_info'' for Mysql:Class > from (irb):3 > > I should get "5.1.38" (MySQL installed db version...) or did the > Mysql class changed w Rails 2.3.4 ? > is this test wrong ? > > thanks for your advices
I am stupid and bad writer ... Mysql.get_client_info NoMethodError: undefined method `get_client_info'' for Mysql:Class from (irb):3 it happens because I wrote the bad method, should have written : Mysql.get_client_info => "5.1.38" On 11 sep, 17:26, AndrewO <andrew.ohns...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Your test works for me. > > But I had a horrible time getting everything working on a Macbook. > > I have no idea what finally worked, as I was trying so many different > things and then walked away whistling when it finally did work. > > Did you do an upgrade, or a clean install? I did an upgrade and I > think that was the source of most of my problems. I also had no issue > at all with a 64bit iMac. > > What finally worked for me: > > install mysql-5.1.38-osx10.5-x86_64 (from mysql.org). Then install > the mysql gem with: > env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql- > config=/usr/local/mysql/bin/mysql_config > > Run this ruby script to see what other gems are broken in the 32->64 > bit transition: http://gist.github.com/178178 > > There''s some more detail in the following:http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard > > On Sep 10, 7:15 pm, Erwin <yves_duf...-ee4meeAH724@public.gmane.org> wrote: > > > after upgraded to Snow Leopard... (32bits arch) > > > I re-installed the mysql gem (i386 architecture) , all gems and > > rails 2.3.4 > > testing in the console > > > $ irb > > irb(main):001:0> require ''rubygems'' > > => true > > irb(main):002:0> require ''mysql'' > > => true > > > Mysql.get_client_info > > NoMethodError: undefined method `get_client_info'' for Mysql:Class > > from (irb):3 > > > I should get "5.1.38" (MySQL installed db version...) or did the > > Mysql class changed w Rails 2.3.4 ? > > is this test wrong ? > > > thanks for your advices
Maybe Matching Threads
- mysql gem install not happening on Mac OS Leopard - any inputs at all??
- ** Removing all instances of mysql on mac osx **
- mongrel + mysql can't connect in custom mysql install
- Error: uninitialized constant MysqlCompat::MysqlRes
- [mysql gem] Failed to lookup Init function