我在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 withmysqlconfig≡/usr/local/mysql/bin/mysql_config

我该怎么做才能安装mysql?
最佳答案
你需要先安装它:

apt-get install libmysqlclient-dev

dawei

【声明】:丽水站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。