×

Welcome to TagMyCode

Please login or create account to add a snippet.
1
0
 
0
Language: Ruby
Posted by: petecocoon
Added: Jul 18, 2011 2:09 PM
Views: 247
Tags: mysql ruby gem
If you take this error +

ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

/usr/local/rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes

...

when you try to install mysql ruby on ubuntu the solution is the follow
  1. sudo gem uninstall mysql
  2. sudo apt-get install libmysqlclient-dev -y
  3. sudo gem install mysql