Posted by cnruby Fri, 21 Mar 2008 20:14:00 GMT

JRuby语言内部报道:CRuby语言和JRuby语言的gem命令差异

  • 问题提出
    曾经在CRuby和JRuby语言中,命令gem install antwrap或者gem install Antwrap是一样的,但是现在JRuby语言不行了,这是因为它注意区分大小写了。
  • JRuby错误命令实例
    jruby -S gem install antwrap -r
    命令执行输出结果
    JRuby limited openssl loaded. gem install jruby-openssl for full support.
    http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
    ERROR:  could not find antwrap locally or in a repository
  • 解决方案
    jruby -S gem install Antwrap -r
    命令执行 输出结果
    JRuby limited openssl loaded. gem install jruby-openssl for full support.
    http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
    Successfully installed Antwrap-0.7.0-java
    1 gem installed
    Installing ri documentation for Antwrap-0.7.0-java...
    Installing RDoc documentation for Antwrap-0.7.0-java...
  • 参考资料
    http://www.hhtong.com/blog1/articles/2007/08/06/infoq-20070806-antwrap

Posted in  | Tags , , ,