/redmine$ ruby script/server -e production => Booting WEBrick => Rails 2.3.5 应用程序开始于http://0.0.0.0:3000
/home/siya/.rvm/gems/ruby-1.8.7-p330/ gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements 已弃用,将在 2010 年 8 月或之后删除。使用#requirement /home/siya/.rvm/gems /ruby-1.8.7-p330/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:589:in real_connect': Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) (Mysql::Error)
from /home/siya/.rvm/gems/ruby-1.8.7-p330/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:589:in
connect'
当我重新启动我的应用程序时会出现此问题。事实上,昨天它运行良好。但是今天我尝试了很多并搜索了网络,但无法成功。
谷歌搜索后,我得到一个命令来更新系统,即sudo gem update --system
现在出现新错误:
/home/siya/.rvm/gems/ruby-1.8.7-p330/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:55: uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
from /home/siya/.rvm/rubies/ruby-1.8.7-p330/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'