gem在rails中安装mysql问题

前端之家收集整理的这篇文章主要介绍了gem在rails中安装mysql问题前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我在rails应用程序中遇到错误.

The bundled mysql.rb driver has been
removed from Rails 2.2. Please install
the MysqL gem and try again: gem
install MysqL.

当我尝试做宝石安装MysqL它仍然无法正常工作,我得到这个错误.

WARNING: Installing to ~/.gem since
/Library/Ruby/Gems/1.8 and /usr/bin
aren’t both writable. WARNING: You
don’t have
/Users/bartligthart/.gem/ruby/1.8/bin
in your PATH,gem executables will
not run.

我也尝试了这个,但它没有用

sudo gem install MysqL −− −−with−MysqL−config≡/usr/local/MysqL/bin/MysqL_config

我该怎么做才能安装MysqL

最佳答案
你需要先安装它:

apt-get install libMysqLclient-dev
原文链接:https://www.f2er.com/mysql/433546.html

猜你在找的MySQL相关文章