感谢支持
我们一直在努力

Ubuntu7.10安装gem install mysql时出错的解决

问题:在Ubuntu7.10中,使用
Java代码
sudo gem install mysql 


sudo gem install mysql
出现:
Java代码
ERROR:  While executing gem … (RuntimeError)  
    ERROR: Failed to build gem native extension.  
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mys 


ERROR:  While executing gem … (RuntimeError)
    ERROR: Failed to build gem native extension.
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mys



解决方案
1.先运行
Java代码
$ sudo apt-get install libmysqlclient15-dev 


$ sudo apt-get install libmysqlclient15-dev


注意上面安装的库名为libmysqlclient15-dev而非libmysqlclient5-dev


2.再运行
Java代码
sudo gem install mysql 

赞(0) 打赏
转载请注明出处:服务器评测 » Ubuntu7.10安装gem install mysql时出错的解决
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏