jruby -S rake gems:install 显示成功,但实际上并未安装 gems
有人在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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我使用以下方法进行了健全性检查:
我能够创建一个 Rails 应用程序,修改配置以包含 hpricot gem,并成功运行
jruby -S rake gems:install
和jruby -S rake宝石。
作为针对您的环境的第一步,获取最新的 1.40 版本,修改 $PATH 以指向较新的版本,然后查看是否可以重现问题。
I did a sanity check using:
I was able to create a rails app, modify the config to include the hpricot gem, and successfully run
jruby -S rake gems:install
andjruby -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.