[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

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

Michael Andreasen

9/22/2007 11:07:00 AM

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.

--
Br
Vento
--
Posted via http://www.ruby-....

10 Answers

Konrad Meyer

9/22/2007 11:18:00 AM

0

Quoth Michael Andreasen:
...
> Anyone could point me in the right direction? Couldt google anything.
> --
> Br
> Vento

Why, was google broken?

--
Konrad Meyer <konrad@tylerc.org> http://konrad.sobertil...

Michael Andreasen

9/22/2007 11:31:00 AM

0

Konrad Meyer wrote:
> 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.

--
thanks
Vento
--
Posted via http://www.ruby-....

Phillip Gawlowski

9/22/2007 11:43:00 AM

0



> -----Original Message-----
> From: list-bounce@example.com [mailto:list-bounce@example.com] 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 Meyer wrote:
> > 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?

--
Phillip Gawlowski


Michael Andreasen

9/22/2007 12:17:00 PM

0

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!



--
Posted via http://www.ruby-....

Todd Benson

9/22/2007 1:45:00 PM

0

On 9/22/07, Wayne E. Seguin <wayneeseguin@gmail.com> wrote:
>
> 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

Sharon Rosner

9/22/2007 2:30:00 PM

0

Michael, if you need more help with sequel we have our own group:

http://groups.google.com/group/s...

sharon


John Joyce

9/22/2007 7:31:00 PM

0


On Sep 22, 2007, at 8:45 AM, Todd Benson wrote:
> 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.

Gray Ghost

5/1/2011 12:56:00 AM

0

rfischer@sonic.net (Ray Fischer) wrote in
news:4dbc77ad$0$10537$742ec2ed@news.sonic.net:

> Jack Bruce <BLT@bass.gov> wrote:
>>Ray Fischer wrote:
>>> Bob Bogle <TheVentures@bass.gov> wrote:
>>>
>>>>Ray Fischer wrote:
>>>>
>>>>>Bob Bogle <TheVentures@bass.gov> wrote:
>>>>>
>>>>>>Deep@Dudu.org wrote:
>>>>>>
>>>>>>>On Mon, 25 Apr 2011 17:40:17 -0500, RD Sandman
>>>
>>>
>>>>>>>>True, but they don't need the government to tell them they must do
>>>>>>>>it.
>>>>>>>
>>>>>>>THE GOVERNMENT SHOULDN'T HAVE TO ! But somehow it does. Or do you
>>>>>>>prefer we go back to merry Olde England where you need to step over
>>>>>>>the barely alive rotting bodies in the gutter?
>>>>>>
>>>>>>You want Socialism, you retard.
>>>>>
>>>>>You want limitless greed.
>>>>>
>>>>>
>>>>>>Hungry? Get a job, you retard.
>>>>>
>>>>>
>>>>>Want anarchy? Go somewhere else, thief.
>>>>
>>>>I'm happy here,
>>>
>>> Obviously you're not, rightard. Why do you keep lying?
>>
>>Ahh, another socialist retard springs up like a weed.
>
> Don't use words like "socialist" that you don't understand, dumbass.
> It just makes you look like a stupid parrot.
>

Then YOU shouldn?t use words like liberty and freedom. It makes you sound
like a hypocrite.

--
Herman Cain for President! http://herma...
If you don't support him you are a Racist!!
He beat Cancer. He'll beat Obama (who is just like cancer)

Remember Desert One, Carter 0? Ain't it sad to wish that Obama had as much
ambition but being glad he doesn't knowing he doesn't have THAT much
competence?

rfischer

5/1/2011 6:06:00 AM

0

Gray Ghost <grey_ghost471-newsgroups@yahoo.com> wrote:
>rfischer@sonic.net (Ray Fischer) wrote in
>news:4dbc77ad$0$10537$742ec2ed@news.sonic.net:
>
>> Jack Bruce <BLT@bass.gov> wrote:
>>>Ray Fischer wrote:
>>>> Bob Bogle <TheVentures@bass.gov> wrote:
>>>>
>>>>>Ray Fischer wrote:
>>>>>
>>>>>>Bob Bogle <TheVentures@bass.gov> wrote:
>>>>>>
>>>>>>>Deep@Dudu.org wrote:
>>>>>>>
>>>>>>>>On Mon, 25 Apr 2011 17:40:17 -0500, RD Sandman
>>>>
>>>>
>>>>>>>>>True, but they don't need the government to tell them they must do
>>>>>>>>>it.
>>>>>>>>
>>>>>>>>THE GOVERNMENT SHOULDN'T HAVE TO ! But somehow it does. Or do you
>>>>>>>>prefer we go back to merry Olde England where you need to step over
>>>>>>>>the barely alive rotting bodies in the gutter?
>>>>>>>
>>>>>>>You want Socialism, you retard.
>>>>>>
>>>>>>You want limitless greed.
>>>>>>
>>>>>>
>>>>>>>Hungry? Get a job, you retard.
>>>>>>
>>>>>>
>>>>>>Want anarchy? Go somewhere else, thief.
>>>>>
>>>>>I'm happy here,
>>>>
>>>> Obviously you're not, rightard. Why do you keep lying?
>>>
>>>Ahh, another socialist retard springs up like a weed.
>>
>> Don't use words like "socialist" that you don't understand, dumbass.
>> It just makes you look like a stupid parrot.
>
>Then YOU shouldn?t use words like liberty and freedom.

Unlike you, I know what those words mean, and they do NOT mean that
you get the freedom and everybody else must obey.

--
Ray Fischer | Mendacracy (n.) government by lying
rfischer@sonic.net | The new GOP ideal

Jack Bruce

5/1/2011 11:55:00 AM

0

Ray Fischer wrote:

> Jack Bruce <BLT@bass.gov> wrote:
>
>>Ray Fischer wrote:
>>
>>
>>>Jack Bruce <BLT@bass.gov> wrote:
>>>
>>>
>>>>Ray Fischer wrote:
>>>>
>>>>
>>>>>Bob Bogle <TheVentures@bass.gov> wrote:
>>>>>
>>>>>
>>>>>
>>>>>>Ray Fischer wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Bob Bogle <TheVentures@bass.gov> wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Deep@Dudu.org wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>On Mon, 25 Apr 2011 17:40:17 -0500, RD Sandman
>>>>>
>>>>>
>>>>>>>>>>True, but they don't need the government to tell them they must do it.
>>>>>>>>>
>>>>>>>>>THE GOVERNMENT SHOULDN'T HAVE TO ! But somehow it does. Or do you
>>>>>>>>>prefer we go back to merry Olde England where you need to step over
>>>>>>>>>the barely alive rotting bodies in the gutter?
>>>>>>>>
>>>>>>>>You want Socialism, you retard.
>>>>>>>
>>>>>>>You want limitless greed.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Hungry? Get a job, you retard.
>>>>>>>
>>>>>>>
>>>>>>>Want anarchy? Go somewhere else, thief.
>>>>>>
>>>>>>I'm happy here,
>>>>>
>>>>>Obviously you're not, rightard. Why do you keep lying?
>>>>
>>>>Ahh, another socialist retard springs up like a weed.
>>>
>>>
>>>Don't use words like "socialist" that you don't understand, dumbass.
>>>It just makes you look like a stupid parrot.
>>
>>Butt, you ARE a Socialistic, retarded, unemployed, commy rat bastard
>
>
> Stupid parrot it is, then.

OK, yer that too.
Thanks.