Done! Same results...

uninitialized constant MysqlCompat::MysqlRes

Thanks... Any other approach?

On Mar 17, 11:06 pm, Conrad Taylor <[email protected]> wrote:
> Sent from my iPhone
>
> On Mar 17, 2010, at 7:59 PM, José Luis Romero <[email protected]>  
> wrote:
>
>
>
> > @Conrad: thanks for take the time... I did what you told me... this it
> > what I change in enviroments.rb
>
> > config.gem "mysql-ruby",:lib=>"mysql"
>
> > Then, run again rake db:migrate and got this output:
>
> > "Missing these required gems:
> >  mysql-ruby
>
> > You're running:
> >  ruby 1.8.6.383 at /usr/bin/ruby
> >  rubygems 1.3.6 at /home/user/.gem/ruby/1.8, /usr/lib/ruby/gems/1.8
> > Run `rake gems:install` to install the missing gems."
>
> > run  rake gems:install and got this output:
>
> > "gem install mysql-ruby
> > ERROR:  could not find gem mysql-ruby locally or in a repository"
>
> > I got to say that this is a royal pain in the ass... I am a postgres
> > guy, but I wanted to try with mysql, and this is painfull... I don't
> > know if this is a test for newbies or something like that...
>
> > Any sugestion?
>
> José, try installing the MySQL gem by doing the following:
>
> sudo gem install mysql
>
> or
>
> gem install mysql
>
> Then update the config.gem line to
>
> config.gem "mysql"
>
> Good luck,
>
> -Conrad
>
>
>
> > Thanks
>
> > On Mar 17, 2:08 am, Conrad Taylor <[email protected]> wrote:
> >> On Mar 16, 2010, at 6:34 PM, José Luis Romero <[email protected]>
> >> wrote:
>
> >>> It looks like the gem is already installed, but when i run rake
> >>> db:migrate I got this error of uninitialized constant
> >>> MysqlCompat::MysqlRes.
>
> >>> this is the output of gem install mysql
>
> >>> #sudo gem install mysql --no-ri --no-rdoc
> >>> Building native extensions.  This could take a while...
> >>> Successfully installed mysql-2.8.1
> >>> 1 gem installed
>
> >>> and then I run rake db:migrate and voila...
>
> >>> "uninitialized constant MysqlCompat::MysqlRes"
>
> >> José, did you add the following to your environment.rb file:
>
> >> config.gem 'mysql'
>
> >> Good luck,
>
> >> -Conrad
>
> >>> On Mar 16, 1:04 pm, Leonardo Mateo <[email protected]> wrote:
> >>>> 2010/3/16 José Luis Romero <[email protected]>:> Hi... I'm a rail
> >>>> s newb, trying to do some rails homework or sort of...
> >>>>> I'm trying to run rails on Fedora 12... but it seems impossible...
> >>>>> It's impossible to install the mysql gem...
>
> >>>> Can you show the output for gem install mysql?
>
> >>>>  this is the last output
>
> >>>>> when I tried to run a rake db:migrate:
> >>>>> uninitialized constant MysqlCompat::MysqlRes
>
> >>>>> Any suggestion?
>
> >>>>> --
> >>>>> 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 [email protected]
> >>>>> .
> >>>>> To unsubscribe from this group, send email to 
> >>>>> [email protected]
> >>>>> .
> >>>>> For more options, visit this group athttp://groups.google.com/
> >>>>> group/rubyonrails-talk?hl=en.
>
> >>>> --
> >>>> Leonardo Mateo.
> >>>> There's no place like ~
>
> >>> --
> >>> 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-
> >>> [email protected].
> >>> To unsubscribe from this group, send email to 
> >>> [email protected]
> >>> .
> >>> For more options, visit this group athttp://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-
> > [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected]
> > .
> > For more options, visit this group 
> > athttp://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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to