我在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?
最佳答案
你需要先安装它:
原文链接:https://www.f2er.com/mysql/433546.htmlapt-get install libMysqLclient-dev