jruby -S rake gems:install 显示成功,但实际上并未安装 gems

发布于 2024-08-08 22:30:51 字数 1031 浏览 7 评论 0原文

有人在jruby下使用过rake gems:install吗?运行 sudo jruby -S rake gems:install --trace 给出以下输出:

** Invoke gems:install (first_time)
** Invoke gems:base (first_time)
** Execute gems:base
** Invoke environment (first_time)
** Execute environment
** Execute gems:install gem install reek

For more information on reek, see http://wiki.github.com/kevinrutherford/reek 
Successfully installed reek-1.2.1 
1 gem installed 
Installing ri documentation for reek-1.2.1... 
Installing RDoc documentation for reek-1.2.1... 
gem install ci_reporter 
Successfully installed ci_reporter-1.6.0 
1 gem installed 
Installing ri documentation for ci_reporter-1.6.0... 
Installing RDoc documentation for ci_reporter-1.6.0...

一切似乎都很好,除了没有安装 gems。 jruby -S gem list 没有显示它们的记录,并且这些 gem 的定位也没有显示任何内容。

这是我的设置:

OSX 10.5.8
jruby 1.1.6 (installed with macports, yes I know it's not current)
Rails 2.2.2

有谁知道这是否是一个已知问题,或者我是否应该发出不同的命令来通过 jruby 的 Rails rake 命令安装 gem?我在网上找不到任何东西。

Has anyone used rake gems:install under jruby? running sudo jruby -S rake gems:install --trace give me the following output:

** Invoke gems:install (first_time)
** Invoke gems:base (first_time)
** Execute gems:base
** Invoke environment (first_time)
** Execute environment
** Execute gems:install gem install reek

For more information on reek, see http://wiki.github.com/kevinrutherford/reek 
Successfully installed reek-1.2.1 
1 gem installed 
Installing ri documentation for reek-1.2.1... 
Installing RDoc documentation for reek-1.2.1... 
gem install ci_reporter 
Successfully installed ci_reporter-1.6.0 
1 gem installed 
Installing ri documentation for ci_reporter-1.6.0... 
Installing RDoc documentation for ci_reporter-1.6.0...

All seems well, except that the gems are not installed. jruby -S gem list shows no record of them and a locate for these gems shows nothing.

Here's my setup:

OSX 10.5.8
jruby 1.1.6 (installed with macports, yes I know it's not current)
Rails 2.2.2

Does anyone know if this is a known issue, or if there's a different command I should be issuing to install gems through the rails rake command with jruby? I couldn't find anything on the web.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

谁的新欢旧爱 2024-08-15 22:30:51

我使用以下方法进行了健全性检查:

jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-08 6586) (Java HotSpot(TM) 64-B
it Server VM 1.6.0_16) [amd64-java]

我能够创建一个 Rails 应用程序,修改配置以包含 hpricot gem,并成功运行 jruby -S rake gems:installjruby -S rake宝石。

作为针对您的环境的第一步,获取最新的 1.40 版本,修改 $PATH 以指向较新的版本,然后查看是否可以重现问题。

I did a sanity check using:

jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-08 6586) (Java HotSpot(TM) 64-B
it Server VM 1.6.0_16) [amd64-java]

I was able to create a rails app, modify the config to include the hpricot gem, and successfully run jruby -S rake gems:install and jruby -S rake gems.

As a first step for your environment, get the latest 1.40 release, modify your $PATH to point to the newer release and see if you can recreate the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文