run ruby qpid error:
ruby code
================================================
#!/usr/bin/env ruby
require "rubygems"
require "qpid"
require "socket"
conn = Qpid::Connection.new(TCPSocket.new("localhost", 5672))
conn.start(10)
#ssn = conn.session("qpid_consumer")
===================================================
error:
./consumer.rb:7: uninitialized constant Qpid::Connection (NameError)
Solution:
[cg@FSWWW ruby]$ sudo yum install ruby-qpid
No comments:
Post a Comment