我在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
(编辑:威海站长网)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|