1

当我尝试在我的 Gemfile(例如来自 github)中包含外部 gem 时,我的 RVM 无法识别外部 gem。即使已经这样做了,它也一直告诉我要运行“捆绑安装”。

例如,当我登录 shell 并进行“捆绑检查”时,我看到所有“依赖项都已满足”,但在我的浏览器中,Passenger 告诉我我的 gem 没有被检出并“请运行bundle install”。

只是为了更清楚,这样做会给我上面的问题:

gem 'thinking-sphinx',
  :git     => 'git://github.com/freelancing-god/thinking-sphinx.git',
  :branch  => 'rails3',
  :require => 'thinking_sphinx'

但是使用本地宝石这样做确实有效:

gem 'thinking-sphinx'

回溯在这里。你知道问题可能是什么吗?

4

2 回答 2

1

尝试:

gem 'thinking-sphinx', '2.0.0.rc2', :require => 'thinking_sphinx'

最好要求一个特定的 gem 版本,而不是仅仅检查 master 或仍在开发中的分支。

于 2010-10-10T16:14:02.527 回答
1

Your application is probably not running as the intended user.

于 2010-10-10T18:49:07.347 回答