首页 > 解决方案 > 我无法在 JRUBY 上安装 Nokogiri

问题描述

我以前从未使用过 JRuby,但我这样做是为了修改游戏。这是我正在关注的教程:http: //www.twcenter.net/forums/showthread.php? 707386-Using-ESFviaXML-to-Unpack-Startpos-and-Save-Games-into-Text-Files

我通过说 jruby -version 来检查 JRuby 是否工作,但我得到 NameError: undefined local variable or method `rsion' for main:Object。我不知道这是否有问题。

无论如何,我使用: jgem install nokogiri --pre 但我得到了这个:

回溯(最近一次通话最后):6:来自 D:\jruby-9.2.16.0/bin/jirb_swing:63:in `'

    5: from org/jruby/RubyKernel.java:1189:in `catch'
    4: from org/jruby/RubyKernel.java:1189:in `catch'
    3: from org/jruby/RubyKernel.java:1442:in `loop'
    2: from org/jruby/RubyKernel.java:1048:in `eval'
    1: from (irb):5:in `evaluate'

NameError (undefined local variable or method `pre' for main:Object) 你的意思是?过程

我不知道我做错了什么,因为我以前从未使用过 Ruby。

标签: nokogirijruby

解决方案


推荐阅读