Rails 2.2.2 and mysql issue on ubuntu


#1

Hi there,

It has been a while i did not use rails. I have upgraded to rails
2.2.2 and I tried to run my application, i got this error

!!! The bundled mysql.rb driver has been removed from Rails 2.2.
Please install the mysql gem and try again: gem install mysql.

I have mysql, and I used to run rails applications normally on 2.1.0,
I googled the error and I installed some libraries based on some
forums. However, the problem exists. Any idea please???


#2

On Sat, Jan 31, 2009 at 4:38 AM, Shuaib85 removed_email_address@domain.invalid
wrote:

It has been a while i did not use rails. I have upgraded to rails
2.2.2 and I tried to run my application, i got this error

!!! The bundled mysql.rb driver has been removed from Rails 2.2.
Please install the mysql gem and try again: gem install mysql.

I have mysql, and I used to run rails applications normally on 2.1.0,
I googled the error and I installed some libraries based on some
forums. However, the problem exists. Any idea please???

What’s ambiguous about gem install mysql ?


Hassan S. ------------------------ removed_email_address@domain.invalid


#3

What’s ambiguous is the fact that gem install mysql doesn’t solve the
problem. :expressionless:

I’ve run into this as well and the only solutions appear to be for
Windows, or require using the JRuby interpreter. Source:
http://forums.aptana.com/viewtopic.php?f=20&t=7563

I’m still trying to figure out a way around this as well. I’ve attached
the output of the attempted gem install. Each time, the Rake tasks (or
whatever) fail with the same

“!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please
install the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load – mysql”

Thanks!


#4

On Fri, 2010-02-12 at 02:36 +0100, Na Li wrote:

“!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please
install the mysql gem and try again: gem install mysql.
rake aborted!
no such file to load – mysql”

Thanks!

Attachments:
http://www.ruby-forum.com/attachment/4474/gemOut.txt


seems that the mysql gem installed just fine.

not that this will solve your problem but what is output of…

gem list --local

?

Craig


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


#5

On Fri, Feb 12, 2010 at 11:08 AM, Na Li removed_email_address@domain.invalid wrote:

rake (0.8.7)
Do you see Rails 2.2.2 components there? Me neither :slight_smile:

So there’s apparently a discrepancy somewhere between your
PATH and the gem environment(s). Try checking the output of
the following:

which rails
which gem
gem env


Hassan S. ------------------------ removed_email_address@domain.invalid
twitter: @hassan


#6

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
mysql (2.8.1)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)

I’ve attached the full-on trace output of the rake command for fun, too.

thanks.

-nate


seems that the mysql gem installed just fine.

not that this will solve your problem but what is output of…

gem list --local

?

Craig


#7

Hi all,

I am experiencing a similar problem with Ubuntu. I managed to install
everything as well, but I can’t run any of the apps: rails, rake.

I did check if everything was installed and I can see that it was, but I
am
unable to run the commands. When I do ruby -S rails, I get the following
error:

ruby: No such file or directory – rails (LoadError)

Where can I find the rails utility?

Someone mentioned JRuby. It is funny that I managed to get it to work
with
JRuby. It all works fine, but can’t seem to get it to work with ruby
1.8.7.

Has anyone managed to find out what it is wrong with rails and ubuntu?

Regards,

Fidel.


#8

On Fri, Feb 12, 2010 at 7:14 PM, Hassan S. <
removed_email_address@domain.invalid> wrote:

rails (2.3.5)
gem env
removed_email_address@domain.invalidremoved_email_address@domain.invalid
.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

Hi Hassan,

Since I am experiencing the same problem, I tried to find out and I
can’t
seem to find the path for rails. Nothing shows up. I get gem and env,
but
not rails or rake.

When I had rails 2.3.4 installed, everything worked fine. After the
repository ugpraded to 2.3.5, it all stopped working. I have tested it
in
Ubuntu 8.04 up to Ubuntu 9.10 and it all seems to be showing the same
problem.

I tried to install rails 3 as well, and I am getting the same problem.

Can’t really figure out why. I have installed everything using gem.
haven’t
really tried to install rails using aptitude. Will give it a try and
then
try to upgrade.

Regards,

Fidel.


#9

I got as far as I did but uninstalling everything, manually cleaning out
my usr/lib dirs for anything ruby, and then following the ubuntu
walkthrough:
https://help.ubuntu.com/community/RubyOnRails

Think I’ve installed everything three times now.

There are many issues if you end up installing some stuff as a user and
others as root, so watch for that. Make sure all your gem installs are
with sudo.

-nate