我是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
使用命令
安装gligem 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
安装blather:
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
任何帮助将不胜感激。谢谢!
答案 0 :(得分:0)
自己找到解决方案!
包括GLI :: App而不是GLI,并在最后一行将“退出GLI.run(ARGV)”更改为“退出运行(ARGV)
在此处找到此信息: