rubyonrailsin

A Ruby and Rails talk

Monday, March 15, 2010


Re: [Rails] Re: Error running mysql in ror

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

Ok, I did require 'rubygems' and then require 'mysql'. They are return true

irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'mysql'
=> true


Is that mean mysql gem ok? Please be advise.


On Mon, Mar 15, 2010 at 6:40 AM, Frederick Cheung <frederick.cheung@gmail.com> wrote:


On Mar 15, 10:29 am, Yudi Soesanto <soesa...@gmail.com> wrote:
> Ok, used 2 different command: irb and ruby script/console.
>
> *I use irb and run this command:*
> irb(main):001:0> require 'mysql'
> LoadError: no such file to load -- mysql
>         from (irb):1:in `require'
>         from (irb):1
>
You need to require rubygems first (Keep an eye on the system logs (in
the console app) while you do this

The main difference between 2.0.2 and 2.3.5 is that 2.3.4 no longer
has a fallback version of the mysql driver (written in ruby) - it's
likely that your mysql driver has never been properly installed.

Fred

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive