On Thu, Apr 21, 2011 at 3:25 PM, Nicholas <[email protected]>wrote:

> Nicholas writes:
>
> C:\nuhype>gem install mysql2 -- '--with-mysql-lib="c:\Program
> Files\MySQL\MySQL
> Server 5.1\lib\opt" --with-mysql-include="c:\Program Files\MySQL\MySQL
> Server 5.
> 1\include"'
> Temporarily enhancing PATH to include DevKit...
> Building native extensions.  This could take a while...
> Successfully installed mysql2-0.2.7
> 1 gem installed
> Installing ri documentation for mysql2-0.2.7...
> Enclosing class/module 'mMysql2' for class Client not known
> Installing RDoc documentation for mysql2-0.2.7...
> Enclosing class/module 'mMysql2' for class Client not known
>
> C:\nuhype>rake db:migrate
> (in C:/nuhype)
> rake aborted!
> Please install the mysql2 adapter: `gem install
> activerecord-mysql2-adapter` (no
>  such file to load -- active_record/connection_adapters/mysql2_adapter)
>
> C:/Ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.0.6/lib/active_record/connection
> _adapters/abstract/connection_specification.rb:71:in `rescue in
> establish_connec
> tion'
>
> C:/Ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.0.6/lib/active_record/connection
> _adapters/abstract/connection_specification.rb:68:in `establish_connection'
>
> C:/Ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.0.6/lib/active_record/connection
> _adapters/abstract/connection_specification.rb:60:in `establish_connection'
>
> C:/Ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.0.6/lib/active_record/connection
> _adapters/abstract/connection_specification.rb:55:in `establish_connection'
>
> C:/Ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.0.6/lib/active_record/railtie.rb
> :59:in `block (2 levels) in <class:Railtie>'
>
> C:/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.0.6/lib/active_support/lazy_loa
> d_hooks.rb:36:in `instance_eval'
>
> C:/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.0.6/lib/active_support/lazy_loa
> d_hooks.rb:36:in `execute_hook'
>
> C:/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.0.6/lib/active_support/lazy_loa
> d_hooks.rb:43:in `block in run_load_hooks'
>
> C:/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.0.6/lib/active_support/lazy_loa
> d_hooks.rb:42:in `each'
>
> C:/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.0.6/lib/active_support/lazy_loa
> d_hooks.rb:42:in `run_load_hooks'
>
> C:/Ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.0.6/lib/active_record/base.rb:19
> 03:in `<top (required)>'
>
> C:/Ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.0.6/lib/active_record/migration.
> rb:486:in `initialize'
>
> C:/Ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.0.6/lib/active_record/migration.
> rb:433:in `new'
>
> C:/Ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.0.6/lib/active_record/migration.
> rb:433:in `up'
>
> C:/Ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.0.6/lib/active_record/migration.
> rb:415:in `migrate'
>
> C:/Ruby/lib/ruby/gems/1.9.1/gems/activerecord-3.0.6/lib/active_record/railties/d
> atabases.rake:142:in `block (2 levels) in <top (required)>'
> C:/Ruby/lib/ruby/1.9.1/rake.rb:634:in `call'
> C:/Ruby/lib/ruby/1.9.1/rake.rb:634:in `block in execute'
> C:/Ruby/lib/ruby/1.9.1/rake.rb:629:in `each'
> C:/Ruby/lib/ruby/1.9.1/rake.rb:629:in `execute'
> C:/Ruby/lib/ruby/1.9.1/rake.rb:595:in `block in invoke_with_call_chain'
> C:/Ruby/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
> C:/Ruby/lib/ruby/1.9.1/rake.rb:588:in `invoke_with_call_chain'
> C:/Ruby/lib/ruby/1.9.1/rake.rb:581:in `invoke'
> C:/Ruby/lib/ruby/1.9.1/rake.rb:2041:in `invoke_task'
> C:/Ruby/lib/ruby/1.9.1/rake.rb:2019:in `block (2 levels) in top_level'
> C:/Ruby/lib/ruby/1.9.1/rake.rb:2019:in `each'
> C:/Ruby/lib/ruby/1.9.1/rake.rb:2019:in `block in top_level'
> C:/Ruby/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'
> C:/Ruby/lib/ruby/1.9.1/rake.rb:2013:in `top_level'
> C:/Ruby/lib/ruby/1.9.1/rake.rb:1992:in `run'
> C:/Ruby/bin/rake:31:in `<main>'
>
> Please someone help with this issue? gem install
> activerecord-mysql2-adapter
> does not exist?  Please help fix the mysql and rails connection.
>

I am not sure if this will help but I went through some trouble getting
mysql to play nice on my macbook upgraded to snow leopard. I found that I
had to use mysql under 64 bit. I wrote a short blog post to remind myself
how I resolved it. I am not sure if you are saying that you must run the 32
bit version , but if you are just happy to get mysql working you should be
able to follow these steps:

http://blog.structuralartistry.com/post/4417260824/getting-mysql-and-mysql-gem-to-install-and-give-love-on


>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to