我有一個rails環境,我用macports設置。我最近更新了macports,這似乎有破壞rails的副作用。當我嘗試引導軌服務器我得到:MySQL綁定的Rails 2.3.5在Mac OS X 10.5.8
$ ./script/server => Booting WEBrick => Rails 2.3.5 application starting on http://0.0.0.0:3000 /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement !!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql. /opt/local/lib/ruby/vendor_ruby/1.8/i686-darwin9/mysql.bundle: dlopen(/opt/local/lib/ruby/vendor_ruby/1.8/i686-darwin9/mysql.bundle, 9): Library not loaded: /opt/local/lib/mysql5/mysql/libmysqlclient.15.dylib (LoadError) Referenced from: /opt/local/lib/ruby/vendor_ruby/1.8/i686-darwin9/mysql.bundle Reason: image not found - /opt/local/lib/ruby/vendor_ruby/1.8/i686-darwin9/mysql.bundle
我試着用不同的配置我已經找到了網絡上,但似乎沒有幫助重新安裝mysql的寶石很多次。此外,當我嘗試使用耙子我得到:
rake db:migrate Rails requires RubyGems >= 1.3.1 (you have 1.0.1). Please
寶石更新--system and try again.
即使:
gem --version 1.3.6
這是怎麼回事?