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 の代わりに GLI::App をインクルードし、最後の行の「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 に答える