Forum: Ruby on Rails Trouble getting Mysql and Ruby to talk

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Michael K. Bradshaw (Guest)
on 2006-03-30 00:57
(Received via mailing list)
I'm trying to deploy my rails app to the production server, and I'm
having a heck of a time getting ruby and mysql to talk to each other on
the server.  Mysql and Ruby seem to be working fine independently, and
I've compiled and installed the ruby-myqsl libraries found here:
to no avail, as well as having ran:
gem install mysql

When I try to run 'rake migrate' to get my db schema set up, or when I
start the webbrick server I get an error: uninitialized constant Mysql'
and when I go into irb and run 'require "mysql"' I get :

LoadError: cannot open shared object file: No such
file or directory - /usr/local/lib/ruby/site_ruby/1.8/i686-

Despite the fact that /usr/local/lib/ruby/site_ruby/1.8/i686-
linux/ seems to be there.  I've done a number of google searches
and the like to no avail and this is pretty much my last hope of
deploying my app.  Any ideas?

Environment: Red Hat Enterprise Linux 3 with latest Ruby, Mysql 4, Rails
This topic is locked and can not be replied to.