Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing mysql2 gem for Ruby on Rails 3.1.0

I get this error

Gem files will remain installed in
/home/mark/.bundler/tmp/28288/gems/mysql2-0.2.17 for inspection.
Results logged to
/home/mark/.bundler/tmp/28288/gems/mysql2-0.2.17/ext/mysql2/gem_make.out
An error occured while installing mysql2 (0.2.17), and Bundler cannot
continue. Make sure that gem install mysql2 -v '0.2.17' succeeds
before bundling.

With a Ruby on Rails application and I can not solve it.

like image 435
Pierre Develop Avatar asked Jan 16 '12 00:01

Pierre Develop


1 Answers

Most folks find this works:

sudo apt-get install libmysql-ruby libmysqlclient-dev
like image 102
Michael Durrant Avatar answered Nov 16 '22 21:11

Michael Durrant