Hi... I'm a rails 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... this is the last output
when I tried to run a rake db:migrate:
uninitialized constant MysqlCompat::MysqlRes
Hi... I'm a rails 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...
@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...
@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:
OSX Snow Leopard will return the same results you're getting if you
don't set the ARCHflags. You'll have to look them up for your system,
but the syntax is something like this:
sudo env ARCHFLAGS="-arch x86_64" gem install mysql --
--with-mysql-config=/usr/local/mysql/bin/mysql_config
When you get the ARCHflags parameter right, that should resolve your
uninitialized constant issue.
If you then get the "No definition for [ResourceName]" ri and RDoc
warnings/errors, first uninstall your gem again, and then you'll have to
do something like this: