Reputation: 427
I`m currently trying to install the mysql packages for a rails 3 app via apt-get, so I can get the corresponding gems working.
When I run :
sudo apt-get install libmysql-ruby libmysqlclient-dev
I get:
E: Couldn't find package libmysql-ruby
I when try to update apt, I get:
Reading Package Lists... Done
Building Dependency Tree... Done
If this helps, apt got install via Fink for max osx (10.7) I would appriciate anykind of help with this issue.
Upvotes: 1
Views: 4089
Reputation: 697
In order to resolve
Gem::Ext::BuildError: ERROR: Failed to build gem native extension error for mysql2,
Simply try with following commands,
sudo apt-get install ruby-mysql
& then
sudo apt-get install libmysqlclient-dev
Upvotes: 0
Reputation: 81
Try this:
sudo apt-get install ruby-mysql2 libmysqlclient-dev
Upvotes: 5
Reputation: 1593
Well, I'm not really sure this is a programming question... But try this one out: apt-cache search libmysql-ruby to check for the package name and see if there is something else like it, or if that's a different spelling.
Upvotes: -1
Reputation: 13813
Just simple guess :
apt-cache search mysql | grep lib
Or just directly
apt-cache search libmysql-ruby
That may give you a hint to know if the package name is a little bit different.
Upvotes: 0