Home » Questions » Computers [ Ask a new question ]

How to install the MySQL Ruby Gem on Ubuntu 9.10?

How to install the MySQL Ruby Gem on Ubuntu 9.10?

I am having a problem installing the Ruby Gem for MySQL. This is the command that I am running:

Asked by: Guest | Views: 285
Total answers/comments: 2
bert [Entry]

"Thanks to this thread I found out that the reason it fails to install is because of

... a path pointing the wrong way when the package was compiled.

Thankfully the solution is very simple:

sudo gem uninstall mysql
sudo apt-get install libmysqlclient-dev -y
sudo gem install mysql

Note: I got an error message trying to uninstall mysql, but that's okay because it wasn't installed in the first place. While installing the mysql gem, I got messages that looked like errors: No definition for next_result, but those aren't errors. This happens when installing the documentation. They are just messages saying that there isn't any documentation available for certain functions."
bert [Entry]

"On Ubuntu Hardy, 8.04 I got the apt-get install to work with:

sudo apt-get install libmysqlclient15-dev -y"