启动Mongrel服务器时出现此错误...

$ script/server --debugger
=> Booting Mongrel
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
config.gem: Unpacked gem authlogic-2.1.3 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
=> Debugger enabled
=> Call with -d to detach
=> Ctrl-C to shutdown server

当我运行rake gems:refresh_specs时,它提示我虽然遇到了另一个错误:
rake aborted!
undefined method `installed_source_index' for #<Gem::SourceIndex:0x100551a58>

有关如何解决此问题的任何想法?

最佳答案

我不确定为什么它在Authlogic中被破坏了,但是我必须自己生成它。

在您的Rails项目中尝试以下操作:

$ prompt> cd供应商/gems/authlogic-2.1.3

$ prompt> gem规范authlogic> .specification

关于ruby-on-rails - 如何解决此错误?供应商/ gem 中的config.gem : Unpacked gem authlogic-2. 1.3没有规范文件,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/2278847/

10-12 01:26