`
Hnot_Yet
  • 浏览: 10623 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

ubuntu12.04下 rails 安装mysql

 
阅读更多
1.安装mysql
sudo apt-get install mysql-server

2.如果此时马上bundle,可能会报如下错误:
ERROR: Failed to build gem native extension
。。。
。。。。
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details
或者
An error occurred while installing mysql2 (0.3.11), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.11'` succeeds before bundling.

总之,错误连连
3.解决方法:安装2个lib
sudo apt-get install libmysql-ruby libmysqlclient-dev

4.bundle, 成功! 楼主笑了!
游客,你笑了么~
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics