1.安装mysql
[color=red]sudo apt-get install mysql-server[/color]
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.[url=http://stackoverflow.com/questions/3655923/ruby-gem-mysql2-install-error]解决方法[/url]:安装2个lib
[color=red]sudo apt-get install libmysql-ruby libmysqlclient-dev[/color]
4.bundle, 成功! 楼主笑了!
游客,你笑了么~
[color=red]sudo apt-get install mysql-server[/color]
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.[url=http://stackoverflow.com/questions/3655923/ruby-gem-mysql2-install-error]解决方法[/url]:安装2个lib
[color=red]sudo apt-get install libmysql-ruby libmysqlclient-dev[/color]
4.bundle, 成功! 楼主笑了!
游客,你笑了么~