ubuntu mysql 安装
sudo apt-get install mysql-server
sudo apt-get install libmysqlclient-dev
ubuntu postgresql 安装
sudo apt-get install postgresql
sudo apt-get install libpq-dev build-essential
最后
bundle install
sudo apt-get install mysql-server
sudo apt-get install libmysqlclient-dev
ubuntu postgresql 安装
sudo apt-get install postgresql
sudo apt-get install libpq-dev build-essential
最后
bundle install