sequel problem: no such file to load -- mysql (LoadError)

M

Michael Andreasen

Hi, i tried to learn about sequel (and Ruby) and got this problem

/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__': no such file to load -- mysql (LoadError)
from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require'
from
/usr/lib/ruby/gems/1.8/gems/sequel-0.2.0.2/lib/sequel/mysql.rb:5
from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require__'
from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
from /home/ruby/abc.rb:2

Anyone could point me in the right direction? Couldt google anything.
 
K

Konrad Meyer

--nextPart4506007.rHRynLk21E
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Quoth Michael Andreasen:
=2E..
Anyone could point me in the right direction? Couldt google anything.

Why, was google broken?

=2D-=20
Konrad Meyer <[email protected]> http://konrad.sobertillnoon.com/

--nextPart4506007.rHRynLk21E
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQBG9PnnCHB0oCiR2cwRAjAiAKDWOFFpasaY18wi7UFhSj2bhV3fzQCfV8/q
sS/vdkG2QtrRxXN3fMdGqBs=
=GBqv
-----END PGP SIGNATURE-----

--nextPart4506007.rHRynLk21E--
 
M

Mike Andersen

Konrad said:
Why, was google broken?

Could be ;-) Either way i couldt find anything. So im still looking for
help on this one.

I admit im new to Ruby and maybe im googling the error msg incorrectly.
in any case any small point in the right direction would be appriciated.
 
P

Phil

-----Original Message-----
From: (e-mail address removed) [mailto:[email protected]] On
Behalf Of Mike Andersen
Sent: Saturday, September 22, 2007 1:31 PM
To: ruby-talk ML
Subject: Re: sequel problem: no such file to load -- mysql (LoadError

Konrad said:
Why, was google broken?

Could be ;-) Either way i couldt find anything. So im still looking for
help on this one.

I admit im new to Ruby and maybe im googling the error msg incorrectly.
in any case any small point in the right direction would be
appriciated.

Do you have a MySQL gem installed?
 
M

Mike Andersen

thanks for your guidence which lead me to the soloution, but not the
problem.

gem install mysql

produces the following output:

make install
/bin/install -c -m 0755 mysql.so
/usr/lib/ruby/gems/1.8/gems/mysql-2.7/lib
Successfully installed mysql-2.7

however

ls -alh /usr/lib/ruby/gems/1.8/gems/mysql-2.7/lib

showed this path to be empty. i copyied mysql.so like this

cp /usr/lib/ruby/gems/1.8/gems/mysql-2.7/mysql.so
/usr/lib/ruby/gems/1.8/gems/mysql-2.7/lib/

and viola, it works!
 
T

Todd Benson

The first and third of those lines are stating that the 'mysql'
library is missing.
Make sure that you have the ruby-mysql library installed, latest
version is 2.7 I believe.
"sudo gem install mysql"

~Wayne

Also--after you have installed your necessary libraries--remember that
your mysql server needs to be running. I've, myself, tried to
troubleshoot DB library things into the ground when the server just
didn't start. It seems simple and stupid, but it happens to the best.

Todd
 
J

John Joyce

Also--after you have installed your necessary libraries--remember that
your mysql server needs to be running. I've, myself, tried to
troubleshoot DB library things into the ground when the server just
didn't start. It seems simple and stupid, but it happens to the best.

Todd

Yes! This is a common problem for all of us. It doesn't happen often,
so we don't see it or expect it. But, when the mysql server
application is stopped, you will get failure.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top