I am trying to run the first Rubywmq sample program provided and I am
having
some issues.
OS:
uname -a
Linux oc7871667644 2.6.32-71.29.1.el6.x86_64 #1 SMP Tue May 10 23:11:30
EDT
2011 x86_64 x86_64 x86_64 GNU/Linux
ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]
gem list
*** LOCAL GEMS ***
rubywmq (1.1.1)
pwd
/var/mqm
-bash-4.1$ ruby put1_a.rb
put1_a.rb:23:in connect': WMQ::QueueManager#connect(). Failed to load MQ Library:libmqm_r.so, rc=libmqm_r.so: cannot open shared object file: No such file or directory (WMQ::WMQException) from put1_a.rb:23:in
’
The suplied sample program:
cat put1_a.rb
Sample : put1() : Put a single message to a queue
require ‘rubygems’
require ‘wmq/wmq’
WMQ::QueueManager.connect(:q_mgr_name=>‘T400.P.QM’) do |qmgr|
qmgr.put(:q_name=>‘T400.P.LQ’, :data => ‘Hello World’)
end
Any help will be appreciated.
Thank you