启动脚本/控制台或脚本/服务器时出错

时间:2011-04-18 10:46:38

标签: ruby-on-rails ruby

错误:

/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:53:in `gem_original_require': no such file to load -- initializer (LoadError)
    from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:53:in `require'
    from ./script/../config/boot.rb:54:in `load_initializer'
    from ./script/../config/boot.rb:38:in `run'
    from ./script/../config/boot.rb:11:in `boot!'
    from ./script/../config/boot.rb:109
    from script/server:2:in `require'
    from script/server:2

Ruby 1.8.7

Rails 2.3.8

Rubgems 1.6.1

任何想法!

2 个答案:

答案 0 :(得分:1)

我安装了不同rails版本的列表(3.0.0,2.3.11,2.3.9)。卸载rails 3.0.0后。删除了所有3.0.0宝石,如actionmailer,activemodel,activeresource等。应用程序正在运行。

答案 1 :(得分:0)

你跑了吗?

  

捆绑安装

嗯,我不确定这个命令是否存在于rails 2.3中。让我知道。