在linux上安装warbler gem的问题

时间:2008-09-17 07:13:52

标签: rubygems jruby

> jruby -S gem install warbler
JRuby limited openssl loaded. gem install jruby-openssl for full support.
Successfully installed warbler-0.9.11
1 gem installed
Installing ri documentation for warbler-0.9.11...
Installing RDoc documentation for warbler-0.9.11...
> jruby -S warble
<snip>/jruby-1.1.4/bin/warble:1: undefined method `warble' for JRuby::Commands:Class (NoMethodError)

为什么我在jruby bin目录中没有获得warbler命令的任何想法?

谢谢,

3 个答案:

答案 0 :(得分:1)

我唯一能想到的是确保你的JRuby实例默认使用gems。我在使用gems时遇到了几次这个问题,我忘了设置环境变量或者将开关传递给Ruby。我不知道JRuby的情况是否有所不同。

答案 1 :(得分:0)

你试过gem install warbler吗?它对我来说很有魅力 -

C:\>gem install warbler
JRuby limited openssl loaded. gem install jruby-openssl for full support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
Successfully installed jruby-jars-1.3.1
Successfully installed warbler-0.9.14
2 gems installed
Installing ri documentation for jruby-jars-1.3.1...
Installing ri documentation for warbler-0.9.14...
Installing RDoc documentation for jruby-jars-1.3.1...
Installing RDoc documentation for warbler-0.9.14...

答案 2 :(得分:0)

你应该在你的路径中使用warble,warble二进制文件位于gems主目录的bin目录中。