gem install mysql2 failed on on Ubuntu 14.04
~# gem install mysql2
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb
Gem files will remain installed in /usr/local/rvm/gems/ruby-2.0.0-p353/gems/mysql2-0.3.16 for inspection.
I google and tried the below but still the same error. Pleas help! Thank you!
sudo apt-get install mysql-client libmysqlclient-dev
Maybe run this update first:
Might be worth upgrading ruby to 2.1.2, I heard it's a bit more stable. Is there no more output?
Also with checking if you have make: apt-get install make