Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Ruby MySQL Gem uses older client library

Thread Tools

Ruby MySQL Gem uses older client library

Paul Mcconnon
Posts: n/a
Hi there, can ayone enlighten me on why I Ruby (using MySQl gem) would
use an older client library.

I have an XP box for developing and an Ubuntu box for deployment.

Both have 5.x clients installed. The ubuntu still has older clients as

Some code I have written requires the 5.x client. This code runs on the
XP box but not on the Ubuntu box (apart from this glitch other Ruby /
Mysql works fine)

In investigating the issue I ran IRB, required 'mysql' and called
Mysql.get_client_version. The version reported on Ubuntu was a 4.x
driver, the version on XP the correct 5.x driver.

Ubuntu's libraries and config are correctly set at 5.x and symlinks
point to correct libraries.

I am thinking I may have installed the 5.x client after I has installed
the 2.7 mysql gem, would this 'lock' the Gem to the older client? Do I
need to re-install / rebuild the Gem??

Any help appreciated, thanks.


ps I tried searching forum first but search is disabled, apologies if
this has been asked before. I tried googling to no avail.

Posted via

Reply With Quote
Paul Mcconnon
Posts: n/a
Jeff Everett wrote:
> Paul,
> You will probably need to reinstall the MySQL gem. When that gem
> installs,
> it compiles native extensions based on your current MySQL libraries. If
> you
> upgrade MySQL, you have to recompile the gem.
> Jeff

Thanks very much Jeff.



Posted via

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing mysql gem on Win7 x64 for MySQL 5.1.x Geoff Rowell Ruby 5 08-03-2010 06:07 PM
feezing mysql gem + unitiliazed constant MysqlCompat::Mysql Renato Jf Ruby 3 12-15-2009 12:13 AM
ruby-opengl gem uses ruby1.9, even from gem1.8 David Masover Ruby 5 05-29-2008 01:19 AM
mySQL Ruby Gem and MAMP mySQL Mark Meijer Ruby 3 02-03-2008 04:19 AM
RubyGems 0.9.1 calling a gem with gem '<gem>' Austin 7873 Ruby 5 01-27-2007 10:05 PM