2013-03-25 74 views
1

试图让gitorious runnuning ..create_admin中止!未定义的方法`source_index '的宝石:模块

我得到未定义的方法`source_index' 的宝石:从ENV RAILS_ENV模块=生产ruby1.8的脚本/ create_admin

当我运行:env RAILS_ENV =生产ruby-1.8.7-p371 script/create_admin我得到了:注意:Gem.source_index已弃用,请使用Specification。它将在2011年11月1日或之后删除。 Gem.source_index从/usr/local/rvm/gems/ruby-1.8.7-p371/gems/rails- 2.3.18/lib/rails/gem_dependency.rb:21调用。

请看这里:http://pastebin.com/raw.php?i=YgV9Sym7这里:http://pastebin.com/raw.php?i=3LYTygS0

回答

1

我的看法是:

红宝石的最新稳定版本是1.9.3,因为使用的是红宝石的旧版本,你必须使用红宝石宝石这与1.8.7版本...这是一样的东西兼容:

gem update --system <your desired ruby gem version> 
1

我只需要运行下面的命令,它为我的作品

rvm install rubygems 1.4.2 --force 
相关问题