【发布时间】:2011-08-10 00:00:25
【问题描述】:
/redmine$ ruby 脚本/服务器 -e 生产
=> 启动 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:inconnect'
当我重新启动我的应用程序时会出现此问题。事实上,昨天它运行良好。但是今天我试了很多,搜索了网络,但没有成功。
谷歌搜索后,我得到了一个更新系统的命令,即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'
【问题讨论】:
标签: mysql ruby-on-rails ruby redmine redmine-plugins