I tried to run sample example with ruby and jruby
ended up with these errors
root@cs11947 /home/adhearsion/testbed_slonophone/load_test # ruby sippy.rb
/usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require': /usr/local/rvm/gems/ruby-2.0.0-p247/gems/packetfu-1.1.8/lib/packetfu/protos/lldp.rb:19: invalid multibyte escape: /^\x01\x80\xc2\x00\x00[\x0e\x03\x00]/ (SyntaxError) from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/packetfu-1.1.8/lib/packetfu.rb:21:in block in require_protos' from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/packetfu-1.1.8/lib/packetfu.rb:18:ineach'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/packetfu-1.1.8/lib/packetfu.rb:18:in require_protos' from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/packetfu-1.1.8/lib/packetfu.rb:149:in<top (required)>'
from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require' from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/sippy_cup-0.2.1/lib/sippy_cup/media/rtp_payload.rb:2:in <top (required)>' from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require' from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/sippy_cup-0.2.1/lib/sippy_cup/media/pcmu_payload.rb:1:in<top (required)>'
from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require' from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/sippy_cup-0.2.1/lib/sippy_cup/media.rb:2:in <top (required)>' from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire'
from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in require' from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/sippy_cup-0.2.1/lib/sippy_cup.rb:5:inblock in <top (required)>'
from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/sippy_cup-0.2.1/lib/sippy_cup.rb:5:in each' from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/sippy_cup-0.2.1/lib/sippy_cup.rb:5:in<top (required)>'
from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in require' from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:inrescue in require'
from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:35:in require' from sippy.rb:1:in'
root@cs11947 /home/adhearsion/testbed_slonophone/load_test # rvm use jruby
Using /usr/local/rvm/gems/jruby-1.7.4
root@cs11947 /home/adhearsion/testbed_slonophone/load_test # ruby sippy.rb
NoMethodError: undefined method `namespace' for main:Object
(root) at /usr/local/rvm/gems/jruby-1.7.4/gems/sippy_cup-0.2.1/lib/sippy_cup/tasks.rb:4
require at org/jruby/RubyKernel.java:1054
require at /usr/local/rvm/rubies/jruby-1.7.4/lib/ruby/shared/rubygems/custom_require.rb:36
(root) at sippy.rb:2
~
Please take a look at the README in the Requirements section it mentions that Ruby 2.0.0 is not yet supported due to issues in our upstream library PacketFu. For now you must use Ruby 1.9.3.
I have not tested on JRuby, so if you are having issues there please open them as a separate issue.
I tried to run sample example with ruby and jruby ended up with these errors root@cs11947 /home/adhearsion/testbed_slonophone/load_test # ruby sippy.rb /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in'
root@cs11947 /home/adhearsion/testbed_slonophone/load_test # rvm use jruby
Using /usr/local/rvm/gems/jruby-1.7.4
root@cs11947 /home/adhearsion/testbed_slonophone/load_test # ruby sippy.rb
NoMethodError: undefined method `namespace' for main:Object
(root) at /usr/local/rvm/gems/jruby-1.7.4/gems/sippy_cup-0.2.1/lib/sippy_cup/tasks.rb:4
require at org/jruby/RubyKernel.java:1054
require at /usr/local/rvm/rubies/jruby-1.7.4/lib/ruby/shared/rubygems/custom_require.rb:36
(root) at sippy.rb:2
~
require': /usr/local/rvm/gems/ruby-2.0.0-p247/gems/packetfu-1.1.8/lib/packetfu/protos/lldp.rb:19: invalid multibyte escape: /^\x01\x80\xc2\x00\x00[\x0e\x03\x00]/ (SyntaxError) from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
require' from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/packetfu-1.1.8/lib/packetfu.rb:21:inblock in require_protos' from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/packetfu-1.1.8/lib/packetfu.rb:18:in
each' from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/packetfu-1.1.8/lib/packetfu.rb:18:inrequire_protos' from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/packetfu-1.1.8/lib/packetfu.rb:149:in
<top (required)>' from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire' from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
require' from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/sippy_cup-0.2.1/lib/sippy_cup/media/rtp_payload.rb:2:in<top (required)>' from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
require' from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire' from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/sippy_cup-0.2.1/lib/sippy_cup/media/pcmu_payload.rb:1:in
<top (required)>' from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire' from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
require' from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/sippy_cup-0.2.1/lib/sippy_cup/media.rb:2:in<top (required)>' from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
require' from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:inrequire' from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/sippy_cup-0.2.1/lib/sippy_cup.rb:5:in
block in <top (required)>' from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/sippy_cup-0.2.1/lib/sippy_cup.rb:5:ineach' from /usr/local/rvm/gems/ruby-2.0.0-p247/gems/sippy_cup-0.2.1/lib/sippy_cup.rb:5:in
<top (required)>' from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:inrequire' from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in
rescue in require' from /usr/local/rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:35:inrequire' from sippy.rb:1:in