On May 13, 12:27 pm, "Willi W." <[email protected]> wrote:

> rake aborted!
> Incorrect MySQL client library version! This gem was compiled for 5.5.12
> but the
> client library is 6.0.0.
> C:/Ruby/lib/ruby/gems/1.9.1/gems/mysql2-0.3.2/lib/mysql2.rb:8:in
> `require’
> C:/Ruby/lib/ruby/gems/1.9.1/gems/mysql2-0.3.2/lib/mysql2.rb:8:in `’
>
> A warning should be sufficient …
>
> It doesn't seem like MySQL archives the older versions of libmysql.dll
> (5.5.12).
>
> Any Ideas how to get around this?

Yes, what you need to do is compile the gem instead of using the
binary.

If you have installed the DevKit, you only need to add --platform=ruby
to the gem install command:

gem install mysql2 --platform=ruby -- --with-mysql-include=C:/
connector/include --with-mysql-lib=C:/connector/lib

--
Luis Lavena

-- 
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