The mysql2 gem hangs almost always on a newly installed system. You would most likely see this in the terminal.
Installing mysql2 0.3.19 with native extensions
The system might not have MySQL installed. Try installing MySQL.
brew install mysql
apt-get install mysql-server libmysqlclient-dev -y
yum install mysql-server