Http://www.songlin51.com/archives/667.html
Ubuntu 12.04 redmine2.1 installation record
When you install gem install rails, you cannot connect to rails.
Solution: Search for railson http://rubygems.org/gems/railsto download rails. gem for installation.
An error is reported when installing gem install mysql2.
Building native extensions. This cocould take a while...
Error: Error installing mysql2:
Error: failed to build gem native extension.
/Usr/bin/ruby1.8 extconf. Rb
Checking for rb_thread_blocking_region ()... no
Checking for rb_wait_for_single_fd ()... no
Checking for mysql_query () in-lmysqlclient... no
Checking for main () in-lM... yes
Checking for mysql_query () in-lmysqlclient... no
Checking for main () in-LZ... yes
Checking for mysql_query () in-lmysqlclient... no
Checking for main () in-lsocket... no
Checking for mysql_query () in-lmysqlclient... no
Checking for main () in-lnsl... yes
Checking for mysql_query () in-lmysqlclient... no
Checking for main () in-lmygcc... no
Checking for mysql_query () in-lmysqlclient... no
Solution: sudo apt-Get install libmysql-Ruby libmysqlclient-Dev