ruby on rails安装mysql环境(缺少mysql2)

ruby 函数语法


在安装ruby on rails的时候, 卡在mysql的安装上, 最终按照如下方案解决: 
sudo apt-get install libmysql-ruby libmysqlclient-dev
sudo apt-get install libmysqlclient-dev

On Red Hat/CentOS and other distributions using yum:

sudo yum install mysql-devel

On Mac OS X with Homebrew:

brew install mysql



http://stackoverflow.com/questions/3608287/error-installing-mysql2-failed-to-build-gem-native-extension


欢迎转载,转载请注明来自一手册:http://yishouce.com/article/81.html
友情链接It题库(ittiku.com)| 版权归yishouce.com所有| 友链等可联系 admin#yishouce.com|粤ICP备16001685号-1