1

我是 ruby​​ 新手,想试试 ProcessOne 的推送平台 (p1pp)

我已经下载了 p1pp 的源代码(来自https://github.com/processone/p1pp),尝试在 Ubuntu 12.04 中运行它。

$./bin/p1.rb

得到错误:

/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- gli (LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from ./bin/p1.rb:16

使用命令安装 gli

gem install gli

这次我得到了

/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- blather/client/dsl (LoadError)
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /home/krishna/PubSub/p1pp-master/lib/p1pp/p1_publisher.rb:2
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from ./bin/p1.rb:18

安装的废话:

gem install blather

现在我被困在这里:

You should include GLI::App instead
GLI.run no longer works for GLI-2, you must just call `run(ARGV)' instead
either fix your app, or use the latest GLI in the 1.x family

任何帮助,将不胜感激。谢谢!

4

1 回答 1

0

自己找到了解决方案!

包括 GLI::App 而不是 GLI 并将最后一行中的“exit GLI.run(ARGV)”更改为“exit run(ARGV)

在这里找到这个信息:

[1] http://forums.pragprog.com/forums/200/topics/10975

[2] https://github.com/bencevans/hnews/issues/3

于 2012-11-22T15:41:04.197 回答