加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – 如何解决这个错误? config.gem:未包装的gem

发布时间:2020-12-16 19:52:56 所属栏目:百科 来源:网络整理
导读:启动我的Mongrel服务器时收到此错误… $script/server --debugger= Booting Mongrel= Rails 2.3.5 application starting on http://0.0.0.0:3000config.gem: Unpacked gem authlogic-2.1.3 in vendor/gems has no specification file. Run 'rake gems:refres
启动我的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宝石:refresh_specs喜欢它建议我得到另一个错误:

rake aborted!
undefined method `installed_source_index' for #<Gem::SourceIndex:0x100551a58>

关于如何解决这个问题的任何想法?

解决方法

我不知道为什么它在Authlogic被打破了,但是我自己必须生成它.

在您的Rails项目中尝试这样做:

$提示> cd vendor / gems / authlogic-2.1.3

$提示>宝石规范authlogic> .规范

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读