我正在尝试使用脚本 blogger.rb 而我无法让它工作。它一直给我错误:
blogger.rb:294:在
text2html': undefined method
capture2'for Open3:Module(NoMethodError)
该脚本在开头执行require Open3
。我不明白问题出在哪里!我不懂Ruby。但是,我可以智能地阅读和编辑代码。
答案 0 :(得分:3)
我猜你使用的是Ruby 1.8,但脚本需要1.9。 Open3 class in 1.8.7有一个popen3
类方法,没有别的。 Ruby 1.9 Open3包含您正在寻找的capture2
和capture2e
类方法。因此,您需要将Ruby升级到1.9或找到另一个脚本。