From linux at piard.de Tue Apr 8 13:24:27 2008 From: linux at piard.de (linux linux) Date: Tue, 8 Apr 2008 19:24:27 +0200 (MEST) Subject: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries Message-ID: <200804081724.m38HORNX005013@post.webmailer.de> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubywmq-misc/attachments/20080408/ecd01152/attachment-0001.html -------------- next part -------------- Hi al,, I would really appreciate any kind of help to get this run: uname -a 2.6.20.16 #1 SMP Wed Aug 22 12:05:00 CEST 2007 x86_64 x86_64 x86_64 GNU/Linux ruby test.rb Loaded suite test Started ****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E Finished in 0.003259 seconds. 1) Error: test_1(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 2) Error: test_1(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 3) Error: test_cics(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 4) Error: test_cics(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 5) Error: test_dlh(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 6) Error: test_dlh(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 7) Error: test_dynamic_buffer(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 8) Error: test_dynamic_buffer(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 9) Error: test_exceptions(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 10) Error: test_exceptions(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 11) Error: test_execute(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 12) Error: test_execute(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 13) Error: test_ims(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 14) Error: test_ims(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 15) Error: test_mqsc(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 16) Error: test_mqsc(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 17) Error: test_multiple_headers(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 18) Error: test_multiple_headers(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 19) Error: test_put1(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 20) Error: test_put1(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 21) Error: test_q_name_hash(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 22) Error: test_q_name_hash(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 23) Error: test_queue_manager(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 24) Error: test_queue_manager(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 25) Error: test_rf_header(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 26) Error: test_rf_header(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 27) Error: test_rf_header_2(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 28) Error: test_rf_header_2(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 29) Error: test_transmission_header(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 30) Error: test_transmission_header(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 31) Error: test_xmit_multiple_headers(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 32) Error: test_xmit_multiple_headers(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 16 tests, 0 assertions, 0 failures, 32 errors Any suggestions? bye Henry From linux at piard.de Tue Apr 8 14:17:43 2008 From: linux at piard.de (linux linux) Date: Tue, 8 Apr 2008 20:17:43 +0200 (MEST) Subject: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries Message-ID: <200804081817.m38IHhMe009952@post.webmailer.de> An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubywmq-misc/attachments/20080408/f6ad30b6/attachment.html -------------- next part -------------- OK - I changed in wmq_mq_load.c for linux: #define MQ_LIBRARY_SERVER "libmqm_r.so" #define MQ_LIBRARY_CLIENT "lib/libmqic_r.so" to #define MQ_LIBRARY_SERVER "/op/mqm/lib/libmqm_r.so" #define MQ_LIBRARY_CLIENT "/opt/mqm/lib/libmqic_r.so" and re-compiled. But now this: 1) Error: test_1(TestTest): WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF class: ELFCLASS32 test.rb:12:in `connect' test.rb:12:in `setup' 2) Error: test_1(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 3) Error: test_cics(TestTest): WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF class: ELFCLASS32 test.rb:12:in `connect' test.rb:12:in `setup' 4) Error: test_cics(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 5) Error: test_dlh(TestTest): WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF class: ELFCLASS32 test.rb:12:in `connect' test.rb:12:in `setup' 6) Error: test_dlh(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 7) Error: test_dynamic_buffer(TestTest): WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF class: ELFCLASS32 test.rb:12:in `connect' test.rb:12:in `setup' end so on. bye Henry ----- original message -------- Subject: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries Sent: Tue, 08 Apr 2008 From: linux linux Hi al,, I would really appreciate any kind of help to get this run: uname -a 2.6.20.16 #1 SMP Wed Aug 22 12:05:00 CEST 2007 x86_64 x86_64 x86_64 GNU/Linux ruby test.rb Loaded suite test Started ****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E Finished in 0.003259 seconds. 1) Error: test_1(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 2) Error: test_1(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 3) Error: test_cics(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 4) Error: test_cics(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 5) Error: test_dlh(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 6) Error: test_dlh(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 7) Error: test_dynamic_buffer(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 8) Error: test_dynamic_buffer(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 9) Error: test_exceptions(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 10) Error: test_exceptions(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 11) Error: test_execute(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 12) Error: test_execute(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 13) Error: test_ims(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 14) Error: test_ims(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 15) Error: test_mqsc(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 16) Error: test_mqsc(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 17) Error: test_multiple_headers(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 18) Error: test_multiple_headers(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 19) Error: test_put1(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 20) Error: test_put1(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 21) Error: test_q_name_hash(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 22) Error: test_q_name_hash(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 23) Error: test_queue_manager(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 24) Error: test_queue_manager(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 25) Error: test_rf_header(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 26) Error: test_rf_header(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 27) Error: test_rf_header_2(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 28) Error: test_rf_header_2(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 29) Error: test_transmission_header(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 30) Error: test_transmission_header(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 31) Error: test_xmit_multiple_headers(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 32) Error: test_xmit_multiple_headers(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 16 tests, 0 assertions, 0 failures, 32 errors Any suggestions? bye Henry --- original message end ---- From rubywmq at gmail.com Tue Apr 8 20:32:44 2008 From: rubywmq at gmail.com (Reid Morrison) Date: Tue, 8 Apr 2008 20:32:44 -0400 Subject: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries In-Reply-To: <200804081817.m38IHhMe009952@post.webmailer.de> References: <200804081817.m38IHhMe009952@post.webmailer.de> Message-ID: <002701c899d9$3b380860$b1a81920$@com> Hi Henry, Several fixes were applied to trunk to address the 64 Bit Linux distribution. If possible, can you try building from trunk. If it works successfully, I will put out a new gem with the latest updates. To checkout the latest code: svn checkout svn://rubyforge.org/var/svn/rubywmq/trunk Let me know if you would prefer a private email with a zip file containing the sources or updated gem. Regards Reid From: rubywmq-misc-bounces at rubyforge.org [mailto:rubywmq-misc-bounces at rubyforge.org] On Behalf Of linux linux Sent: Tuesday, April 08, 2008 2:18 PM To: rubywmq-misc at rubyforge.org Subject: Re: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries OK - I changed in wmq_mq_load.c for linux: #define MQ_LIBRARY_SERVER "libmqm_r.so" #define MQ_LIBRARY_CLIENT "lib/libmqic_r.so" to #define MQ_LIBRARY_SERVER "/op/mqm/lib/libmqm_r.so" #define MQ_LIBRARY_CLIENT "/opt/mqm/lib/libmqic_r.so" and re-compiled. But now this: 1) Error: test_1(TestTest): WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF class: ELFCLASS32 test.rb:12:in `connect' test.rb:12:in `setup' 2) Error: test_1(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 3) Error: test_cics(TestTest): WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF class: ELFCLASS32 test.rb:12:in `connect' test.rb:12:in `setup' 4) Error: test_cics(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 5) Error: test_dlh(TestTest): WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF class: ELFCLASS32 test.rb:12:in `connect' test.rb:12:in `setup' 6) Error: test_dlh(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 7) Error: test_dynamic_buffer(TestTest): WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF class: ELFCLASS32 test.rb:12:in `connect' test.rb:12:in `setup' end so on. bye Henry ----- original message -------- Subject: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries Sent: Tue, 08 Apr 2008 From: linux linux Hi al,, I would really appreciate any kind of help to get this run: uname -a 2.6.20.16 #1 SMP Wed Aug 22 12:05:00 CEST 2007 x86_64 x86_64 x86_64 GNU/Linux ruby test.rb Loaded suite test Started ****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E****** setup: start ****** E****** teardown: start ****** E Finished in 0.003259 seconds. 1) Error: test_1(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 2) Error: test_1(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 3) Error: test_cics(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 4) Error: test_cics(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 5) Error: test_dlh(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 6) Error: test_dlh(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 7) Error: test_dynamic_buffer(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 8) Error: test_dynamic_buffer(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 9) Error: test_exceptions(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 10) Error: test_exceptions(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 11) Error: test_execute(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 12) Error: test_execute(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 13) Error: test_ims(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 14) Error: test_ims(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 15) Error: test_mqsc(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 16) Error: test_mqsc(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 17) Error: test_multiple_headers(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 18) Error: test_multiple_headers(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 19) Error: test_put1(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 20) Error: test_put1(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 21) Error: test_q_name_hash(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 22) Error: test_q_name_hash(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 23) Error: test_queue_manager(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 24) Error: test_queue_manager(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 25) Error: test_rf_header(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 26) Error: test_rf_header(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 27) Error: test_rf_header_2(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 28) Error: test_rf_header_2(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 29) Error: test_transmission_header(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 30) Error: test_transmission_header(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 31) Error: test_xmit_multiple_headers(TestTest): WMQ::WMQException: 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 test.rb:12:in `connect' test.rb:12:in `setup' 32) Error: test_xmit_multiple_headers(TestTest): NoMethodError: undefined method `close' for nil:NilClass test.rb:33:in `teardown' 16 tests, 0 assertions, 0 failures, 32 errors Any suggestions? bye Henry --- original message end ---- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/rubywmq-misc/attachments/20080408/2ade537f/attachment-0001.html From linux at piard.de Tue Apr 8 21:25:06 2008 From: linux at piard.de (Linux) Date: Tue, 08 Apr 2008 21:25:06 -0400 Subject: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries In-Reply-To: <002701c899d9$3b380860$b1a81920$@com> References: <200804081817.m38IHhMe009952@post.webmailer.de> <002701c899d9$3b380860$b1a81920$@com> Message-ID: <47FC1AF2.6040908@piard.de> Hi Reid, thanks for your reply. I build the gem and installed it but unfortunately I get the same errors. I built it like this: gem build rubywmq.gemspec Successfully built RubyGem Name: rubywmq Version: 0.3.0 File: rubywmq-0.3.0.gem [root at xyz trunk]# ls -la total 128 drwxr-xr-x 7 root root 4096 2008-04-09 03:21 . drwxr-xr-x 3 root root 4096 2008-04-09 03:20 .. -rw-r--r-- 1 root root 151 2008-04-09 03:20 .document drwxr-xr-x 3 root root 4096 2008-04-09 03:20 examples drwxr-xr-x 5 root root 4096 2008-04-09 03:20 ext drwxr-xr-x 3 root root 4096 2008-04-09 03:20 lib -rw-r--r-- 1 root root 584 2008-04-09 03:20 LICENSE -rw-r--r-- 1 root root 402 2008-04-09 03:20 Manifest.txt -rw-r--r-- 1 root root 389 2008-04-09 03:20 .project -rw-r--r-- 1 root root 2443 2008-04-09 03:20 README -rw-r--r-- 1 root root 59392 2008-04-09 03:21 rubywmq-0.3.0.gem -rw-r--r-- 1 root root 8153 2008-04-09 03:20 rubywmq-0.3.0-x86_64-linux.gem -rw-r--r-- 1 root root 1027 2008-04-09 03:20 rubywmq.binary.gemspec -rw-r--r-- 1 root root 761 2008-04-09 03:20 rubywmq.gemspec drwxr-xr-x 6 root root 4096 2008-04-09 03:20 .svn drwxr-xr-x 3 root root 4096 2008-04-09 03:20 tests and installed it with 'gem install rubywmq-0.3.0.gem' and it was installed like expected. ruby get_a.rb get_a.rb:23:in `connect': WMQ::QueueManager#connect(). Failed to load MQ Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF class: ELFCLASS32 (WMQ::WMQException) from get_a.rb:23 Did I do something wrong? bye Henry Reid Morrison wrote: > > Hi Henry, > > > > Several fixes were applied to trunk to address the 64 Bit Linux > distribution. > > > > If possible, can you try building from trunk. If it works > successfully, I will put out a new gem with the latest updates. > > > > To checkout the latest code: > > svn checkout svn://rubyforge.org/var/svn/rubywmq/trunk > > > > Let me know if you would prefer a private email with a zip file > containing the sources or updated gem. > > > > Regards > > Reid > > > > *From:* rubywmq-misc-bounces at rubyforge.org > [mailto:rubywmq-misc-bounces at rubyforge.org] *On Behalf Of *linux linux > *Sent:* Tuesday, April 08, 2008 2:18 PM > *To:* rubywmq-misc at rubyforge.org > *Subject:* Re: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries > > > > OK - I changed in wmq_mq_load.c for linux: > #define MQ_LIBRARY_SERVER "libmqm_r.so" > #define MQ_LIBRARY_CLIENT "lib/libmqic_r.so" > > to > > #define MQ_LIBRARY_SERVER "/op/mqm/lib/libmqm_r.so" > #define MQ_LIBRARY_CLIENT "/opt/mqm/lib/libmqic_r.so" > > and re-compiled. > > But now this: > > 1) Error: > test_1(TestTest): > WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong > ELF class: ELFCLASS32 > test.rb:12:in `connect' > test.rb:12:in `setup' > > 2) Error: > test_1(TestTest): > NoMethodError: undefined method `close' for nil:NilClass > test.rb:33:in `teardown' > > 3) Error: > test_cics(TestTest): > WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong > ELF class: ELFCLASS32 > test.rb:12:in `connect' > test.rb:12:in `setup' > > 4) Error: > test_cics(TestTest): > NoMethodError: undefined method `close' for nil:NilClass > test.rb:33:in `teardown' > > 5) Error: > test_dlh(TestTest): > WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong > ELF class: ELFCLASS32 > test.rb:12:in `connect' > test.rb:12:in `setup' > > 6) Error: > test_dlh(TestTest): > NoMethodError: undefined method `close' for nil:NilClass > test.rb:33:in `teardown' > > 7) Error: > test_dynamic_buffer(TestTest): > WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong > ELF class: ELFCLASS32 > test.rb:12:in `connect' > test.rb:12:in `setup' > > > end so on. > > > > bye > Henry > ----- original message -------- > > *Subject:* [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries > *Sent:* Tue, 08 Apr 2008 > *From:* linux linux > > Hi al,, > > I would really appreciate any kind of help to get this run: > uname -a > 2.6.20.16 #1 SMP Wed Aug 22 12:05:00 CEST 2007 x86_64 x86_64 x86_64 > GNU/Linux > > ruby test.rb > Loaded suite test > Started > ****** setup: start ****** > E****** teardown: start ****** > E****** setup: start ****** > E****** teardown: start ****** > E****** setup: start ****** > E****** teardown: start ****** > E****** setup: start ****** > E****** teardown: start ****** > E****** setup: start ****** > E****** teardown: start ****** > E****** setup: start ****** > E****** teardown: start ****** > E****** setup: start ****** > E****** teardown: start ****** > E****** setup: start ****** > E****** teardown: start ****** > E****** setup: start ****** > E****** teardown: start ****** > E****** setup: start ****** > E****** teardown: start ****** > E****** setup: start ****** > E****** teardown: start ****** > E****** setup: start ****** > E****** teardown: start ****** > E****** setup: start ****** > E****** teardown: start ****** > E****** setup: start ****** > E****** teardown: start ****** > E****** setup: start ****** > E****** teardown: start ****** > E****** setup: start ****** > E****** teardown: start ****** > E > Finished in 0.003259 seconds. > > 1) Error: > test_1(TestTest): > WMQ::WMQException: 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 > test.rb:12:in `connect' > test.rb:12:in `setup' > > 2) Error: > test_1(TestTest): > NoMethodError: undefined method `close' for nil:NilClass > test.rb:33:in `teardown' > > 3) Error: > test_cics(TestTest): > WMQ::WMQException: 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 > test.rb:12:in `connect' > test.rb:12:in `setup' > > 4) Error: > test_cics(TestTest): > NoMethodError: undefined method `close' for nil:NilClass > test.rb:33:in `teardown' > > 5) Error: > test_dlh(TestTest): > WMQ::WMQException: 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 > test.rb:12:in `connect' > test.rb:12:in `setup' > > 6) Error: > test_dlh(TestTest): > NoMethodError: undefined method `close' for nil:NilClass > test.rb:33:in `teardown' > > 7) Error: > test_dynamic_buffer(TestTest): > WMQ::WMQException: 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 > test.rb:12:in `connect' > test.rb:12:in `setup' > > 8) Error: > test_dynamic_buffer(TestTest): > NoMethodError: undefined method `close' for nil:NilClass > test.rb:33:in `teardown' > > 9) Error: > test_exceptions(TestTest): > WMQ::WMQException: 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 > test.rb:12:in `connect' > test.rb:12:in `setup' > > 10) Error: > test_exceptions(TestTest): > NoMethodError: undefined method `close' for nil:NilClass > test.rb:33:in `teardown' > > 11) Error: > test_execute(TestTest): > WMQ::WMQException: 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 > test.rb:12:in `connect' > test.rb:12:in `setup' > > 12) Error: > test_execute(TestTest): > NoMethodError: undefined method `close' for nil:NilClass > test.rb:33:in `teardown' > > 13) Error: > test_ims(TestTest): > WMQ::WMQException: 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 > test.rb:12:in `connect' > test.rb:12:in `setup' > > 14) Error: > test_ims(TestTest): > NoMethodError: undefined method `close' for nil:NilClass > test.rb:33:in `teardown' > > 15) Error: > test_mqsc(TestTest): > WMQ::WMQException: 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 > test.rb:12:in `connect' > test.rb:12:in `setup' > > 16) Error: > test_mqsc(TestTest): > NoMethodError: undefined method `close' for nil:NilClass > test.rb:33:in `teardown' > > 17) Error: > test_multiple_headers(TestTest): > WMQ::WMQException: 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 > test.rb:12:in `connect' > test.rb:12:in `setup' > > 18) Error: > test_multiple_headers(TestTest): > NoMethodError: undefined method `close' for nil:NilClass > test.rb:33:in `teardown' > > 19) Error: > test_put1(TestTest): > WMQ::WMQException: 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 > test.rb:12:in `connect' > test.rb:12:in `setup' > > 20) Error: > test_put1(TestTest): > NoMethodError: undefined method `close' for nil:NilClass > test.rb:33:in `teardown' > > 21) Error: > test_q_name_hash(TestTest): > WMQ::WMQException: 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 > test.rb:12:in `connect' > test.rb:12:in `setup' > > 22) Error: > test_q_name_hash(TestTest): > NoMethodError: undefined method `close' for nil:NilClass > test.rb:33:in `teardown' > > 23) Error: > test_queue_manager(TestTest): > WMQ::WMQException: 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 > test.rb:12:in `connect' > test.rb:12:in `setup' > > 24) Error: > test_queue_manager(TestTest): > NoMethodError: undefined method `close' for nil:NilClass > test.rb:33:in `teardown' > > 25) Error: > test_rf_header(TestTest): > WMQ::WMQException: 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 > test.rb:12:in `connect' > test.rb:12:in `setup' > > 26) Error: > test_rf_header(TestTest): > NoMethodError: undefined method `close' for nil:NilClass > test.rb:33:in `teardown' > > 27) Error: > test_rf_header_2(TestTest): > WMQ::WMQException: 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 > test.rb:12:in `connect' > test.rb:12:in `setup' > > 28) Error: > test_rf_header_2(TestTest): > NoMethodError: undefined method `close' for nil:NilClass > test.rb:33:in `teardown' > > 29) Error: > test_transmission_header(TestTest): > WMQ::WMQException: 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 > test.rb:12:in `connect' > test.rb:12:in `setup' > > 30) Error: > test_transmission_header(TestTest): > NoMethodError: undefined method `close' for nil:NilClass > test.rb:33:in `teardown' > > 31) Error: > test_xmit_multiple_headers(TestTest): > WMQ::WMQException: 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 > test.rb:12:in `connect' > test.rb:12:in `setup' > > 32) Error: > test_xmit_multiple_headers(TestTest): > NoMethodError: undefined method `close' for nil:NilClass > test.rb:33:in `teardown' > > 16 tests, 0 assertions, 0 failures, 32 errors > > > > Any suggestions? > > > bye > Henry > > > --- original message end ---- > > ------------------------------------------------------------------------ > > _______________________________________________ > RubyWMQ-Misc mailing list > RubyWMQ-Misc at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubywmq-misc > From linux at piard.de Tue Apr 8 21:31:38 2008 From: linux at piard.de (Linux) Date: Tue, 08 Apr 2008 21:31:38 -0400 Subject: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries In-Reply-To: <47FC1AF2.6040908@piard.de> References: <200804081817.m38IHhMe009952@post.webmailer.de> <002701c899d9$3b380860$b1a81920$@com> <47FC1AF2.6040908@piard.de> Message-ID: <47FC1C7A.5020002@piard.de> Hi Reid, one more info which might help. Name : MQSeriesSDK Relocations: (not relocatable) Group : Applications/Networking Source RPM: MQSeriesSDK-6.0.0-0.src.rpm Summary : WebSphere MQ SDK FileSet IBM WebSphere MQ for Linux for Intel Name : MQSeriesClient Relocations: (not relocatable) Group : Applications/Networking Source RPM: MQSeriesClient-6.0.0-0.src.rpm Summary : WebSphere MQ Client FileSet IBM WebSphere MQ for Linux for Intel Name : MQSeriesServer Relocations: (not relocatable) Group : Applications/Networking Source RPM: MQSeriesServer-6.0.0-0.src.rpm Summary : WebSphere MQ Server FileSet IBM WebSphere MQ for Linux for Intel Name : MQSeriesRuntime-U811634 Relocations: (not relocatable) Group : Applications/Networking Source RPM: MQSeriesRuntime-U811634-6.0.2-3.src.rpm Summary : WebSphere MQ Runtime FileSet (Maintenance Pack U811634) IBM WebSphere MQ for Linux for Intel, v6.0 Name : MQSeriesSDK-U811634 Relocations: (not relocatable) Group : Applications/Networking Source RPM: MQSeriesSDK-U811634-6.0.2-3.src.rpm Summary : WebSphere MQ SDK FileSet (Maintenance Pack U811634) IBM WebSphere MQ for Linux for Intel, v6.0 Name : MQSeriesRuntime Relocations: (not relocatable) Group : Applications/Networking Source RPM: MQSeriesRuntime-6.0.0-0.src.rpm Summary : WebSphere MQ Runtime FileSet IBM WebSphere MQ for Linux for Intel Name : MQSeriesServer-U811634 Relocations: (not relocatable) Group : Applications/Networking Source RPM: MQSeriesServer-U811634-6.0.2-3.src.rpm Summary : WebSphere MQ Server FileSet (Maintenance Pack U811634) IBM WebSphere MQ for Linux for Intel, v6.0 bye Henry Linux wrote: > Hi Reid, > > thanks for your reply. > > I build the gem and installed it but unfortunately I get the same errors. > > I built it like this: > gem build rubywmq.gemspec > Successfully built RubyGem > Name: rubywmq > Version: 0.3.0 > File: rubywmq-0.3.0.gem > > [root at xyz trunk]# ls -la > total 128 > drwxr-xr-x 7 root root 4096 2008-04-09 03:21 . > drwxr-xr-x 3 root root 4096 2008-04-09 03:20 .. > -rw-r--r-- 1 root root 151 2008-04-09 03:20 .document > drwxr-xr-x 3 root root 4096 2008-04-09 03:20 examples > drwxr-xr-x 5 root root 4096 2008-04-09 03:20 ext > drwxr-xr-x 3 root root 4096 2008-04-09 03:20 lib > -rw-r--r-- 1 root root 584 2008-04-09 03:20 LICENSE > -rw-r--r-- 1 root root 402 2008-04-09 03:20 Manifest.txt > -rw-r--r-- 1 root root 389 2008-04-09 03:20 .project > -rw-r--r-- 1 root root 2443 2008-04-09 03:20 README > -rw-r--r-- 1 root root 59392 2008-04-09 03:21 rubywmq-0.3.0.gem > -rw-r--r-- 1 root root 8153 2008-04-09 03:20 rubywmq-0.3.0-x86_64-linux.gem > -rw-r--r-- 1 root root 1027 2008-04-09 03:20 rubywmq.binary.gemspec > -rw-r--r-- 1 root root 761 2008-04-09 03:20 rubywmq.gemspec > drwxr-xr-x 6 root root 4096 2008-04-09 03:20 .svn > drwxr-xr-x 3 root root 4096 2008-04-09 03:20 tests > > and installed it with 'gem install rubywmq-0.3.0.gem' and it was > installed like expected. > > ruby get_a.rb > get_a.rb:23:in `connect': WMQ::QueueManager#connect(). Failed to load MQ > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF > class: ELFCLASS32 (WMQ::WMQException) > from get_a.rb:23 > > > Did I do something wrong? > > > > bye > Henry > > > Reid Morrison wrote: > >> Hi Henry, >> >> >> >> Several fixes were applied to trunk to address the 64 Bit Linux >> distribution. >> >> >> >> If possible, can you try building from trunk. If it works >> successfully, I will put out a new gem with the latest updates. >> >> >> >> To checkout the latest code: >> >> svn checkout svn://rubyforge.org/var/svn/rubywmq/trunk >> >> >> >> Let me know if you would prefer a private email with a zip file >> containing the sources or updated gem. >> >> >> >> Regards >> >> Reid >> >> >> >> *From:* rubywmq-misc-bounces at rubyforge.org >> [mailto:rubywmq-misc-bounces at rubyforge.org] *On Behalf Of *linux linux >> *Sent:* Tuesday, April 08, 2008 2:18 PM >> *To:* rubywmq-misc at rubyforge.org >> *Subject:* Re: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries >> >> >> >> OK - I changed in wmq_mq_load.c for linux: >> #define MQ_LIBRARY_SERVER "libmqm_r.so" >> #define MQ_LIBRARY_CLIENT "lib/libmqic_r.so" >> >> to >> >> #define MQ_LIBRARY_SERVER "/op/mqm/lib/libmqm_r.so" >> #define MQ_LIBRARY_CLIENT "/opt/mqm/lib/libmqic_r.so" >> >> and re-compiled. >> >> But now this: >> >> 1) Error: >> test_1(TestTest): >> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ >> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong >> ELF class: ELFCLASS32 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> 2) Error: >> test_1(TestTest): >> NoMethodError: undefined method `close' for nil:NilClass >> test.rb:33:in `teardown' >> >> 3) Error: >> test_cics(TestTest): >> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ >> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong >> ELF class: ELFCLASS32 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> 4) Error: >> test_cics(TestTest): >> NoMethodError: undefined method `close' for nil:NilClass >> test.rb:33:in `teardown' >> >> 5) Error: >> test_dlh(TestTest): >> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ >> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong >> ELF class: ELFCLASS32 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> 6) Error: >> test_dlh(TestTest): >> NoMethodError: undefined method `close' for nil:NilClass >> test.rb:33:in `teardown' >> >> 7) Error: >> test_dynamic_buffer(TestTest): >> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ >> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong >> ELF class: ELFCLASS32 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> >> end so on. >> >> >> >> bye >> Henry >> ----- original message -------- >> >> *Subject:* [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries >> *Sent:* Tue, 08 Apr 2008 >> *From:* linux linux >> >> Hi al,, >> >> I would really appreciate any kind of help to get this run: >> uname -a >> 2.6.20.16 #1 SMP Wed Aug 22 12:05:00 CEST 2007 x86_64 x86_64 x86_64 >> GNU/Linux >> >> ruby test.rb >> Loaded suite test >> Started >> ****** setup: start ****** >> E****** teardown: start ****** >> E****** setup: start ****** >> E****** teardown: start ****** >> E****** setup: start ****** >> E****** teardown: start ****** >> E****** setup: start ****** >> E****** teardown: start ****** >> E****** setup: start ****** >> E****** teardown: start ****** >> E****** setup: start ****** >> E****** teardown: start ****** >> E****** setup: start ****** >> E****** teardown: start ****** >> E****** setup: start ****** >> E****** teardown: start ****** >> E****** setup: start ****** >> E****** teardown: start ****** >> E****** setup: start ****** >> E****** teardown: start ****** >> E****** setup: start ****** >> E****** teardown: start ****** >> E****** setup: start ****** >> E****** teardown: start ****** >> E****** setup: start ****** >> E****** teardown: start ****** >> E****** setup: start ****** >> E****** teardown: start ****** >> E****** setup: start ****** >> E****** teardown: start ****** >> E****** setup: start ****** >> E****** teardown: start ****** >> E >> Finished in 0.003259 seconds. >> >> 1) Error: >> test_1(TestTest): >> WMQ::WMQException: 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 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> 2) Error: >> test_1(TestTest): >> NoMethodError: undefined method `close' for nil:NilClass >> test.rb:33:in `teardown' >> >> 3) Error: >> test_cics(TestTest): >> WMQ::WMQException: 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 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> 4) Error: >> test_cics(TestTest): >> NoMethodError: undefined method `close' for nil:NilClass >> test.rb:33:in `teardown' >> >> 5) Error: >> test_dlh(TestTest): >> WMQ::WMQException: 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 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> 6) Error: >> test_dlh(TestTest): >> NoMethodError: undefined method `close' for nil:NilClass >> test.rb:33:in `teardown' >> >> 7) Error: >> test_dynamic_buffer(TestTest): >> WMQ::WMQException: 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 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> 8) Error: >> test_dynamic_buffer(TestTest): >> NoMethodError: undefined method `close' for nil:NilClass >> test.rb:33:in `teardown' >> >> 9) Error: >> test_exceptions(TestTest): >> WMQ::WMQException: 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 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> 10) Error: >> test_exceptions(TestTest): >> NoMethodError: undefined method `close' for nil:NilClass >> test.rb:33:in `teardown' >> >> 11) Error: >> test_execute(TestTest): >> WMQ::WMQException: 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 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> 12) Error: >> test_execute(TestTest): >> NoMethodError: undefined method `close' for nil:NilClass >> test.rb:33:in `teardown' >> >> 13) Error: >> test_ims(TestTest): >> WMQ::WMQException: 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 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> 14) Error: >> test_ims(TestTest): >> NoMethodError: undefined method `close' for nil:NilClass >> test.rb:33:in `teardown' >> >> 15) Error: >> test_mqsc(TestTest): >> WMQ::WMQException: 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 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> 16) Error: >> test_mqsc(TestTest): >> NoMethodError: undefined method `close' for nil:NilClass >> test.rb:33:in `teardown' >> >> 17) Error: >> test_multiple_headers(TestTest): >> WMQ::WMQException: 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 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> 18) Error: >> test_multiple_headers(TestTest): >> NoMethodError: undefined method `close' for nil:NilClass >> test.rb:33:in `teardown' >> >> 19) Error: >> test_put1(TestTest): >> WMQ::WMQException: 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 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> 20) Error: >> test_put1(TestTest): >> NoMethodError: undefined method `close' for nil:NilClass >> test.rb:33:in `teardown' >> >> 21) Error: >> test_q_name_hash(TestTest): >> WMQ::WMQException: 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 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> 22) Error: >> test_q_name_hash(TestTest): >> NoMethodError: undefined method `close' for nil:NilClass >> test.rb:33:in `teardown' >> >> 23) Error: >> test_queue_manager(TestTest): >> WMQ::WMQException: 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 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> 24) Error: >> test_queue_manager(TestTest): >> NoMethodError: undefined method `close' for nil:NilClass >> test.rb:33:in `teardown' >> >> 25) Error: >> test_rf_header(TestTest): >> WMQ::WMQException: 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 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> 26) Error: >> test_rf_header(TestTest): >> NoMethodError: undefined method `close' for nil:NilClass >> test.rb:33:in `teardown' >> >> 27) Error: >> test_rf_header_2(TestTest): >> WMQ::WMQException: 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 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> 28) Error: >> test_rf_header_2(TestTest): >> NoMethodError: undefined method `close' for nil:NilClass >> test.rb:33:in `teardown' >> >> 29) Error: >> test_transmission_header(TestTest): >> WMQ::WMQException: 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 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> 30) Error: >> test_transmission_header(TestTest): >> NoMethodError: undefined method `close' for nil:NilClass >> test.rb:33:in `teardown' >> >> 31) Error: >> test_xmit_multiple_headers(TestTest): >> WMQ::WMQException: 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 >> test.rb:12:in `connect' >> test.rb:12:in `setup' >> >> 32) Error: >> test_xmit_multiple_headers(TestTest): >> NoMethodError: undefined method `close' for nil:NilClass >> test.rb:33:in `teardown' >> >> 16 tests, 0 assertions, 0 failures, 32 errors >> >> >> >> Any suggestions? >> >> >> bye >> Henry >> >> >> --- original message end ---- >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> RubyWMQ-Misc mailing list >> RubyWMQ-Misc at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rubywmq-misc >> >> > > _______________________________________________ > RubyWMQ-Misc mailing list > RubyWMQ-Misc at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubywmq-misc > From rubywmq at gmail.com Wed Apr 9 16:43:06 2008 From: rubywmq at gmail.com (Reid Morrison) Date: Wed, 9 Apr 2008 16:43:06 -0400 Subject: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries In-Reply-To: <47FC1C7A.5020002@piard.de> References: <200804081817.m38IHhMe009952@post.webmailer.de> <002701c899d9$3b380860$b1a81920$@com> <47FC1AF2.6040908@piard.de> <47FC1C7A.5020002@piard.de> Message-ID: Hi Henry, You did everything correctly. I have requested access to a 64Bit RedHat box so that I can see what the issue is. Access should be granted by tomorrow morning. Let me know if this is time critical for you as I can juggle a few things around. Regards Reid On Tue, Apr 8, 2008 at 9:31 PM, Linux wrote: > Hi Reid, > > one more info which might help. > > Name : MQSeriesSDK Relocations: (not relocatable) > Group : Applications/Networking Source RPM: > MQSeriesSDK-6.0.0-0.src.rpm > Summary : WebSphere MQ SDK FileSet > IBM WebSphere MQ for Linux for Intel > Name : MQSeriesClient Relocations: (not relocatable) > Group : Applications/Networking Source RPM: > MQSeriesClient-6.0.0-0.src.rpm > Summary : WebSphere MQ Client FileSet > IBM WebSphere MQ for Linux for Intel > Name : MQSeriesServer Relocations: (not relocatable) > Group : Applications/Networking Source RPM: > MQSeriesServer-6.0.0-0.src.rpm > Summary : WebSphere MQ Server FileSet > IBM WebSphere MQ for Linux for Intel > Name : MQSeriesRuntime-U811634 Relocations: (not relocatable) > Group : Applications/Networking Source RPM: > MQSeriesRuntime-U811634-6.0.2-3.src.rpm > Summary : WebSphere MQ Runtime FileSet (Maintenance Pack U811634) > IBM WebSphere MQ for Linux for Intel, v6.0 > Name : MQSeriesSDK-U811634 Relocations: (not relocatable) > Group : Applications/Networking Source RPM: > MQSeriesSDK-U811634-6.0.2-3.src.rpm > Summary : WebSphere MQ SDK FileSet (Maintenance Pack U811634) > IBM WebSphere MQ for Linux for Intel, v6.0 > Name : MQSeriesRuntime Relocations: (not relocatable) > Group : Applications/Networking Source RPM: > MQSeriesRuntime-6.0.0-0.src.rpm > Summary : WebSphere MQ Runtime FileSet > IBM WebSphere MQ for Linux for Intel > Name : MQSeriesServer-U811634 Relocations: (not relocatable) > Group : Applications/Networking Source RPM: > MQSeriesServer-U811634-6.0.2-3.src.rpm > Summary : WebSphere MQ Server FileSet (Maintenance Pack U811634) > IBM WebSphere MQ for Linux for Intel, v6.0 > > > > > bye > Henry > > > Linux wrote: > > > Hi Reid, > > > > thanks for your reply. > > > > I build the gem and installed it but unfortunately I get the same errors. > > > > I built it like this: > > gem build rubywmq.gemspec > > Successfully built RubyGem > > Name: rubywmq > > Version: 0.3.0 > > File: rubywmq-0.3.0.gem > > > > [root at xyz trunk]# ls -la > > total 128 > > drwxr-xr-x 7 root root 4096 2008-04-09 03:21 . > > drwxr-xr-x 3 root root 4096 2008-04-09 03:20 .. > > -rw-r--r-- 1 root root 151 2008-04-09 03:20 .document > > drwxr-xr-x 3 root root 4096 2008-04-09 03:20 examples > > drwxr-xr-x 5 root root 4096 2008-04-09 03:20 ext > > drwxr-xr-x 3 root root 4096 2008-04-09 03:20 lib > > -rw-r--r-- 1 root root 584 2008-04-09 03:20 LICENSE > > -rw-r--r-- 1 root root 402 2008-04-09 03:20 Manifest.txt > > -rw-r--r-- 1 root root 389 2008-04-09 03:20 .project > > -rw-r--r-- 1 root root 2443 2008-04-09 03:20 README > > -rw-r--r-- 1 root root 59392 2008-04-09 03:21 rubywmq-0.3.0.gem > > -rw-r--r-- 1 root root 8153 2008-04-09 03:20 > rubywmq-0.3.0-x86_64-linux.gem > > -rw-r--r-- 1 root root 1027 2008-04-09 03:20 rubywmq.binary.gemspec > > -rw-r--r-- 1 root root 761 2008-04-09 03:20 rubywmq.gemspec > > drwxr-xr-x 6 root root 4096 2008-04-09 03:20 .svn > > drwxr-xr-x 3 root root 4096 2008-04-09 03:20 tests > > > > and installed it with 'gem install rubywmq-0.3.0.gem' and it was installed > like expected. > > > > ruby get_a.rb > > get_a.rb:23:in `connect': WMQ::QueueManager#connect(). Failed to load MQ > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF > class: ELFCLASS32 (WMQ::WMQException) > > from get_a.rb:23 > > > > > > Did I do something wrong? > > > > > > > > bye > > Henry > > > > > > Reid Morrison wrote: > > > > > > > Hi Henry, > > > > > > > > > Several fixes were applied to trunk to address the 64 Bit Linux > distribution. > > > > > > > > > If possible, can you try building from trunk. If it works successfully, > I will put out a new gem with the latest updates. > > > > > > > > > To checkout the latest code: > > > > > > svn checkout svn://rubyforge.org/var/svn/rubywmq/trunk > > > > > > > > > Let me know if you would prefer a private email with a zip file > containing the sources or updated gem. > > > > > > > > > Regards > > > > > > Reid > > > > > > > > > *From:* rubywmq-misc-bounces at rubyforge.org > [mailto:rubywmq-misc-bounces at rubyforge.org] *On Behalf Of *linux linux > > > *Sent:* Tuesday, April 08, 2008 2:18 PM > > > *To:* rubywmq-misc at rubyforge.org > > > *Subject:* Re: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit > MQSeries > > > > > > > > > OK - I changed in wmq_mq_load.c for linux: > > > #define MQ_LIBRARY_SERVER "libmqm_r.so" > > > #define MQ_LIBRARY_CLIENT "lib/libmqic_r.so" > > > > > > to > > > > > > #define MQ_LIBRARY_SERVER "/op/mqm/lib/libmqm_r.so" > > > #define MQ_LIBRARY_CLIENT "/opt/mqm/lib/libmqic_r.so" > > > > > > and re-compiled. > > > > > > But now this: > > > > > > 1) Error: > > > test_1(TestTest): > > > WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF > class: ELFCLASS32 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > 2) Error: > > > test_1(TestTest): > > > NoMethodError: undefined method `close' for nil:NilClass > > > test.rb:33:in `teardown' > > > > > > 3) Error: > > > test_cics(TestTest): > > > WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF > class: ELFCLASS32 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > 4) Error: > > > test_cics(TestTest): > > > NoMethodError: undefined method `close' for nil:NilClass > > > test.rb:33:in `teardown' > > > > > > 5) Error: > > > test_dlh(TestTest): > > > WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF > class: ELFCLASS32 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > 6) Error: > > > test_dlh(TestTest): > > > NoMethodError: undefined method `close' for nil:NilClass > > > test.rb:33:in `teardown' > > > > > > 7) Error: > > > test_dynamic_buffer(TestTest): > > > WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF > class: ELFCLASS32 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > > > > end so on. > > > > > > > > > > > > bye > > > Henry > > > ----- original message -------- > > > > > > *Subject:* [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries > > > *Sent:* Tue, 08 Apr 2008 > > > *From:* linux linux > > > > > > Hi al,, > > > > > > I would really appreciate any kind of help to get this run: > > > uname -a > > > 2.6.20.16 #1 SMP Wed Aug 22 12:05:00 CEST 2007 x86_64 x86_64 x86_64 > GNU/Linux > > > > > > ruby test.rb > > > Loaded suite test > > > Started > > > ****** setup: start ****** > > > E****** teardown: start ****** > > > E****** setup: start ****** > > > E****** teardown: start ****** > > > E****** setup: start ****** > > > E****** teardown: start ****** > > > E****** setup: start ****** > > > E****** teardown: start ****** > > > E****** setup: start ****** > > > E****** teardown: start ****** > > > E****** setup: start ****** > > > E****** teardown: start ****** > > > E****** setup: start ****** > > > E****** teardown: start ****** > > > E****** setup: start ****** > > > E****** teardown: start ****** > > > E****** setup: start ****** > > > E****** teardown: start ****** > > > E****** setup: start ****** > > > E****** teardown: start ****** > > > E****** setup: start ****** > > > E****** teardown: start ****** > > > E****** setup: start ****** > > > E****** teardown: start ****** > > > E****** setup: start ****** > > > E****** teardown: start ****** > > > E****** setup: start ****** > > > E****** teardown: start ****** > > > E****** setup: start ****** > > > E****** teardown: start ****** > > > E****** setup: start ****** > > > E****** teardown: start ****** > > > E > > > Finished in 0.003259 seconds. > > > > > > 1) Error: > > > test_1(TestTest): > > > WMQ::WMQException: 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 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > 2) Error: > > > test_1(TestTest): > > > NoMethodError: undefined method `close' for nil:NilClass > > > test.rb:33:in `teardown' > > > > > > 3) Error: > > > test_cics(TestTest): > > > WMQ::WMQException: 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 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > 4) Error: > > > test_cics(TestTest): > > > NoMethodError: undefined method `close' for nil:NilClass > > > test.rb:33:in `teardown' > > > > > > 5) Error: > > > test_dlh(TestTest): > > > WMQ::WMQException: 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 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > 6) Error: > > > test_dlh(TestTest): > > > NoMethodError: undefined method `close' for nil:NilClass > > > test.rb:33:in `teardown' > > > > > > 7) Error: > > > test_dynamic_buffer(TestTest): > > > WMQ::WMQException: 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 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > 8) Error: > > > test_dynamic_buffer(TestTest): > > > NoMethodError: undefined method `close' for nil:NilClass > > > test.rb:33:in `teardown' > > > > > > 9) Error: > > > test_exceptions(TestTest): > > > WMQ::WMQException: 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 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > 10) Error: > > > test_exceptions(TestTest): > > > NoMethodError: undefined method `close' for nil:NilClass > > > test.rb:33:in `teardown' > > > > > > 11) Error: > > > test_execute(TestTest): > > > WMQ::WMQException: 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 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > 12) Error: > > > test_execute(TestTest): > > > NoMethodError: undefined method `close' for nil:NilClass > > > test.rb:33:in `teardown' > > > > > > 13) Error: > > > test_ims(TestTest): > > > WMQ::WMQException: 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 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > 14) Error: > > > test_ims(TestTest): > > > NoMethodError: undefined method `close' for nil:NilClass > > > test.rb:33:in `teardown' > > > > > > 15) Error: > > > test_mqsc(TestTest): > > > WMQ::WMQException: 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 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > 16) Error: > > > test_mqsc(TestTest): > > > NoMethodError: undefined method `close' for nil:NilClass > > > test.rb:33:in `teardown' > > > > > > 17) Error: > > > test_multiple_headers(TestTest): > > > WMQ::WMQException: 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 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > 18) Error: > > > test_multiple_headers(TestTest): > > > NoMethodError: undefined method `close' for nil:NilClass > > > test.rb:33:in `teardown' > > > > > > 19) Error: > > > test_put1(TestTest): > > > WMQ::WMQException: 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 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > 20) Error: > > > test_put1(TestTest): > > > NoMethodError: undefined method `close' for nil:NilClass > > > test.rb:33:in `teardown' > > > > > > 21) Error: > > > test_q_name_hash(TestTest): > > > WMQ::WMQException: 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 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > 22) Error: > > > test_q_name_hash(TestTest): > > > NoMethodError: undefined method `close' for nil:NilClass > > > test.rb:33:in `teardown' > > > > > > 23) Error: > > > test_queue_manager(TestTest): > > > WMQ::WMQException: 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 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > 24) Error: > > > test_queue_manager(TestTest): > > > NoMethodError: undefined method `close' for nil:NilClass > > > test.rb:33:in `teardown' > > > > > > 25) Error: > > > test_rf_header(TestTest): > > > WMQ::WMQException: 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 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > 26) Error: > > > test_rf_header(TestTest): > > > NoMethodError: undefined method `close' for nil:NilClass > > > test.rb:33:in `teardown' > > > > > > 27) Error: > > > test_rf_header_2(TestTest): > > > WMQ::WMQException: 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 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > 28) Error: > > > test_rf_header_2(TestTest): > > > NoMethodError: undefined method `close' for nil:NilClass > > > test.rb:33:in `teardown' > > > > > > 29) Error: > > > test_transmission_header(TestTest): > > > WMQ::WMQException: 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 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > 30) Error: > > > test_transmission_header(TestTest): > > > NoMethodError: undefined method `close' for nil:NilClass > > > test.rb:33:in `teardown' > > > > > > 31) Error: > > > test_xmit_multiple_headers(TestTest): > > > WMQ::WMQException: 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 > > > test.rb:12:in `connect' > > > test.rb:12:in `setup' > > > > > > 32) Error: > > > test_xmit_multiple_headers(TestTest): > > > NoMethodError: undefined method `close' for nil:NilClass > > > test.rb:33:in `teardown' > > > > > > 16 tests, 0 assertions, 0 failures, 32 errors > > > > > > > > > > > > Any suggestions? > > > > > > > > > bye > > > Henry > > > > > > > > > --- original message end ---- > > > > > > ------------------------------------------------------------------------ > > > > > > _______________________________________________ > > > RubyWMQ-Misc mailing list > > > RubyWMQ-Misc at rubyforge.org > > > http://rubyforge.org/mailman/listinfo/rubywmq-misc > > > > > > > > > > _______________________________________________ > > RubyWMQ-Misc mailing list > > RubyWMQ-Misc at rubyforge.org > > http://rubyforge.org/mailman/listinfo/rubywmq-misc > > > > > > From linux at piard.de Wed Apr 9 19:28:54 2008 From: linux at piard.de (Linux) Date: Wed, 09 Apr 2008 19:28:54 -0400 Subject: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries In-Reply-To: References: <200804081817.m38IHhMe009952@post.webmailer.de> <002701c899d9$3b380860$b1a81920$@com> <47FC1AF2.6040908@piard.de> <47FC1C7A.5020002@piard.de> Message-ID: <47FD5136.6030200@piard.de> Hi Reid, I really appreciate your support on this one. No problem, I can wait till tomorrow. Thanks! bye Henry Reid Morrison wrote: > Hi Henry, > > You did everything correctly. > > I have requested access to a 64Bit RedHat box so that I can see what > the issue is. Access should be granted by tomorrow morning. > > Let me know if this is time critical for you as I can juggle a few > things around. > > Regards > Reid > > > On Tue, Apr 8, 2008 at 9:31 PM, Linux wrote: > >> Hi Reid, >> >> one more info which might help. >> >> Name : MQSeriesSDK Relocations: (not relocatable) >> Group : Applications/Networking Source RPM: >> MQSeriesSDK-6.0.0-0.src.rpm >> Summary : WebSphere MQ SDK FileSet >> IBM WebSphere MQ for Linux for Intel >> Name : MQSeriesClient Relocations: (not relocatable) >> Group : Applications/Networking Source RPM: >> MQSeriesClient-6.0.0-0.src.rpm >> Summary : WebSphere MQ Client FileSet >> IBM WebSphere MQ for Linux for Intel >> Name : MQSeriesServer Relocations: (not relocatable) >> Group : Applications/Networking Source RPM: >> MQSeriesServer-6.0.0-0.src.rpm >> Summary : WebSphere MQ Server FileSet >> IBM WebSphere MQ for Linux for Intel >> Name : MQSeriesRuntime-U811634 Relocations: (not relocatable) >> Group : Applications/Networking Source RPM: >> MQSeriesRuntime-U811634-6.0.2-3.src.rpm >> Summary : WebSphere MQ Runtime FileSet (Maintenance Pack U811634) >> IBM WebSphere MQ for Linux for Intel, v6.0 >> Name : MQSeriesSDK-U811634 Relocations: (not relocatable) >> Group : Applications/Networking Source RPM: >> MQSeriesSDK-U811634-6.0.2-3.src.rpm >> Summary : WebSphere MQ SDK FileSet (Maintenance Pack U811634) >> IBM WebSphere MQ for Linux for Intel, v6.0 >> Name : MQSeriesRuntime Relocations: (not relocatable) >> Group : Applications/Networking Source RPM: >> MQSeriesRuntime-6.0.0-0.src.rpm >> Summary : WebSphere MQ Runtime FileSet >> IBM WebSphere MQ for Linux for Intel >> Name : MQSeriesServer-U811634 Relocations: (not relocatable) >> Group : Applications/Networking Source RPM: >> MQSeriesServer-U811634-6.0.2-3.src.rpm >> Summary : WebSphere MQ Server FileSet (Maintenance Pack U811634) >> IBM WebSphere MQ for Linux for Intel, v6.0 >> >> >> >> >> bye >> Henry >> >> >> Linux wrote: >> >> >>> Hi Reid, >>> >>> thanks for your reply. >>> >>> I build the gem and installed it but unfortunately I get the same errors. >>> >>> I built it like this: >>> gem build rubywmq.gemspec >>> Successfully built RubyGem >>> Name: rubywmq >>> Version: 0.3.0 >>> File: rubywmq-0.3.0.gem >>> >>> [root at xyz trunk]# ls -la >>> total 128 >>> drwxr-xr-x 7 root root 4096 2008-04-09 03:21 . >>> drwxr-xr-x 3 root root 4096 2008-04-09 03:20 .. >>> -rw-r--r-- 1 root root 151 2008-04-09 03:20 .document >>> drwxr-xr-x 3 root root 4096 2008-04-09 03:20 examples >>> drwxr-xr-x 5 root root 4096 2008-04-09 03:20 ext >>> drwxr-xr-x 3 root root 4096 2008-04-09 03:20 lib >>> -rw-r--r-- 1 root root 584 2008-04-09 03:20 LICENSE >>> -rw-r--r-- 1 root root 402 2008-04-09 03:20 Manifest.txt >>> -rw-r--r-- 1 root root 389 2008-04-09 03:20 .project >>> -rw-r--r-- 1 root root 2443 2008-04-09 03:20 README >>> -rw-r--r-- 1 root root 59392 2008-04-09 03:21 rubywmq-0.3.0.gem >>> -rw-r--r-- 1 root root 8153 2008-04-09 03:20 >>> >> rubywmq-0.3.0-x86_64-linux.gem >> >>> -rw-r--r-- 1 root root 1027 2008-04-09 03:20 rubywmq.binary.gemspec >>> -rw-r--r-- 1 root root 761 2008-04-09 03:20 rubywmq.gemspec >>> drwxr-xr-x 6 root root 4096 2008-04-09 03:20 .svn >>> drwxr-xr-x 3 root root 4096 2008-04-09 03:20 tests >>> >>> and installed it with 'gem install rubywmq-0.3.0.gem' and it was installed >>> >> like expected. >> >>> ruby get_a.rb >>> get_a.rb:23:in `connect': WMQ::QueueManager#connect(). Failed to load MQ >>> >> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF >> class: ELFCLASS32 (WMQ::WMQException) >> >>> from get_a.rb:23 >>> >>> >>> Did I do something wrong? >>> >>> >>> >>> bye >>> Henry >>> >>> >>> Reid Morrison wrote: >>> >>> >>> >>>> Hi Henry, >>>> >>>> >>>> Several fixes were applied to trunk to address the 64 Bit Linux >>>> >> distribution. >> >>>> If possible, can you try building from trunk. If it works successfully, >>>> >> I will put out a new gem with the latest updates. >> >>>> To checkout the latest code: >>>> >>>> svn checkout svn://rubyforge.org/var/svn/rubywmq/trunk >>>> >>>> >>>> Let me know if you would prefer a private email with a zip file >>>> >> containing the sources or updated gem. >> >>>> Regards >>>> >>>> Reid >>>> >>>> >>>> *From:* rubywmq-misc-bounces at rubyforge.org >>>> >> [mailto:rubywmq-misc-bounces at rubyforge.org] *On Behalf Of *linux linux >> >>>> *Sent:* Tuesday, April 08, 2008 2:18 PM >>>> *To:* rubywmq-misc at rubyforge.org >>>> *Subject:* Re: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit >>>> >> MQSeries >> >>>> OK - I changed in wmq_mq_load.c for linux: >>>> #define MQ_LIBRARY_SERVER "libmqm_r.so" >>>> #define MQ_LIBRARY_CLIENT "lib/libmqic_r.so" >>>> >>>> to >>>> >>>> #define MQ_LIBRARY_SERVER "/op/mqm/lib/libmqm_r.so" >>>> #define MQ_LIBRARY_CLIENT "/opt/mqm/lib/libmqic_r.so" >>>> >>>> and re-compiled. >>>> >>>> But now this: >>>> >>>> 1) Error: >>>> test_1(TestTest): >>>> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ >>>> >> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF >> class: ELFCLASS32 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> 2) Error: >>>> test_1(TestTest): >>>> NoMethodError: undefined method `close' for nil:NilClass >>>> test.rb:33:in `teardown' >>>> >>>> 3) Error: >>>> test_cics(TestTest): >>>> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ >>>> >> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF >> class: ELFCLASS32 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> 4) Error: >>>> test_cics(TestTest): >>>> NoMethodError: undefined method `close' for nil:NilClass >>>> test.rb:33:in `teardown' >>>> >>>> 5) Error: >>>> test_dlh(TestTest): >>>> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ >>>> >> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF >> class: ELFCLASS32 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> 6) Error: >>>> test_dlh(TestTest): >>>> NoMethodError: undefined method `close' for nil:NilClass >>>> test.rb:33:in `teardown' >>>> >>>> 7) Error: >>>> test_dynamic_buffer(TestTest): >>>> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ >>>> >> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF >> class: ELFCLASS32 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> >>>> end so on. >>>> >>>> >>>> >>>> bye >>>> Henry >>>> ----- original message -------- >>>> >>>> *Subject:* [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries >>>> *Sent:* Tue, 08 Apr 2008 >>>> *From:* linux linux >>>> >>>> Hi al,, >>>> >>>> I would really appreciate any kind of help to get this run: >>>> uname -a >>>> 2.6.20.16 #1 SMP Wed Aug 22 12:05:00 CEST 2007 x86_64 x86_64 x86_64 >>>> >> GNU/Linux >> >>>> ruby test.rb >>>> Loaded suite test >>>> Started >>>> ****** setup: start ****** >>>> E****** teardown: start ****** >>>> E****** setup: start ****** >>>> E****** teardown: start ****** >>>> E****** setup: start ****** >>>> E****** teardown: start ****** >>>> E****** setup: start ****** >>>> E****** teardown: start ****** >>>> E****** setup: start ****** >>>> E****** teardown: start ****** >>>> E****** setup: start ****** >>>> E****** teardown: start ****** >>>> E****** setup: start ****** >>>> E****** teardown: start ****** >>>> E****** setup: start ****** >>>> E****** teardown: start ****** >>>> E****** setup: start ****** >>>> E****** teardown: start ****** >>>> E****** setup: start ****** >>>> E****** teardown: start ****** >>>> E****** setup: start ****** >>>> E****** teardown: start ****** >>>> E****** setup: start ****** >>>> E****** teardown: start ****** >>>> E****** setup: start ****** >>>> E****** teardown: start ****** >>>> E****** setup: start ****** >>>> E****** teardown: start ****** >>>> E****** setup: start ****** >>>> E****** teardown: start ****** >>>> E****** setup: start ****** >>>> E****** teardown: start ****** >>>> E >>>> Finished in 0.003259 seconds. >>>> >>>> 1) Error: >>>> test_1(TestTest): >>>> WMQ::WMQException: 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 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> 2) Error: >>>> test_1(TestTest): >>>> NoMethodError: undefined method `close' for nil:NilClass >>>> test.rb:33:in `teardown' >>>> >>>> 3) Error: >>>> test_cics(TestTest): >>>> WMQ::WMQException: 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 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> 4) Error: >>>> test_cics(TestTest): >>>> NoMethodError: undefined method `close' for nil:NilClass >>>> test.rb:33:in `teardown' >>>> >>>> 5) Error: >>>> test_dlh(TestTest): >>>> WMQ::WMQException: 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 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> 6) Error: >>>> test_dlh(TestTest): >>>> NoMethodError: undefined method `close' for nil:NilClass >>>> test.rb:33:in `teardown' >>>> >>>> 7) Error: >>>> test_dynamic_buffer(TestTest): >>>> WMQ::WMQException: 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 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> 8) Error: >>>> test_dynamic_buffer(TestTest): >>>> NoMethodError: undefined method `close' for nil:NilClass >>>> test.rb:33:in `teardown' >>>> >>>> 9) Error: >>>> test_exceptions(TestTest): >>>> WMQ::WMQException: 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 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> 10) Error: >>>> test_exceptions(TestTest): >>>> NoMethodError: undefined method `close' for nil:NilClass >>>> test.rb:33:in `teardown' >>>> >>>> 11) Error: >>>> test_execute(TestTest): >>>> WMQ::WMQException: 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 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> 12) Error: >>>> test_execute(TestTest): >>>> NoMethodError: undefined method `close' for nil:NilClass >>>> test.rb:33:in `teardown' >>>> >>>> 13) Error: >>>> test_ims(TestTest): >>>> WMQ::WMQException: 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 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> 14) Error: >>>> test_ims(TestTest): >>>> NoMethodError: undefined method `close' for nil:NilClass >>>> test.rb:33:in `teardown' >>>> >>>> 15) Error: >>>> test_mqsc(TestTest): >>>> WMQ::WMQException: 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 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> 16) Error: >>>> test_mqsc(TestTest): >>>> NoMethodError: undefined method `close' for nil:NilClass >>>> test.rb:33:in `teardown' >>>> >>>> 17) Error: >>>> test_multiple_headers(TestTest): >>>> WMQ::WMQException: 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 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> 18) Error: >>>> test_multiple_headers(TestTest): >>>> NoMethodError: undefined method `close' for nil:NilClass >>>> test.rb:33:in `teardown' >>>> >>>> 19) Error: >>>> test_put1(TestTest): >>>> WMQ::WMQException: 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 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> 20) Error: >>>> test_put1(TestTest): >>>> NoMethodError: undefined method `close' for nil:NilClass >>>> test.rb:33:in `teardown' >>>> >>>> 21) Error: >>>> test_q_name_hash(TestTest): >>>> WMQ::WMQException: 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 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> 22) Error: >>>> test_q_name_hash(TestTest): >>>> NoMethodError: undefined method `close' for nil:NilClass >>>> test.rb:33:in `teardown' >>>> >>>> 23) Error: >>>> test_queue_manager(TestTest): >>>> WMQ::WMQException: 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 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> 24) Error: >>>> test_queue_manager(TestTest): >>>> NoMethodError: undefined method `close' for nil:NilClass >>>> test.rb:33:in `teardown' >>>> >>>> 25) Error: >>>> test_rf_header(TestTest): >>>> WMQ::WMQException: 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 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> 26) Error: >>>> test_rf_header(TestTest): >>>> NoMethodError: undefined method `close' for nil:NilClass >>>> test.rb:33:in `teardown' >>>> >>>> 27) Error: >>>> test_rf_header_2(TestTest): >>>> WMQ::WMQException: 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 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> 28) Error: >>>> test_rf_header_2(TestTest): >>>> NoMethodError: undefined method `close' for nil:NilClass >>>> test.rb:33:in `teardown' >>>> >>>> 29) Error: >>>> test_transmission_header(TestTest): >>>> WMQ::WMQException: 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 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> 30) Error: >>>> test_transmission_header(TestTest): >>>> NoMethodError: undefined method `close' for nil:NilClass >>>> test.rb:33:in `teardown' >>>> >>>> 31) Error: >>>> test_xmit_multiple_headers(TestTest): >>>> WMQ::WMQException: 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 >> >>>> test.rb:12:in `connect' >>>> test.rb:12:in `setup' >>>> >>>> 32) Error: >>>> test_xmit_multiple_headers(TestTest): >>>> NoMethodError: undefined method `close' for nil:NilClass >>>> test.rb:33:in `teardown' >>>> >>>> 16 tests, 0 assertions, 0 failures, 32 errors >>>> >>>> >>>> >>>> Any suggestions? >>>> >>>> >>>> bye >>>> Henry >>>> >>>> >>>> --- original message end ---- >>>> >>>> ------------------------------------------------------------------------ >>>> >>>> _______________________________________________ >>>> RubyWMQ-Misc mailing list >>>> RubyWMQ-Misc at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/rubywmq-misc >>>> >>>> >>>> >>> _______________________________________________ >>> RubyWMQ-Misc mailing list >>> RubyWMQ-Misc at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/rubywmq-misc >>> >>> >>> >> From rubywmq at gmail.com Fri Apr 11 10:43:30 2008 From: rubywmq at gmail.com (Reid Morrison) Date: Fri, 11 Apr 2008 10:43:30 -0400 Subject: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries In-Reply-To: <47FD5136.6030200@piard.de> References: <200804081817.m38IHhMe009952@post.webmailer.de> <002701c899d9$3b380860$b1a81920$@com> <47FC1AF2.6040908@piard.de> <47FC1C7A.5020002@piard.de> <47FD5136.6030200@piard.de> Message-ID: Hi Henry, I was able to recreate the problem. The issue is that the Ruby interpreter and RubyWMQ are compiled as 64 bit applications and are trying to use the 32 bit versions of the MQ libraries. This can be caused by one of two scenarious: 1. The MQ installation is the 32 bit version. 2. The RubyWMQ runtime environment is pulling in the 32 bit libmqm_r.so libraries. Scenario 2 is the most likely. Try the following command prior to running the ruby program: export LD_LIBRARY_PATH=/opt/mqm/lib64 To check for scenario 1 , run the following command: rpm -qa | grep MQSeries On the test server, the following output is expected for a 64bit system: MQSeriesJava-6.0.0-0 MQSeriesSDK-U811635-6.0.2-3 MQSeriesServer-6.0.0-0 MQSeriesKeyMan-U811635-6.0.2-3 MQSeriesSDK-6.0.0-0 MQSeriesKeyMan-6.0.0-0 MQSeriesRuntime-U811635-6.0.2-3 MQSeriesJava-U811635-6.0.2-3 MQSeriesMan-U811635-6.0.2-3 MQSeriesClient-6.0.0-0 MQSeriesMan-6.0.0-0 MQSeriesServer-U811635-6.0.2-3 MQSeriesSamples-U811635-6.0.2-3 MQSeriesRuntime-6.0.0-0 MQSeriesSamples-6.0.0-0 MQSeriesClient-U811635-6.0.2-3 Note the U811635. On 32 bit MQ installations it is U811634 Also /opt/mqm/lib64 should exist on the system. Let me know how it goes. Regards Reid On Wed, Apr 9, 2008 at 7:28 PM, Linux wrote: > Hi Reid, > > I really appreciate your support on this one. > No problem, I can wait till tomorrow. > > Thanks! > > > > bye > Henry > > Reid Morrison wrote: > > > Hi Henry, > > > > You did everything correctly. > > > > I have requested access to a 64Bit RedHat box so that I can see what > > the issue is. Access should be granted by tomorrow morning. > > > > Let me know if this is time critical for you as I can juggle a few > > things around. > > > > Regards > > Reid > > > > > > On Tue, Apr 8, 2008 at 9:31 PM, Linux wrote: > > > > > > > Hi Reid, > > > > > > one more info which might help. > > > > > > Name : MQSeriesSDK Relocations: (not > relocatable) > > > Group : Applications/Networking Source RPM: > > > MQSeriesSDK-6.0.0-0.src.rpm > > > Summary : WebSphere MQ SDK FileSet > > > IBM WebSphere MQ for Linux for Intel > > > Name : MQSeriesClient Relocations: (not > relocatable) > > > Group : Applications/Networking Source RPM: > > > MQSeriesClient-6.0.0-0.src.rpm > > > Summary : WebSphere MQ Client FileSet > > > IBM WebSphere MQ for Linux for Intel > > > Name : MQSeriesServer Relocations: (not > relocatable) > > > Group : Applications/Networking Source RPM: > > > MQSeriesServer-6.0.0-0.src.rpm > > > Summary : WebSphere MQ Server FileSet > > > IBM WebSphere MQ for Linux for Intel > > > Name : MQSeriesRuntime-U811634 Relocations: (not > relocatable) > > > Group : Applications/Networking Source RPM: > > > MQSeriesRuntime-U811634-6.0.2-3.src.rpm > > > Summary : WebSphere MQ Runtime FileSet (Maintenance Pack U811634) > > > IBM WebSphere MQ for Linux for Intel, v6.0 > > > Name : MQSeriesSDK-U811634 Relocations: (not > relocatable) > > > Group : Applications/Networking Source RPM: > > > MQSeriesSDK-U811634-6.0.2-3.src.rpm > > > Summary : WebSphere MQ SDK FileSet (Maintenance Pack U811634) > > > IBM WebSphere MQ for Linux for Intel, v6.0 > > > Name : MQSeriesRuntime Relocations: (not > relocatable) > > > Group : Applications/Networking Source RPM: > > > MQSeriesRuntime-6.0.0-0.src.rpm > > > Summary : WebSphere MQ Runtime FileSet > > > IBM WebSphere MQ for Linux for Intel > > > Name : MQSeriesServer-U811634 Relocations: (not > relocatable) > > > Group : Applications/Networking Source RPM: > > > MQSeriesServer-U811634-6.0.2-3.src.rpm > > > Summary : WebSphere MQ Server FileSet (Maintenance Pack U811634) > > > IBM WebSphere MQ for Linux for Intel, v6.0 > > > > > > > > > > > > > > > bye > > > Henry > > > > > > > > > Linux wrote: > > > > > > > > > > > > > Hi Reid, > > > > > > > > thanks for your reply. > > > > > > > > I build the gem and installed it but unfortunately I get the same > errors. > > > > > > > > I built it like this: > > > > gem build rubywmq.gemspec > > > > Successfully built RubyGem > > > > Name: rubywmq > > > > Version: 0.3.0 > > > > File: rubywmq-0.3.0.gem > > > > > > > > [root at xyz trunk]# ls -la > > > > total 128 > > > > drwxr-xr-x 7 root root 4096 2008-04-09 03:21 . > > > > drwxr-xr-x 3 root root 4096 2008-04-09 03:20 .. > > > > -rw-r--r-- 1 root root 151 2008-04-09 03:20 .document > > > > drwxr-xr-x 3 root root 4096 2008-04-09 03:20 examples > > > > drwxr-xr-x 5 root root 4096 2008-04-09 03:20 ext > > > > drwxr-xr-x 3 root root 4096 2008-04-09 03:20 lib > > > > -rw-r--r-- 1 root root 584 2008-04-09 03:20 LICENSE > > > > -rw-r--r-- 1 root root 402 2008-04-09 03:20 Manifest.txt > > > > -rw-r--r-- 1 root root 389 2008-04-09 03:20 .project > > > > -rw-r--r-- 1 root root 2443 2008-04-09 03:20 README > > > > -rw-r--r-- 1 root root 59392 2008-04-09 03:21 rubywmq-0.3.0.gem > > > > -rw-r--r-- 1 root root 8153 2008-04-09 03:20 > > > > > > > > > > > rubywmq-0.3.0-x86_64-linux.gem > > > > > > > > > > -rw-r--r-- 1 root root 1027 2008-04-09 03:20 rubywmq.binary.gemspec > > > > -rw-r--r-- 1 root root 761 2008-04-09 03:20 rubywmq.gemspec > > > > drwxr-xr-x 6 root root 4096 2008-04-09 03:20 .svn > > > > drwxr-xr-x 3 root root 4096 2008-04-09 03:20 tests > > > > > > > > and installed it with 'gem install rubywmq-0.3.0.gem' and it was > installed > > > > > > > > > > > like expected. > > > > > > > > > > ruby get_a.rb > > > > get_a.rb:23:in `connect': WMQ::QueueManager#connect(). Failed to load > MQ > > > > > > > > > > > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF > > > class: ELFCLASS32 (WMQ::WMQException) > > > > > > > > > > from get_a.rb:23 > > > > > > > > > > > > Did I do something wrong? > > > > > > > > > > > > > > > > bye > > > > Henry > > > > > > > > > > > > Reid Morrison wrote: > > > > > > > > > > > > > > > > > > > > > Hi Henry, > > > > > > > > > > > > > > > Several fixes were applied to trunk to address the 64 Bit Linux > > > > > > > > > > > > > > > > > distribution. > > > > > > > > > > > > > > > If possible, can you try building from trunk. If it works > successfully, > > > > > > > > > > > > > > > > > I will put out a new gem with the latest updates. > > > > > > > > > > > > > > > To checkout the latest code: > > > > > > > > > > svn checkout svn://rubyforge.org/var/svn/rubywmq/trunk > > > > > > > > > > > > > > > Let me know if you would prefer a private email with a zip file > > > > > > > > > > > > > > > > > containing the sources or updated gem. > > > > > > > > > > > > > > > Regards > > > > > > > > > > Reid > > > > > > > > > > > > > > > *From:* rubywmq-misc-bounces at rubyforge.org > > > > > > > > > > > > > > > > > [mailto:rubywmq-misc-bounces at rubyforge.org] *On Behalf Of *linux linux > > > > > > > > > > > > > > > *Sent:* Tuesday, April 08, 2008 2:18 PM > > > > > *To:* rubywmq-misc at rubyforge.org > > > > > *Subject:* Re: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit > > > > > > > > > > > > > > > > > MQSeries > > > > > > > > > > > > > > > OK - I changed in wmq_mq_load.c for linux: > > > > > #define MQ_LIBRARY_SERVER "libmqm_r.so" > > > > > #define MQ_LIBRARY_CLIENT "lib/libmqic_r.so" > > > > > > > > > > to > > > > > > > > > > #define MQ_LIBRARY_SERVER "/op/mqm/lib/libmqm_r.so" > > > > > #define MQ_LIBRARY_CLIENT "/opt/mqm/lib/libmqic_r.so" > > > > > > > > > > and re-compiled. > > > > > > > > > > But now this: > > > > > > > > > > 1) Error: > > > > > test_1(TestTest): > > > > > WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ > > > > > > > > > > > > > > > > > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF > > > class: ELFCLASS32 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > 2) Error: > > > > > test_1(TestTest): > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > test.rb:33:in `teardown' > > > > > > > > > > 3) Error: > > > > > test_cics(TestTest): > > > > > WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ > > > > > > > > > > > > > > > > > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF > > > class: ELFCLASS32 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > 4) Error: > > > > > test_cics(TestTest): > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > test.rb:33:in `teardown' > > > > > > > > > > 5) Error: > > > > > test_dlh(TestTest): > > > > > WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ > > > > > > > > > > > > > > > > > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF > > > class: ELFCLASS32 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > 6) Error: > > > > > test_dlh(TestTest): > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > test.rb:33:in `teardown' > > > > > > > > > > 7) Error: > > > > > test_dynamic_buffer(TestTest): > > > > > WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ > > > > > > > > > > > > > > > > > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF > > > class: ELFCLASS32 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > > end so on. > > > > > > > > > > > > > > > > > > > > bye > > > > > Henry > > > > > ----- original message -------- > > > > > > > > > > *Subject:* [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit > MQSeries > > > > > *Sent:* Tue, 08 Apr 2008 > > > > > *From:* linux linux > > > > > > > > > > Hi al,, > > > > > > > > > > I would really appreciate any kind of help to get this run: > > > > > uname -a > > > > > 2.6.20.16 #1 SMP Wed Aug 22 12:05:00 CEST 2007 x86_64 x86_64 x86_64 > > > > > > > > > > > > > > > > > GNU/Linux > > > > > > > > > > > > > > > ruby test.rb > > > > > Loaded suite test > > > > > Started > > > > > ****** setup: start ****** > > > > > E****** teardown: start ****** > > > > > E****** setup: start ****** > > > > > E****** teardown: start ****** > > > > > E****** setup: start ****** > > > > > E****** teardown: start ****** > > > > > E****** setup: start ****** > > > > > E****** teardown: start ****** > > > > > E****** setup: start ****** > > > > > E****** teardown: start ****** > > > > > E****** setup: start ****** > > > > > E****** teardown: start ****** > > > > > E****** setup: start ****** > > > > > E****** teardown: start ****** > > > > > E****** setup: start ****** > > > > > E****** teardown: start ****** > > > > > E****** setup: start ****** > > > > > E****** teardown: start ****** > > > > > E****** setup: start ****** > > > > > E****** teardown: start ****** > > > > > E****** setup: start ****** > > > > > E****** teardown: start ****** > > > > > E****** setup: start ****** > > > > > E****** teardown: start ****** > > > > > E****** setup: start ****** > > > > > E****** teardown: start ****** > > > > > E****** setup: start ****** > > > > > E****** teardown: start ****** > > > > > E****** setup: start ****** > > > > > E****** teardown: start ****** > > > > > E****** setup: start ****** > > > > > E****** teardown: start ****** > > > > > E > > > > > Finished in 0.003259 seconds. > > > > > > > > > > 1) Error: > > > > > test_1(TestTest): > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > 2) Error: > > > > > test_1(TestTest): > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > test.rb:33:in `teardown' > > > > > > > > > > 3) Error: > > > > > test_cics(TestTest): > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > 4) Error: > > > > > test_cics(TestTest): > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > test.rb:33:in `teardown' > > > > > > > > > > 5) Error: > > > > > test_dlh(TestTest): > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > 6) Error: > > > > > test_dlh(TestTest): > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > test.rb:33:in `teardown' > > > > > > > > > > 7) Error: > > > > > test_dynamic_buffer(TestTest): > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > 8) Error: > > > > > test_dynamic_buffer(TestTest): > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > test.rb:33:in `teardown' > > > > > > > > > > 9) Error: > > > > > test_exceptions(TestTest): > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > 10) Error: > > > > > test_exceptions(TestTest): > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > test.rb:33:in `teardown' > > > > > > > > > > 11) Error: > > > > > test_execute(TestTest): > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > 12) Error: > > > > > test_execute(TestTest): > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > test.rb:33:in `teardown' > > > > > > > > > > 13) Error: > > > > > test_ims(TestTest): > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > 14) Error: > > > > > test_ims(TestTest): > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > test.rb:33:in `teardown' > > > > > > > > > > 15) Error: > > > > > test_mqsc(TestTest): > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > 16) Error: > > > > > test_mqsc(TestTest): > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > test.rb:33:in `teardown' > > > > > > > > > > 17) Error: > > > > > test_multiple_headers(TestTest): > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > 18) Error: > > > > > test_multiple_headers(TestTest): > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > test.rb:33:in `teardown' > > > > > > > > > > 19) Error: > > > > > test_put1(TestTest): > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > 20) Error: > > > > > test_put1(TestTest): > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > test.rb:33:in `teardown' > > > > > > > > > > 21) Error: > > > > > test_q_name_hash(TestTest): > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > 22) Error: > > > > > test_q_name_hash(TestTest): > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > test.rb:33:in `teardown' > > > > > > > > > > 23) Error: > > > > > test_queue_manager(TestTest): > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > 24) Error: > > > > > test_queue_manager(TestTest): > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > test.rb:33:in `teardown' > > > > > > > > > > 25) Error: > > > > > test_rf_header(TestTest): > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > 26) Error: > > > > > test_rf_header(TestTest): > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > test.rb:33:in `teardown' > > > > > > > > > > 27) Error: > > > > > test_rf_header_2(TestTest): > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > 28) Error: > > > > > test_rf_header_2(TestTest): > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > test.rb:33:in `teardown' > > > > > > > > > > 29) Error: > > > > > test_transmission_header(TestTest): > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > 30) Error: > > > > > test_transmission_header(TestTest): > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > test.rb:33:in `teardown' > > > > > > > > > > 31) Error: > > > > > test_xmit_multiple_headers(TestTest): > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > test.rb:12:in `setup' > > > > > > > > > > 32) Error: > > > > > test_xmit_multiple_headers(TestTest): > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > test.rb:33:in `teardown' > > > > > > > > > > 16 tests, 0 assertions, 0 failures, 32 errors > > > > > > > > > > > > > > > > > > > > Any suggestions? > > > > > > > > > > > > > > > bye > > > > > Henry > > > > > > > > > > > > > > > --- original message end ---- > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > _______________________________________________ > > > > > RubyWMQ-Misc mailing list > > > > > RubyWMQ-Misc at rubyforge.org > > > > > http://rubyforge.org/mailman/listinfo/rubywmq-misc > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > RubyWMQ-Misc mailing list > > > > RubyWMQ-Misc at rubyforge.org > > > > http://rubyforge.org/mailman/listinfo/rubywmq-misc > > > > > > > > > > > > > > > > > > > > > > > > > > From linux at piard.de Fri Apr 11 11:07:44 2008 From: linux at piard.de (Linux) Date: Fri, 11 Apr 2008 11:07:44 -0400 Subject: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries In-Reply-To: References: <200804081817.m38IHhMe009952@post.webmailer.de> <002701c899d9$3b380860$b1a81920$@com> <47FC1AF2.6040908@piard.de> <47FC1C7A.5020002@piard.de> <47FD5136.6030200@piard.de> Message-ID: <47FF7EC0.30300@piard.de> Hi Reid, I don't have the foler /opt/mqm/lib64 on my server setup. mqm]# ls -la total 44 drwxr-xr-x 11 mqm mqm 4096 2005-05-24 23:43 . drwxr-xr-x 3 mqm mqm 4096 2008-03-07 21:55 .. drwxr-xr-x 2 mqm mqm 4096 2008-04-08 18:24 bin dr-xr-xr-x 4 mqm mqm 4096 2008-03-07 21:56 inc drwxr-xr-x 3 mqm mqm 4096 2005-05-24 23:43 java drwxr-xr-x 7 mqm mqm 4096 2008-04-08 18:24 lib dr-xr-xr-x 2 mqm mqm 4096 2008-03-07 21:56 licenses drwxr-xr-x 3 root root 4096 2008-03-07 21:56 maintenance dr-xr-xr-x 14 mqm mqm 4096 2008-03-07 21:55 READMES dr-xr-xr-x 3 mqm mqm 4096 2008-03-07 21:56 samp dr-xr-xr-x 2 mqm mqm 4096 2008-03-07 21:56 tivoli bye Henry Reid Morrison wrote: > Hi Henry, > > I was able to recreate the problem. The issue is that the Ruby > interpreter and RubyWMQ are compiled as 64 bit applications and are > trying to use the 32 bit versions of the MQ libraries. > > This can be caused by one of two scenarious: > 1. The MQ installation is the 32 bit version. > 2. The RubyWMQ runtime environment is pulling in the 32 bit > libmqm_r.so libraries. > > Scenario 2 is the most likely. Try the following command prior to > running the ruby program: > export LD_LIBRARY_PATH=/opt/mqm/lib64 > > To check for scenario 1 , run the following command: > rpm -qa | grep MQSeries > > On the test server, the following output is expected for a 64bit system: > MQSeriesJava-6.0.0-0 > MQSeriesSDK-U811635-6.0.2-3 > MQSeriesServer-6.0.0-0 > MQSeriesKeyMan-U811635-6.0.2-3 > MQSeriesSDK-6.0.0-0 > MQSeriesKeyMan-6.0.0-0 > MQSeriesRuntime-U811635-6.0.2-3 > MQSeriesJava-U811635-6.0.2-3 > MQSeriesMan-U811635-6.0.2-3 > MQSeriesClient-6.0.0-0 > MQSeriesMan-6.0.0-0 > MQSeriesServer-U811635-6.0.2-3 > MQSeriesSamples-U811635-6.0.2-3 > MQSeriesRuntime-6.0.0-0 > MQSeriesSamples-6.0.0-0 > MQSeriesClient-U811635-6.0.2-3 > > Note the U811635. On 32 bit MQ installations it is U811634 > > Also /opt/mqm/lib64 should exist on the system. > > Let me know how it goes. > > Regards > Reid > > On Wed, Apr 9, 2008 at 7:28 PM, Linux wrote: > >> Hi Reid, >> >> I really appreciate your support on this one. >> No problem, I can wait till tomorrow. >> >> Thanks! >> >> >> >> bye >> Henry >> >> Reid Morrison wrote: >> >> >>> Hi Henry, >>> >>> You did everything correctly. >>> >>> I have requested access to a 64Bit RedHat box so that I can see what >>> the issue is. Access should be granted by tomorrow morning. >>> >>> Let me know if this is time critical for you as I can juggle a few >>> things around. >>> >>> Regards >>> Reid >>> >>> >>> On Tue, Apr 8, 2008 at 9:31 PM, Linux wrote: >>> >>> >>> >>>> Hi Reid, >>>> >>>> one more info which might help. >>>> >>>> Name : MQSeriesSDK Relocations: (not >>>> >> relocatable) >> >>>> Group : Applications/Networking Source RPM: >>>> MQSeriesSDK-6.0.0-0.src.rpm >>>> Summary : WebSphere MQ SDK FileSet >>>> IBM WebSphere MQ for Linux for Intel >>>> Name : MQSeriesClient Relocations: (not >>>> >> relocatable) >> >>>> Group : Applications/Networking Source RPM: >>>> MQSeriesClient-6.0.0-0.src.rpm >>>> Summary : WebSphere MQ Client FileSet >>>> IBM WebSphere MQ for Linux for Intel >>>> Name : MQSeriesServer Relocations: (not >>>> >> relocatable) >> >>>> Group : Applications/Networking Source RPM: >>>> MQSeriesServer-6.0.0-0.src.rpm >>>> Summary : WebSphere MQ Server FileSet >>>> IBM WebSphere MQ for Linux for Intel >>>> Name : MQSeriesRuntime-U811634 Relocations: (not >>>> >> relocatable) >> >>>> Group : Applications/Networking Source RPM: >>>> MQSeriesRuntime-U811634-6.0.2-3.src.rpm >>>> Summary : WebSphere MQ Runtime FileSet (Maintenance Pack U811634) >>>> IBM WebSphere MQ for Linux for Intel, v6.0 >>>> Name : MQSeriesSDK-U811634 Relocations: (not >>>> >> relocatable) >> >>>> Group : Applications/Networking Source RPM: >>>> MQSeriesSDK-U811634-6.0.2-3.src.rpm >>>> Summary : WebSphere MQ SDK FileSet (Maintenance Pack U811634) >>>> IBM WebSphere MQ for Linux for Intel, v6.0 >>>> Name : MQSeriesRuntime Relocations: (not >>>> >> relocatable) >> >>>> Group : Applications/Networking Source RPM: >>>> MQSeriesRuntime-6.0.0-0.src.rpm >>>> Summary : WebSphere MQ Runtime FileSet >>>> IBM WebSphere MQ for Linux for Intel >>>> Name : MQSeriesServer-U811634 Relocations: (not >>>> >> relocatable) >> >>>> Group : Applications/Networking Source RPM: >>>> MQSeriesServer-U811634-6.0.2-3.src.rpm >>>> Summary : WebSphere MQ Server FileSet (Maintenance Pack U811634) >>>> IBM WebSphere MQ for Linux for Intel, v6.0 >>>> >>>> >>>> >>>> >>>> bye >>>> Henry >>>> >>>> >>>> Linux wrote: >>>> >>>> >>>> >>>> >>>>> Hi Reid, >>>>> >>>>> thanks for your reply. >>>>> >>>>> I build the gem and installed it but unfortunately I get the same >>>>> >> errors. >> >>>>> I built it like this: >>>>> gem build rubywmq.gemspec >>>>> Successfully built RubyGem >>>>> Name: rubywmq >>>>> Version: 0.3.0 >>>>> File: rubywmq-0.3.0.gem >>>>> >>>>> [root at xyz trunk]# ls -la >>>>> total 128 >>>>> drwxr-xr-x 7 root root 4096 2008-04-09 03:21 . >>>>> drwxr-xr-x 3 root root 4096 2008-04-09 03:20 .. >>>>> -rw-r--r-- 1 root root 151 2008-04-09 03:20 .document >>>>> drwxr-xr-x 3 root root 4096 2008-04-09 03:20 examples >>>>> drwxr-xr-x 5 root root 4096 2008-04-09 03:20 ext >>>>> drwxr-xr-x 3 root root 4096 2008-04-09 03:20 lib >>>>> -rw-r--r-- 1 root root 584 2008-04-09 03:20 LICENSE >>>>> -rw-r--r-- 1 root root 402 2008-04-09 03:20 Manifest.txt >>>>> -rw-r--r-- 1 root root 389 2008-04-09 03:20 .project >>>>> -rw-r--r-- 1 root root 2443 2008-04-09 03:20 README >>>>> -rw-r--r-- 1 root root 59392 2008-04-09 03:21 rubywmq-0.3.0.gem >>>>> -rw-r--r-- 1 root root 8153 2008-04-09 03:20 >>>>> >>>>> >>>>> >>>> rubywmq-0.3.0-x86_64-linux.gem >>>> >>>> >>>> >>>>> -rw-r--r-- 1 root root 1027 2008-04-09 03:20 rubywmq.binary.gemspec >>>>> -rw-r--r-- 1 root root 761 2008-04-09 03:20 rubywmq.gemspec >>>>> drwxr-xr-x 6 root root 4096 2008-04-09 03:20 .svn >>>>> drwxr-xr-x 3 root root 4096 2008-04-09 03:20 tests >>>>> >>>>> and installed it with 'gem install rubywmq-0.3.0.gem' and it was >>>>> >> installed >> >>>>> >>>> like expected. >>>> >>>> >>>> >>>>> ruby get_a.rb >>>>> get_a.rb:23:in `connect': WMQ::QueueManager#connect(). Failed to load >>>>> >> MQ >> >>>>> >>>> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF >>>> class: ELFCLASS32 (WMQ::WMQException) >>>> >>>> >>>> >>>>> from get_a.rb:23 >>>>> >>>>> >>>>> Did I do something wrong? >>>>> >>>>> >>>>> >>>>> bye >>>>> Henry >>>>> >>>>> >>>>> Reid Morrison wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> Hi Henry, >>>>>> >>>>>> >>>>>> Several fixes were applied to trunk to address the 64 Bit Linux >>>>>> >>>>>> >>>>>> >>>> distribution. >>>> >>>> >>>> >>>>>> If possible, can you try building from trunk. If it works >>>>>> >> successfully, >> >>>>>> >>>> I will put out a new gem with the latest updates. >>>> >>>> >>>> >>>>>> To checkout the latest code: >>>>>> >>>>>> svn checkout svn://rubyforge.org/var/svn/rubywmq/trunk >>>>>> >>>>>> >>>>>> Let me know if you would prefer a private email with a zip file >>>>>> >>>>>> >>>>>> >>>> containing the sources or updated gem. >>>> >>>> >>>> >>>>>> Regards >>>>>> >>>>>> Reid >>>>>> >>>>>> >>>>>> *From:* rubywmq-misc-bounces at rubyforge.org >>>>>> >>>>>> >>>>>> >>>> [mailto:rubywmq-misc-bounces at rubyforge.org] *On Behalf Of *linux linux >>>> >>>> >>>> >>>>>> *Sent:* Tuesday, April 08, 2008 2:18 PM >>>>>> *To:* rubywmq-misc at rubyforge.org >>>>>> *Subject:* Re: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit >>>>>> >>>>>> >>>>>> >>>> MQSeries >>>> >>>> >>>> >>>>>> OK - I changed in wmq_mq_load.c for linux: >>>>>> #define MQ_LIBRARY_SERVER "libmqm_r.so" >>>>>> #define MQ_LIBRARY_CLIENT "lib/libmqic_r.so" >>>>>> >>>>>> to >>>>>> >>>>>> #define MQ_LIBRARY_SERVER "/op/mqm/lib/libmqm_r.so" >>>>>> #define MQ_LIBRARY_CLIENT "/opt/mqm/lib/libmqic_r.so" >>>>>> >>>>>> and re-compiled. >>>>>> >>>>>> But now this: >>>>>> >>>>>> 1) Error: >>>>>> test_1(TestTest): >>>>>> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ >>>>>> >>>>>> >>>>>> >>>> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF >>>> class: ELFCLASS32 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 2) Error: >>>>>> test_1(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 3) Error: >>>>>> test_cics(TestTest): >>>>>> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ >>>>>> >>>>>> >>>>>> >>>> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF >>>> class: ELFCLASS32 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 4) Error: >>>>>> test_cics(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 5) Error: >>>>>> test_dlh(TestTest): >>>>>> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ >>>>>> >>>>>> >>>>>> >>>> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF >>>> class: ELFCLASS32 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 6) Error: >>>>>> test_dlh(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 7) Error: >>>>>> test_dynamic_buffer(TestTest): >>>>>> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ >>>>>> >>>>>> >>>>>> >>>> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF >>>> class: ELFCLASS32 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> >>>>>> end so on. >>>>>> >>>>>> >>>>>> >>>>>> bye >>>>>> Henry >>>>>> ----- original message -------- >>>>>> >>>>>> *Subject:* [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit >>>>>> >> MQSeries >> >>>>>> *Sent:* Tue, 08 Apr 2008 >>>>>> *From:* linux linux >>>>>> >>>>>> Hi al,, >>>>>> >>>>>> I would really appreciate any kind of help to get this run: >>>>>> uname -a >>>>>> 2.6.20.16 #1 SMP Wed Aug 22 12:05:00 CEST 2007 x86_64 x86_64 x86_64 >>>>>> >>>>>> >>>>>> >>>> GNU/Linux >>>> >>>> >>>> >>>>>> ruby test.rb >>>>>> Loaded suite test >>>>>> Started >>>>>> ****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E >>>>>> Finished in 0.003259 seconds. >>>>>> >>>>>> 1) Error: >>>>>> test_1(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 2) Error: >>>>>> test_1(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 3) Error: >>>>>> test_cics(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 4) Error: >>>>>> test_cics(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 5) Error: >>>>>> test_dlh(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 6) Error: >>>>>> test_dlh(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 7) Error: >>>>>> test_dynamic_buffer(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 8) Error: >>>>>> test_dynamic_buffer(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 9) Error: >>>>>> test_exceptions(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 10) Error: >>>>>> test_exceptions(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 11) Error: >>>>>> test_execute(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 12) Error: >>>>>> test_execute(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 13) Error: >>>>>> test_ims(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 14) Error: >>>>>> test_ims(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 15) Error: >>>>>> test_mqsc(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 16) Error: >>>>>> test_mqsc(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 17) Error: >>>>>> test_multiple_headers(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 18) Error: >>>>>> test_multiple_headers(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 19) Error: >>>>>> test_put1(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 20) Error: >>>>>> test_put1(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 21) Error: >>>>>> test_q_name_hash(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 22) Error: >>>>>> test_q_name_hash(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 23) Error: >>>>>> test_queue_manager(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 24) Error: >>>>>> test_queue_manager(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 25) Error: >>>>>> test_rf_header(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 26) Error: >>>>>> test_rf_header(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 27) Error: >>>>>> test_rf_header_2(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 28) Error: >>>>>> test_rf_header_2(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 29) Error: >>>>>> test_transmission_header(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 30) Error: >>>>>> test_transmission_header(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 31) Error: >>>>>> test_xmit_multiple_headers(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 32) Error: >>>>>> test_xmit_multiple_headers(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 16 tests, 0 assertions, 0 failures, 32 errors >>>>>> >>>>>> >>>>>> >>>>>> Any suggestions? >>>>>> >>>>>> >>>>>> bye >>>>>> Henry >>>>>> >>>>>> >>>>>> --- original message end ---- >>>>>> >>>>>> >>>>>> >> ------------------------------------------------------------------------ >> >>>>>> _______________________________________________ >>>>>> RubyWMQ-Misc mailing list >>>>>> RubyWMQ-Misc at rubyforge.org >>>>>> http://rubyforge.org/mailman/listinfo/rubywmq-misc >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> RubyWMQ-Misc mailing list >>>>> RubyWMQ-Misc at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/rubywmq-misc >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >> From B.Candler at pobox.com Fri Apr 11 11:26:58 2008 From: B.Candler at pobox.com (Brian Candler) Date: Fri, 11 Apr 2008 16:26:58 +0100 Subject: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries In-Reply-To: <47FF7EC0.30300@piard.de> References: <200804081817.m38IHhMe009952@post.webmailer.de> <002701c899d9$3b380860$b1a81920$@com> <47FC1AF2.6040908@piard.de> <47FC1C7A.5020002@piard.de> <47FD5136.6030200@piard.de> <47FF7EC0.30300@piard.de> Message-ID: <20080411152658.GA25742@uk.tiscali.com> On Fri, Apr 11, 2008 at 11:07:44AM -0400, Linux wrote: > > On the test server, the following output is expected for a 64bit system: > > MQSeriesJava-6.0.0-0 > > MQSeriesSDK-U811635-6.0.2-3 > > MQSeriesServer-6.0.0-0 > > MQSeriesKeyMan-U811635-6.0.2-3 > > MQSeriesSDK-6.0.0-0 > > MQSeriesKeyMan-6.0.0-0 > > MQSeriesRuntime-U811635-6.0.2-3 > > MQSeriesJava-U811635-6.0.2-3 > > MQSeriesMan-U811635-6.0.2-3 > > MQSeriesClient-6.0.0-0 > > MQSeriesMan-6.0.0-0 > > MQSeriesServer-U811635-6.0.2-3 > > MQSeriesSamples-U811635-6.0.2-3 > > MQSeriesRuntime-6.0.0-0 > > MQSeriesSamples-6.0.0-0 > > MQSeriesClient-U811635-6.0.2-3 > > > > Note the U811635. On 32 bit MQ installations it is U811634 Aside: I don't have any 64 bit installation, but on a 32-bit one I get: $ cat /etc/redhat-release Red Hat Enterprise Linux ES release 4 (Nahant Update 6) $ rpm -qa | grep MQSeries MQSeriesRuntime-6.0.2-1 MQSeriesSDK-6.0.2-1 MQSeriesClient-6.0.2-1 That is, I don't have any "Uxxxxxx" numbers in the package names. I did download the x86-64 client binaries too. The package contains: $ tar -tzf mqc6_linuxx86-64.tar.gz | grep rpm | sort ./gsk7bas64-7.0-4.11.x86_64.rpm ./gsk7bas-7.0-4.11.i386.rpm ./IBMJava2-142-ia32-SDK-1.4.2-9.0.i386.rpm ./IBMJava2-AMD64-142-SDK-1.4.2-9.0.x86_64.rpm ./MQSeriesClient-6.0.2-3.x86_64.rpm ./MQSeriesJava-6.0.2-3.x86_64.rpm ./MQSeriesKeyMan-6.0.2-3.x86_64.rpm ./MQSeriesMsg_de-6.0.2-3.x86_64.rpm ./MQSeriesMsg_es-6.0.2-3.x86_64.rpm ./MQSeriesMsg_fr-6.0.2-3.x86_64.rpm ./MQSeriesMsg_it-6.0.2-3.x86_64.rpm ./MQSeriesMsg_ja-6.0.2-3.x86_64.rpm ./MQSeriesMsg_ko-6.0.2-3.x86_64.rpm ./MQSeriesMsg_pt-6.0.2-3.x86_64.rpm ./MQSeriesMsg_Zh_CN-6.0.2-3.x86_64.rpm ./MQSeriesMsg_Zh_TW-6.0.2-3.x86_64.rpm ./MQSeriesRuntime-6.0.2-3.x86_64.rpm ./MQSeriesSamples-6.0.2-3.x86_64.rpm ./MQSeriesSDK-6.0.2-3.x86_64.rpm This bundle was downloaded from http://www-306.ibm.com/software/integration/wmq/clients/ (you have to sign up for a free IBM ID first, if you don't have one) Note that this website doesn't make it clear which version you're downloading - it offers two versions with the same name in the download link. These are mqc6_linuxx86.tar.gz and mqc6_linuxx86-64.tar.gz, respectively 32 and 64 bit. I should add that I build using only the client libraries. Our MQ server is on a completely different box, and in fact isn't even x86, it's Alpha. In case it's any help, the spec file I knocked together to build rubywmq (client only) is attached. It pulls code directly from Subversion. If there is a newer commit than -r18 in there then you'll need to update the spec file. At the moment, -r18 is the latest I can see. Regards, Brian. -------------- next part -------------- %define ruby_sitelib %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]') %define ruby_sitearch %(ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"]') Summary: Ruby interface into WebSphere MQ (MQSeries) Name: rubywmq Version: 0.3.0.20080320 Release: 1%{?dist} Group: Development/Libraries License: Ruby License/GPL URL: http://rubywmq.rubyforge.org BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n) Requires: ruby # The official release is a .zip rather than a .tar.gz :-( So we use # subversion, even though this has a ton of dependencies itself BuildRequires: subversion BuildRequires: ruby BuildRequires: ruby-devel BuildRequires: MQSeriesClient BuildRequires: MQSeriesSDK %description Ruby interface into WebSphere MQ (MQSeries) %prep rm -rf %{_builddir}/%{name}-%{version} svn export -r18 svn://rubyforge.org/var/svn/rubywmq/trunk %{_builddir}/%{name}-%{version} %setup -D -T %build cd ext sh build.sh %install rm -rf $RPM_BUILD_ROOT cd ext make install DESTDIR=$RPM_BUILD_ROOT cd .. cp lib/wmq.rb $RPM_BUILD_ROOT/%{ruby_sitelib}/ %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root, -) %doc examples LICENSE README %{ruby_sitelib} %{ruby_sitearch} %changelog * Thu Mar 20 2008 Brian Candler - 0.3.0/svn - First cut From linux at piard.de Fri Apr 11 15:20:44 2008 From: linux at piard.de (Linux) Date: Fri, 11 Apr 2008 15:20:44 -0400 Subject: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries In-Reply-To: References: <200804081817.m38IHhMe009952@post.webmailer.de> <002701c899d9$3b380860$b1a81920$@com> <47FC1AF2.6040908@piard.de> <47FC1C7A.5020002@piard.de> <47FD5136.6030200@piard.de> Message-ID: <47FFBA0C.3030600@piard.de> Hi Reid, I managed to get the 64 bit libs. I just extracted the /opt/mqm/lib64 folder from the MQSeriesClient-64bit.rpm (trial download on the IBM website). lib64]# ls 3.3 libimqc23gl_r.so libmqicb_r.so libmqic_r.so libmqiz_r.so 3.4 libimqc23gl.so libmqicb.so libmqic.so libmqiz.so but now there is now file with the name Library:libmqm_r.so, rc=libmqm_r.so: Any ideas? bye Henry Reid Morrison wrote: > Hi Henry, > > I was able to recreate the problem. The issue is that the Ruby > interpreter and RubyWMQ are compiled as 64 bit applications and are > trying to use the 32 bit versions of the MQ libraries. > > This can be caused by one of two scenarious: > 1. The MQ installation is the 32 bit version. > 2. The RubyWMQ runtime environment is pulling in the 32 bit > libmqm_r.so libraries. > > Scenario 2 is the most likely. Try the following command prior to > running the ruby program: > export LD_LIBRARY_PATH=/opt/mqm/lib64 > > To check for scenario 1 , run the following command: > rpm -qa | grep MQSeries > > On the test server, the following output is expected for a 64bit system: > MQSeriesJava-6.0.0-0 > MQSeriesSDK-U811635-6.0.2-3 > MQSeriesServer-6.0.0-0 > MQSeriesKeyMan-U811635-6.0.2-3 > MQSeriesSDK-6.0.0-0 > MQSeriesKeyMan-6.0.0-0 > MQSeriesRuntime-U811635-6.0.2-3 > MQSeriesJava-U811635-6.0.2-3 > MQSeriesMan-U811635-6.0.2-3 > MQSeriesClient-6.0.0-0 > MQSeriesMan-6.0.0-0 > MQSeriesServer-U811635-6.0.2-3 > MQSeriesSamples-U811635-6.0.2-3 > MQSeriesRuntime-6.0.0-0 > MQSeriesSamples-6.0.0-0 > MQSeriesClient-U811635-6.0.2-3 > > Note the U811635. On 32 bit MQ installations it is U811634 > > Also /opt/mqm/lib64 should exist on the system. > > Let me know how it goes. > > Regards > Reid > > On Wed, Apr 9, 2008 at 7:28 PM, Linux wrote: > >> Hi Reid, >> >> I really appreciate your support on this one. >> No problem, I can wait till tomorrow. >> >> Thanks! >> >> >> >> bye >> Henry >> >> Reid Morrison wrote: >> >> >>> Hi Henry, >>> >>> You did everything correctly. >>> >>> I have requested access to a 64Bit RedHat box so that I can see what >>> the issue is. Access should be granted by tomorrow morning. >>> >>> Let me know if this is time critical for you as I can juggle a few >>> things around. >>> >>> Regards >>> Reid >>> >>> >>> On Tue, Apr 8, 2008 at 9:31 PM, Linux wrote: >>> >>> >>> >>>> Hi Reid, >>>> >>>> one more info which might help. >>>> >>>> Name : MQSeriesSDK Relocations: (not >>>> >> relocatable) >> >>>> Group : Applications/Networking Source RPM: >>>> MQSeriesSDK-6.0.0-0.src.rpm >>>> Summary : WebSphere MQ SDK FileSet >>>> IBM WebSphere MQ for Linux for Intel >>>> Name : MQSeriesClient Relocations: (not >>>> >> relocatable) >> >>>> Group : Applications/Networking Source RPM: >>>> MQSeriesClient-6.0.0-0.src.rpm >>>> Summary : WebSphere MQ Client FileSet >>>> IBM WebSphere MQ for Linux for Intel >>>> Name : MQSeriesServer Relocations: (not >>>> >> relocatable) >> >>>> Group : Applications/Networking Source RPM: >>>> MQSeriesServer-6.0.0-0.src.rpm >>>> Summary : WebSphere MQ Server FileSet >>>> IBM WebSphere MQ for Linux for Intel >>>> Name : MQSeriesRuntime-U811634 Relocations: (not >>>> >> relocatable) >> >>>> Group : Applications/Networking Source RPM: >>>> MQSeriesRuntime-U811634-6.0.2-3.src.rpm >>>> Summary : WebSphere MQ Runtime FileSet (Maintenance Pack U811634) >>>> IBM WebSphere MQ for Linux for Intel, v6.0 >>>> Name : MQSeriesSDK-U811634 Relocations: (not >>>> >> relocatable) >> >>>> Group : Applications/Networking Source RPM: >>>> MQSeriesSDK-U811634-6.0.2-3.src.rpm >>>> Summary : WebSphere MQ SDK FileSet (Maintenance Pack U811634) >>>> IBM WebSphere MQ for Linux for Intel, v6.0 >>>> Name : MQSeriesRuntime Relocations: (not >>>> >> relocatable) >> >>>> Group : Applications/Networking Source RPM: >>>> MQSeriesRuntime-6.0.0-0.src.rpm >>>> Summary : WebSphere MQ Runtime FileSet >>>> IBM WebSphere MQ for Linux for Intel >>>> Name : MQSeriesServer-U811634 Relocations: (not >>>> >> relocatable) >> >>>> Group : Applications/Networking Source RPM: >>>> MQSeriesServer-U811634-6.0.2-3.src.rpm >>>> Summary : WebSphere MQ Server FileSet (Maintenance Pack U811634) >>>> IBM WebSphere MQ for Linux for Intel, v6.0 >>>> >>>> >>>> >>>> >>>> bye >>>> Henry >>>> >>>> >>>> Linux wrote: >>>> >>>> >>>> >>>> >>>>> Hi Reid, >>>>> >>>>> thanks for your reply. >>>>> >>>>> I build the gem and installed it but unfortunately I get the same >>>>> >> errors. >> >>>>> I built it like this: >>>>> gem build rubywmq.gemspec >>>>> Successfully built RubyGem >>>>> Name: rubywmq >>>>> Version: 0.3.0 >>>>> File: rubywmq-0.3.0.gem >>>>> >>>>> [root at xyz trunk]# ls -la >>>>> total 128 >>>>> drwxr-xr-x 7 root root 4096 2008-04-09 03:21 . >>>>> drwxr-xr-x 3 root root 4096 2008-04-09 03:20 .. >>>>> -rw-r--r-- 1 root root 151 2008-04-09 03:20 .document >>>>> drwxr-xr-x 3 root root 4096 2008-04-09 03:20 examples >>>>> drwxr-xr-x 5 root root 4096 2008-04-09 03:20 ext >>>>> drwxr-xr-x 3 root root 4096 2008-04-09 03:20 lib >>>>> -rw-r--r-- 1 root root 584 2008-04-09 03:20 LICENSE >>>>> -rw-r--r-- 1 root root 402 2008-04-09 03:20 Manifest.txt >>>>> -rw-r--r-- 1 root root 389 2008-04-09 03:20 .project >>>>> -rw-r--r-- 1 root root 2443 2008-04-09 03:20 README >>>>> -rw-r--r-- 1 root root 59392 2008-04-09 03:21 rubywmq-0.3.0.gem >>>>> -rw-r--r-- 1 root root 8153 2008-04-09 03:20 >>>>> >>>>> >>>>> >>>> rubywmq-0.3.0-x86_64-linux.gem >>>> >>>> >>>> >>>>> -rw-r--r-- 1 root root 1027 2008-04-09 03:20 rubywmq.binary.gemspec >>>>> -rw-r--r-- 1 root root 761 2008-04-09 03:20 rubywmq.gemspec >>>>> drwxr-xr-x 6 root root 4096 2008-04-09 03:20 .svn >>>>> drwxr-xr-x 3 root root 4096 2008-04-09 03:20 tests >>>>> >>>>> and installed it with 'gem install rubywmq-0.3.0.gem' and it was >>>>> >> installed >> >>>>> >>>> like expected. >>>> >>>> >>>> >>>>> ruby get_a.rb >>>>> get_a.rb:23:in `connect': WMQ::QueueManager#connect(). Failed to load >>>>> >> MQ >> >>>>> >>>> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF >>>> class: ELFCLASS32 (WMQ::WMQException) >>>> >>>> >>>> >>>>> from get_a.rb:23 >>>>> >>>>> >>>>> Did I do something wrong? >>>>> >>>>> >>>>> >>>>> bye >>>>> Henry >>>>> >>>>> >>>>> Reid Morrison wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> Hi Henry, >>>>>> >>>>>> >>>>>> Several fixes were applied to trunk to address the 64 Bit Linux >>>>>> >>>>>> >>>>>> >>>> distribution. >>>> >>>> >>>> >>>>>> If possible, can you try building from trunk. If it works >>>>>> >> successfully, >> >>>>>> >>>> I will put out a new gem with the latest updates. >>>> >>>> >>>> >>>>>> To checkout the latest code: >>>>>> >>>>>> svn checkout svn://rubyforge.org/var/svn/rubywmq/trunk >>>>>> >>>>>> >>>>>> Let me know if you would prefer a private email with a zip file >>>>>> >>>>>> >>>>>> >>>> containing the sources or updated gem. >>>> >>>> >>>> >>>>>> Regards >>>>>> >>>>>> Reid >>>>>> >>>>>> >>>>>> *From:* rubywmq-misc-bounces at rubyforge.org >>>>>> >>>>>> >>>>>> >>>> [mailto:rubywmq-misc-bounces at rubyforge.org] *On Behalf Of *linux linux >>>> >>>> >>>> >>>>>> *Sent:* Tuesday, April 08, 2008 2:18 PM >>>>>> *To:* rubywmq-misc at rubyforge.org >>>>>> *Subject:* Re: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit >>>>>> >>>>>> >>>>>> >>>> MQSeries >>>> >>>> >>>> >>>>>> OK - I changed in wmq_mq_load.c for linux: >>>>>> #define MQ_LIBRARY_SERVER "libmqm_r.so" >>>>>> #define MQ_LIBRARY_CLIENT "lib/libmqic_r.so" >>>>>> >>>>>> to >>>>>> >>>>>> #define MQ_LIBRARY_SERVER "/op/mqm/lib/libmqm_r.so" >>>>>> #define MQ_LIBRARY_CLIENT "/opt/mqm/lib/libmqic_r.so" >>>>>> >>>>>> and re-compiled. >>>>>> >>>>>> But now this: >>>>>> >>>>>> 1) Error: >>>>>> test_1(TestTest): >>>>>> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ >>>>>> >>>>>> >>>>>> >>>> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF >>>> class: ELFCLASS32 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 2) Error: >>>>>> test_1(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 3) Error: >>>>>> test_cics(TestTest): >>>>>> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ >>>>>> >>>>>> >>>>>> >>>> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF >>>> class: ELFCLASS32 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 4) Error: >>>>>> test_cics(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 5) Error: >>>>>> test_dlh(TestTest): >>>>>> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ >>>>>> >>>>>> >>>>>> >>>> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF >>>> class: ELFCLASS32 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 6) Error: >>>>>> test_dlh(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 7) Error: >>>>>> test_dynamic_buffer(TestTest): >>>>>> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ >>>>>> >>>>>> >>>>>> >>>> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF >>>> class: ELFCLASS32 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> >>>>>> end so on. >>>>>> >>>>>> >>>>>> >>>>>> bye >>>>>> Henry >>>>>> ----- original message -------- >>>>>> >>>>>> *Subject:* [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit >>>>>> >> MQSeries >> >>>>>> *Sent:* Tue, 08 Apr 2008 >>>>>> *From:* linux linux >>>>>> >>>>>> Hi al,, >>>>>> >>>>>> I would really appreciate any kind of help to get this run: >>>>>> uname -a >>>>>> 2.6.20.16 #1 SMP Wed Aug 22 12:05:00 CEST 2007 x86_64 x86_64 x86_64 >>>>>> >>>>>> >>>>>> >>>> GNU/Linux >>>> >>>> >>>> >>>>>> ruby test.rb >>>>>> Loaded suite test >>>>>> Started >>>>>> ****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E****** setup: start ****** >>>>>> E****** teardown: start ****** >>>>>> E >>>>>> Finished in 0.003259 seconds. >>>>>> >>>>>> 1) Error: >>>>>> test_1(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 2) Error: >>>>>> test_1(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 3) Error: >>>>>> test_cics(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 4) Error: >>>>>> test_cics(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 5) Error: >>>>>> test_dlh(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 6) Error: >>>>>> test_dlh(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 7) Error: >>>>>> test_dynamic_buffer(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 8) Error: >>>>>> test_dynamic_buffer(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 9) Error: >>>>>> test_exceptions(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 10) Error: >>>>>> test_exceptions(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 11) Error: >>>>>> test_execute(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 12) Error: >>>>>> test_execute(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 13) Error: >>>>>> test_ims(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 14) Error: >>>>>> test_ims(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 15) Error: >>>>>> test_mqsc(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 16) Error: >>>>>> test_mqsc(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 17) Error: >>>>>> test_multiple_headers(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 18) Error: >>>>>> test_multiple_headers(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 19) Error: >>>>>> test_put1(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 20) Error: >>>>>> test_put1(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 21) Error: >>>>>> test_q_name_hash(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 22) Error: >>>>>> test_q_name_hash(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 23) Error: >>>>>> test_queue_manager(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 24) Error: >>>>>> test_queue_manager(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 25) Error: >>>>>> test_rf_header(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 26) Error: >>>>>> test_rf_header(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 27) Error: >>>>>> test_rf_header_2(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 28) Error: >>>>>> test_rf_header_2(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 29) Error: >>>>>> test_transmission_header(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 30) Error: >>>>>> test_transmission_header(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 31) Error: >>>>>> test_xmit_multiple_headers(TestTest): >>>>>> WMQ::WMQException: 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 >>>> >>>> >>>> >>>>>> test.rb:12:in `connect' >>>>>> test.rb:12:in `setup' >>>>>> >>>>>> 32) Error: >>>>>> test_xmit_multiple_headers(TestTest): >>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>> test.rb:33:in `teardown' >>>>>> >>>>>> 16 tests, 0 assertions, 0 failures, 32 errors >>>>>> >>>>>> >>>>>> >>>>>> Any suggestions? >>>>>> >>>>>> >>>>>> bye >>>>>> Henry >>>>>> >>>>>> >>>>>> --- original message end ---- >>>>>> >>>>>> >>>>>> >> ------------------------------------------------------------------------ >> >>>>>> _______________________________________________ >>>>>> RubyWMQ-Misc mailing list >>>>>> RubyWMQ-Misc at rubyforge.org >>>>>> http://rubyforge.org/mailman/listinfo/rubywmq-misc >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> RubyWMQ-Misc mailing list >>>>> RubyWMQ-Misc at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/rubywmq-misc >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >> From B.Candler at pobox.com Fri Apr 11 15:41:39 2008 From: B.Candler at pobox.com (Brian Candler) Date: Fri, 11 Apr 2008 20:41:39 +0100 Subject: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries In-Reply-To: <47FFBA0C.3030600@piard.de> References: <200804081817.m38IHhMe009952@post.webmailer.de> <002701c899d9$3b380860$b1a81920$@com> <47FC1AF2.6040908@piard.de> <47FC1C7A.5020002@piard.de> <47FD5136.6030200@piard.de> <47FFBA0C.3030600@piard.de> Message-ID: <20080411194139.GB6442@uk.tiscali.com> On Fri, Apr 11, 2008 at 03:20:44PM -0400, Linux wrote: > Hi Reid, > > I managed to get the 64 bit libs. I just extracted the /opt/mqm/lib64 > folder from the MQSeriesClient-64bit.rpm (trial download on the IBM > website). > > lib64]# ls > 3.3 libimqc23gl_r.so libmqicb_r.so libmqic_r.so libmqiz_r.so > 3.4 libimqc23gl.so libmqicb.so libmqic.so libmqiz.so > > > but now there is now file with the name > > Library:libmqm_r.so, rc=libmqm_r.so: If I remember rightly, that's the bit which does queue storage - i.e. the 'server' component of MQ. If you are only acting as a client to connect to a separate machine which is an MQ server, you don't need it, and it won't be loaded. However, if you are trying to create a local on-disk queue, then you *do* need it. That is, you need a paid up and licenced copy of the MQSeriesServer RPM. I think you can get a time-limited trial to download from the website (whereas the client downloads are not time-limited). But if you have paid for it, you should be able to get the 64-bit version by official channels. HTH, Brian. From rubywmq at gmail.com Fri Apr 11 16:18:56 2008 From: rubywmq at gmail.com (Reid Morrison) Date: Fri, 11 Apr 2008 16:18:56 -0400 Subject: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries In-Reply-To: <47FFBA0C.3030600@piard.de> References: <200804081817.m38IHhMe009952@post.webmailer.de> <002701c899d9$3b380860$b1a81920$@com> <47FC1AF2.6040908@piard.de> <47FC1C7A.5020002@piard.de> <47FD5136.6030200@piard.de> <47FFBA0C.3030600@piard.de> Message-ID: To make the test program use an MQ Client connection, update the test.rb program as follows: require 'rubygems' require 'wmq/wmq' require 'wmq/wmq_const_admin' require 'test/unit' class TestTest < Test::Unit::TestCase def setup puts '****** setup: start ******' @queue_manager = WMQ::QueueManager.new(:q_mgr_name => 'REID', :connection_name=>'servername(1414)') @queue_manager.connect Just replace REID and servername above as necessary. All rpm's from the 64bit upgrade need to be applied using rpm -ivh ..., since it upgrades MQ itself. Also, after updating the SDK, we should rebuild the RubyWMQ gem by uninstalling and re-installing it. If MQ Server is installed locally as a 32 bit app, then upgrading it to the 64 bit version will require manually recreating the queue managers since MQ will not migrate it for you. On Fri, Apr 11, 2008 at 3:20 PM, Linux wrote: > Hi Reid, > > I managed to get the 64 bit libs. I just extracted the /opt/mqm/lib64 > folder from the MQSeriesClient-64bit.rpm (trial download on the IBM > website). > > lib64]# ls > 3.3 libimqc23gl_r.so libmqicb_r.so libmqic_r.so libmqiz_r.so > 3.4 libimqc23gl.so libmqicb.so libmqic.so libmqiz.so > > > but now there is now file with the name > > > Library:libmqm_r.so, rc=libmqm_r.so: > > > Any ideas? > > > > > bye > Henry > > Reid Morrison wrote: > > > Hi Henry, > > > > I was able to recreate the problem. The issue is that the Ruby > > interpreter and RubyWMQ are compiled as 64 bit applications and are > > trying to use the 32 bit versions of the MQ libraries. > > > > This can be caused by one of two scenarious: > > 1. The MQ installation is the 32 bit version. > > 2. The RubyWMQ runtime environment is pulling in the 32 bit > > libmqm_r.so libraries. > > > > Scenario 2 is the most likely. Try the following command prior to > > running the ruby program: > > export LD_LIBRARY_PATH=/opt/mqm/lib64 > > > > To check for scenario 1 , run the following command: > > rpm -qa | grep MQSeries > > > > On the test server, the following output is expected for a 64bit system: > > MQSeriesJava-6.0.0-0 > > MQSeriesSDK-U811635-6.0.2-3 > > MQSeriesServer-6.0.0-0 > > MQSeriesKeyMan-U811635-6.0.2-3 > > MQSeriesSDK-6.0.0-0 > > MQSeriesKeyMan-6.0.0-0 > > MQSeriesRuntime-U811635-6.0.2-3 > > MQSeriesJava-U811635-6.0.2-3 > > MQSeriesMan-U811635-6.0.2-3 > > MQSeriesClient-6.0.0-0 > > MQSeriesMan-6.0.0-0 > > MQSeriesServer-U811635-6.0.2-3 > > MQSeriesSamples-U811635-6.0.2-3 > > MQSeriesRuntime-6.0.0-0 > > MQSeriesSamples-6.0.0-0 > > MQSeriesClient-U811635-6.0.2-3 > > > > Note the U811635. On 32 bit MQ installations it is U811634 > > > > Also /opt/mqm/lib64 should exist on the system. > > > > Let me know how it goes. > > > > Regards > > Reid > > > > On Wed, Apr 9, 2008 at 7:28 PM, Linux wrote: > > > > > > > Hi Reid, > > > > > > I really appreciate your support on this one. > > > No problem, I can wait till tomorrow. > > > > > > Thanks! > > > > > > > > > > > > bye > > > Henry > > > > > > Reid Morrison wrote: > > > > > > > > > > > > > Hi Henry, > > > > > > > > You did everything correctly. > > > > > > > > I have requested access to a 64Bit RedHat box so that I can see what > > > > the issue is. Access should be granted by tomorrow morning. > > > > > > > > Let me know if this is time critical for you as I can juggle a few > > > > things around. > > > > > > > > Regards > > > > Reid > > > > > > > > > > > > On Tue, Apr 8, 2008 at 9:31 PM, Linux wrote: > > > > > > > > > > > > > > > > > > > > > Hi Reid, > > > > > > > > > > one more info which might help. > > > > > > > > > > Name : MQSeriesSDK Relocations: (not > > > > > > > > > > > > > > > > > relocatable) > > > > > > > > > > > > > > > Group : Applications/Networking Source RPM: > > > > > MQSeriesSDK-6.0.0-0.src.rpm > > > > > Summary : WebSphere MQ SDK FileSet > > > > > IBM WebSphere MQ for Linux for Intel > > > > > Name : MQSeriesClient Relocations: (not > > > > > > > > > > > > > > > > > relocatable) > > > > > > > > > > > > > > > Group : Applications/Networking Source RPM: > > > > > MQSeriesClient-6.0.0-0.src.rpm > > > > > Summary : WebSphere MQ Client FileSet > > > > > IBM WebSphere MQ for Linux for Intel > > > > > Name : MQSeriesServer Relocations: (not > > > > > > > > > > > > > > > > > relocatable) > > > > > > > > > > > > > > > Group : Applications/Networking Source RPM: > > > > > MQSeriesServer-6.0.0-0.src.rpm > > > > > Summary : WebSphere MQ Server FileSet > > > > > IBM WebSphere MQ for Linux for Intel > > > > > Name : MQSeriesRuntime-U811634 Relocations: (not > > > > > > > > > > > > > > > > > relocatable) > > > > > > > > > > > > > > > Group : Applications/Networking Source RPM: > > > > > MQSeriesRuntime-U811634-6.0.2-3.src.rpm > > > > > Summary : WebSphere MQ Runtime FileSet (Maintenance Pack > U811634) > > > > > IBM WebSphere MQ for Linux for Intel, v6.0 > > > > > Name : MQSeriesSDK-U811634 Relocations: (not > > > > > > > > > > > > > > > > > relocatable) > > > > > > > > > > > > > > > Group : Applications/Networking Source RPM: > > > > > MQSeriesSDK-U811634-6.0.2-3.src.rpm > > > > > Summary : WebSphere MQ SDK FileSet (Maintenance Pack U811634) > > > > > IBM WebSphere MQ for Linux for Intel, v6.0 > > > > > Name : MQSeriesRuntime Relocations: (not > > > > > > > > > > > > > > > > > relocatable) > > > > > > > > > > > > > > > Group : Applications/Networking Source RPM: > > > > > MQSeriesRuntime-6.0.0-0.src.rpm > > > > > Summary : WebSphere MQ Runtime FileSet > > > > > IBM WebSphere MQ for Linux for Intel > > > > > Name : MQSeriesServer-U811634 Relocations: (not > > > > > > > > > > > > > > > > > relocatable) > > > > > > > > > > > > > > > Group : Applications/Networking Source RPM: > > > > > MQSeriesServer-U811634-6.0.2-3.src.rpm > > > > > Summary : WebSphere MQ Server FileSet (Maintenance Pack > U811634) > > > > > IBM WebSphere MQ for Linux for Intel, v6.0 > > > > > > > > > > > > > > > > > > > > > > > > > bye > > > > > Henry > > > > > > > > > > > > > > > Linux wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi Reid, > > > > > > > > > > > > thanks for your reply. > > > > > > > > > > > > I build the gem and installed it but unfortunately I get the same > > > > > > > > > > > > > > > > > > > > > > > > errors. > > > > > > > > > > > > > > > > > > > > > I built it like this: > > > > > > gem build rubywmq.gemspec > > > > > > Successfully built RubyGem > > > > > > Name: rubywmq > > > > > > Version: 0.3.0 > > > > > > File: rubywmq-0.3.0.gem > > > > > > > > > > > > [root at xyz trunk]# ls -la > > > > > > total 128 > > > > > > drwxr-xr-x 7 root root 4096 2008-04-09 03:21 . > > > > > > drwxr-xr-x 3 root root 4096 2008-04-09 03:20 .. > > > > > > -rw-r--r-- 1 root root 151 2008-04-09 03:20 .document > > > > > > drwxr-xr-x 3 root root 4096 2008-04-09 03:20 examples > > > > > > drwxr-xr-x 5 root root 4096 2008-04-09 03:20 ext > > > > > > drwxr-xr-x 3 root root 4096 2008-04-09 03:20 lib > > > > > > -rw-r--r-- 1 root root 584 2008-04-09 03:20 LICENSE > > > > > > -rw-r--r-- 1 root root 402 2008-04-09 03:20 Manifest.txt > > > > > > -rw-r--r-- 1 root root 389 2008-04-09 03:20 .project > > > > > > -rw-r--r-- 1 root root 2443 2008-04-09 03:20 README > > > > > > -rw-r--r-- 1 root root 59392 2008-04-09 03:21 rubywmq-0.3.0.gem > > > > > > -rw-r--r-- 1 root root 8153 2008-04-09 03:20 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > rubywmq-0.3.0-x86_64-linux.gem > > > > > > > > > > > > > > > > > > > > > > > > > > -rw-r--r-- 1 root root 1027 2008-04-09 03:20 > rubywmq.binary.gemspec > > > > > > -rw-r--r-- 1 root root 761 2008-04-09 03:20 rubywmq.gemspec > > > > > > drwxr-xr-x 6 root root 4096 2008-04-09 03:20 .svn > > > > > > drwxr-xr-x 3 root root 4096 2008-04-09 03:20 tests > > > > > > > > > > > > and installed it with 'gem install rubywmq-0.3.0.gem' and it was > > > > > > > > > > > > > > > > > > > > > > > > installed > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > like expected. > > > > > > > > > > > > > > > > > > > > > > > > > > ruby get_a.rb > > > > > > get_a.rb:23:in `connect': WMQ::QueueManager#connect(). Failed to > load > > > > > > > > > > > > > > > > > > > > > > > > MQ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong > ELF > > > > > class: ELFCLASS32 (WMQ::WMQException) > > > > > > > > > > > > > > > > > > > > > > > > > > from get_a.rb:23 > > > > > > > > > > > > > > > > > > Did I do something wrong? > > > > > > > > > > > > > > > > > > > > > > > > bye > > > > > > Henry > > > > > > > > > > > > > > > > > > Reid Morrison wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hi Henry, > > > > > > > > > > > > > > > > > > > > > Several fixes were applied to trunk to address the 64 Bit Linux > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > distribution. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > If possible, can you try building from trunk. If it works > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > successfully, > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > I will put out a new gem with the latest updates. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > To checkout the latest code: > > > > > > > > > > > > > > svn checkout svn://rubyforge.org/var/svn/rubywmq/trunk > > > > > > > > > > > > > > > > > > > > > Let me know if you would prefer a private email with a zip file > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > containing the sources or updated gem. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Regards > > > > > > > > > > > > > > Reid > > > > > > > > > > > > > > > > > > > > > *From:* rubywmq-misc-bounces at rubyforge.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > [mailto:rubywmq-misc-bounces at rubyforge.org] *On Behalf Of *linux > linux > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > *Sent:* Tuesday, April 08, 2008 2:18 PM > > > > > > > *To:* rubywmq-misc at rubyforge.org > > > > > > > *Subject:* Re: [RubyWMQ-Misc] rubywmq on 64bit system with 32 > bit > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > MQSeries > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > OK - I changed in wmq_mq_load.c for linux: > > > > > > > #define MQ_LIBRARY_SERVER "libmqm_r.so" > > > > > > > #define MQ_LIBRARY_CLIENT "lib/libmqic_r.so" > > > > > > > > > > > > > > to > > > > > > > > > > > > > > #define MQ_LIBRARY_SERVER "/op/mqm/lib/libmqm_r.so" > > > > > > > #define MQ_LIBRARY_CLIENT "/opt/mqm/lib/libmqic_r.so" > > > > > > > > > > > > > > and re-compiled. > > > > > > > > > > > > > > But now this: > > > > > > > > > > > > > > 1) Error: > > > > > > > test_1(TestTest): > > > > > > > WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load > MQ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong > ELF > > > > > class: ELFCLASS32 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > 2) Error: > > > > > > > test_1(TestTest): > > > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > > > test.rb:33:in `teardown' > > > > > > > > > > > > > > 3) Error: > > > > > > > test_cics(TestTest): > > > > > > > WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load > MQ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong > ELF > > > > > class: ELFCLASS32 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > 4) Error: > > > > > > > test_cics(TestTest): > > > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > > > test.rb:33:in `teardown' > > > > > > > > > > > > > > 5) Error: > > > > > > > test_dlh(TestTest): > > > > > > > WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load > MQ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong > ELF > > > > > class: ELFCLASS32 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > 6) Error: > > > > > > > test_dlh(TestTest): > > > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > > > test.rb:33:in `teardown' > > > > > > > > > > > > > > 7) Error: > > > > > > > test_dynamic_buffer(TestTest): > > > > > > > WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load > MQ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong > ELF > > > > > class: ELFCLASS32 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > > > > > > > > end so on. > > > > > > > > > > > > > > > > > > > > > > > > > > > > bye > > > > > > > Henry > > > > > > > ----- original message -------- > > > > > > > > > > > > > > *Subject:* [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > MQSeries > > > > > > > > > > > > > > > > > > > > > > > > > > > > *Sent:* Tue, 08 Apr 2008 > > > > > > > *From:* linux linux > > > > > > > > > > > > > > Hi al,, > > > > > > > > > > > > > > I would really appreciate any kind of help to get this run: > > > > > > > uname -a > > > > > > > 2.6.20.16 #1 SMP Wed Aug 22 12:05:00 CEST 2007 x86_64 x86_64 > x86_64 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > GNU/Linux > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ruby test.rb > > > > > > > Loaded suite test > > > > > > > Started > > > > > > > ****** setup: start ****** > > > > > > > E****** teardown: start ****** > > > > > > > E****** setup: start ****** > > > > > > > E****** teardown: start ****** > > > > > > > E****** setup: start ****** > > > > > > > E****** teardown: start ****** > > > > > > > E****** setup: start ****** > > > > > > > E****** teardown: start ****** > > > > > > > E****** setup: start ****** > > > > > > > E****** teardown: start ****** > > > > > > > E****** setup: start ****** > > > > > > > E****** teardown: start ****** > > > > > > > E****** setup: start ****** > > > > > > > E****** teardown: start ****** > > > > > > > E****** setup: start ****** > > > > > > > E****** teardown: start ****** > > > > > > > E****** setup: start ****** > > > > > > > E****** teardown: start ****** > > > > > > > E****** setup: start ****** > > > > > > > E****** teardown: start ****** > > > > > > > E****** setup: start ****** > > > > > > > E****** teardown: start ****** > > > > > > > E****** setup: start ****** > > > > > > > E****** teardown: start ****** > > > > > > > E****** setup: start ****** > > > > > > > E****** teardown: start ****** > > > > > > > E****** setup: start ****** > > > > > > > E****** teardown: start ****** > > > > > > > E****** setup: start ****** > > > > > > > E****** teardown: start ****** > > > > > > > E****** setup: start ****** > > > > > > > E****** teardown: start ****** > > > > > > > E > > > > > > > Finished in 0.003259 seconds. > > > > > > > > > > > > > > 1) Error: > > > > > > > test_1(TestTest): > > > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > 2) Error: > > > > > > > test_1(TestTest): > > > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > > > test.rb:33:in `teardown' > > > > > > > > > > > > > > 3) Error: > > > > > > > test_cics(TestTest): > > > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > 4) Error: > > > > > > > test_cics(TestTest): > > > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > > > test.rb:33:in `teardown' > > > > > > > > > > > > > > 5) Error: > > > > > > > test_dlh(TestTest): > > > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > 6) Error: > > > > > > > test_dlh(TestTest): > > > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > > > test.rb:33:in `teardown' > > > > > > > > > > > > > > 7) Error: > > > > > > > test_dynamic_buffer(TestTest): > > > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > 8) Error: > > > > > > > test_dynamic_buffer(TestTest): > > > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > > > test.rb:33:in `teardown' > > > > > > > > > > > > > > 9) Error: > > > > > > > test_exceptions(TestTest): > > > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > 10) Error: > > > > > > > test_exceptions(TestTest): > > > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > > > test.rb:33:in `teardown' > > > > > > > > > > > > > > 11) Error: > > > > > > > test_execute(TestTest): > > > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > 12) Error: > > > > > > > test_execute(TestTest): > > > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > > > test.rb:33:in `teardown' > > > > > > > > > > > > > > 13) Error: > > > > > > > test_ims(TestTest): > > > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > 14) Error: > > > > > > > test_ims(TestTest): > > > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > > > test.rb:33:in `teardown' > > > > > > > > > > > > > > 15) Error: > > > > > > > test_mqsc(TestTest): > > > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > 16) Error: > > > > > > > test_mqsc(TestTest): > > > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > > > test.rb:33:in `teardown' > > > > > > > > > > > > > > 17) Error: > > > > > > > test_multiple_headers(TestTest): > > > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > 18) Error: > > > > > > > test_multiple_headers(TestTest): > > > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > > > test.rb:33:in `teardown' > > > > > > > > > > > > > > 19) Error: > > > > > > > test_put1(TestTest): > > > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > 20) Error: > > > > > > > test_put1(TestTest): > > > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > > > test.rb:33:in `teardown' > > > > > > > > > > > > > > 21) Error: > > > > > > > test_q_name_hash(TestTest): > > > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > 22) Error: > > > > > > > test_q_name_hash(TestTest): > > > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > > > test.rb:33:in `teardown' > > > > > > > > > > > > > > 23) Error: > > > > > > > test_queue_manager(TestTest): > > > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > 24) Error: > > > > > > > test_queue_manager(TestTest): > > > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > > > test.rb:33:in `teardown' > > > > > > > > > > > > > > 25) Error: > > > > > > > test_rf_header(TestTest): > > > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > 26) Error: > > > > > > > test_rf_header(TestTest): > > > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > > > test.rb:33:in `teardown' > > > > > > > > > > > > > > 27) Error: > > > > > > > test_rf_header_2(TestTest): > > > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > 28) Error: > > > > > > > test_rf_header_2(TestTest): > > > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > > > test.rb:33:in `teardown' > > > > > > > > > > > > > > 29) Error: > > > > > > > test_transmission_header(TestTest): > > > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > 30) Error: > > > > > > > test_transmission_header(TestTest): > > > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > > > test.rb:33:in `teardown' > > > > > > > > > > > > > > 31) Error: > > > > > > > test_xmit_multiple_headers(TestTest): > > > > > > > WMQ::WMQException: 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > test.rb:12:in `connect' > > > > > > > test.rb:12:in `setup' > > > > > > > > > > > > > > 32) Error: > > > > > > > test_xmit_multiple_headers(TestTest): > > > > > > > NoMethodError: undefined method `close' for nil:NilClass > > > > > > > test.rb:33:in `teardown' > > > > > > > > > > > > > > 16 tests, 0 assertions, 0 failures, 32 errors > > > > > > > > > > > > > > > > > > > > > > > > > > > > Any suggestions? > > > > > > > > > > > > > > > > > > > > > bye > > > > > > > Henry > > > > > > > > > > > > > > > > > > > > > --- original message end ---- > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > RubyWMQ-Misc mailing list > > > > > > > RubyWMQ-Misc at rubyforge.org > > > > > > > http://rubyforge.org/mailman/listinfo/rubywmq-misc > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > RubyWMQ-Misc mailing list > > > > > > RubyWMQ-Misc at rubyforge.org > > > > > > http://rubyforge.org/mailman/listinfo/rubywmq-misc > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > From linux at piard.de Fri Apr 11 18:11:49 2008 From: linux at piard.de (Linux) Date: Fri, 11 Apr 2008 18:11:49 -0400 Subject: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries In-Reply-To: References: <200804081817.m38IHhMe009952@post.webmailer.de> <002701c899d9$3b380860$b1a81920$@com> <47FC1AF2.6040908@piard.de> <47FC1C7A.5020002@piard.de> <47FD5136.6030200@piard.de> <47FFBA0C.3030600@piard.de> Message-ID: <47FFE225.9090803@piard.de> Hi Reid, thanks. I will update the whole system (MQSeries wise) to a 64-bit system next week and will let you know. bye Henry Reid Morrison wrote: > To make the test program use an MQ Client connection, update the > test.rb program as follows: > > require 'rubygems' > require 'wmq/wmq' > require 'wmq/wmq_const_admin' > require 'test/unit' > class TestTest < Test::Unit::TestCase > > def setup > puts '****** setup: start ******' > @queue_manager = WMQ::QueueManager.new(:q_mgr_name => 'REID', > :connection_name=>'servername(1414)') > @queue_manager.connect > > > Just replace REID and servername above as necessary. > > All rpm's from the 64bit upgrade need to be applied using rpm -ivh > ..., since it upgrades MQ itself. Also, after updating the SDK, we > should rebuild the RubyWMQ gem by uninstalling and re-installing it. > If MQ Server is installed locally as a 32 bit app, then upgrading it > to the 64 bit version will require manually recreating the queue > managers since MQ will not migrate it for you. > > On Fri, Apr 11, 2008 at 3:20 PM, Linux wrote: > >> Hi Reid, >> >> I managed to get the 64 bit libs. I just extracted the /opt/mqm/lib64 >> folder from the MQSeriesClient-64bit.rpm (trial download on the IBM >> website). >> >> lib64]# ls >> 3.3 libimqc23gl_r.so libmqicb_r.so libmqic_r.so libmqiz_r.so >> 3.4 libimqc23gl.so libmqicb.so libmqic.so libmqiz.so >> >> >> but now there is now file with the name >> >> >> Library:libmqm_r.so, rc=libmqm_r.so: >> >> >> Any ideas? >> >> >> >> >> bye >> Henry >> >> Reid Morrison wrote: >> >> >>> Hi Henry, >>> >>> I was able to recreate the problem. The issue is that the Ruby >>> interpreter and RubyWMQ are compiled as 64 bit applications and are >>> trying to use the 32 bit versions of the MQ libraries. >>> >>> This can be caused by one of two scenarious: >>> 1. The MQ installation is the 32 bit version. >>> 2. The RubyWMQ runtime environment is pulling in the 32 bit >>> libmqm_r.so libraries. >>> >>> Scenario 2 is the most likely. Try the following command prior to >>> running the ruby program: >>> export LD_LIBRARY_PATH=/opt/mqm/lib64 >>> >>> To check for scenario 1 , run the following command: >>> rpm -qa | grep MQSeries >>> >>> On the test server, the following output is expected for a 64bit system: >>> MQSeriesJava-6.0.0-0 >>> MQSeriesSDK-U811635-6.0.2-3 >>> MQSeriesServer-6.0.0-0 >>> MQSeriesKeyMan-U811635-6.0.2-3 >>> MQSeriesSDK-6.0.0-0 >>> MQSeriesKeyMan-6.0.0-0 >>> MQSeriesRuntime-U811635-6.0.2-3 >>> MQSeriesJava-U811635-6.0.2-3 >>> MQSeriesMan-U811635-6.0.2-3 >>> MQSeriesClient-6.0.0-0 >>> MQSeriesMan-6.0.0-0 >>> MQSeriesServer-U811635-6.0.2-3 >>> MQSeriesSamples-U811635-6.0.2-3 >>> MQSeriesRuntime-6.0.0-0 >>> MQSeriesSamples-6.0.0-0 >>> MQSeriesClient-U811635-6.0.2-3 >>> >>> Note the U811635. On 32 bit MQ installations it is U811634 >>> >>> Also /opt/mqm/lib64 should exist on the system. >>> >>> Let me know how it goes. >>> >>> Regards >>> Reid >>> >>> On Wed, Apr 9, 2008 at 7:28 PM, Linux wrote: >>> >>> >>> >>>> Hi Reid, >>>> >>>> I really appreciate your support on this one. >>>> No problem, I can wait till tomorrow. >>>> >>>> Thanks! >>>> >>>> >>>> >>>> bye >>>> Henry >>>> >>>> Reid Morrison wrote: >>>> >>>> >>>> >>>> >>>>> Hi Henry, >>>>> >>>>> You did everything correctly. >>>>> >>>>> I have requested access to a 64Bit RedHat box so that I can see what >>>>> the issue is. Access should be granted by tomorrow morning. >>>>> >>>>> Let me know if this is time critical for you as I can juggle a few >>>>> things around. >>>>> >>>>> Regards >>>>> Reid >>>>> >>>>> >>>>> On Tue, Apr 8, 2008 at 9:31 PM, Linux wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> Hi Reid, >>>>>> >>>>>> one more info which might help. >>>>>> >>>>>> Name : MQSeriesSDK Relocations: (not >>>>>> >>>>>> >>>>>> >>>> relocatable) >>>> >>>> >>>> >>>>>> Group : Applications/Networking Source RPM: >>>>>> MQSeriesSDK-6.0.0-0.src.rpm >>>>>> Summary : WebSphere MQ SDK FileSet >>>>>> IBM WebSphere MQ for Linux for Intel >>>>>> Name : MQSeriesClient Relocations: (not >>>>>> >>>>>> >>>>>> >>>> relocatable) >>>> >>>> >>>> >>>>>> Group : Applications/Networking Source RPM: >>>>>> MQSeriesClient-6.0.0-0.src.rpm >>>>>> Summary : WebSphere MQ Client FileSet >>>>>> IBM WebSphere MQ for Linux for Intel >>>>>> Name : MQSeriesServer Relocations: (not >>>>>> >>>>>> >>>>>> >>>> relocatable) >>>> >>>> >>>> >>>>>> Group : Applications/Networking Source RPM: >>>>>> MQSeriesServer-6.0.0-0.src.rpm >>>>>> Summary : WebSphere MQ Server FileSet >>>>>> IBM WebSphere MQ for Linux for Intel >>>>>> Name : MQSeriesRuntime-U811634 Relocations: (not >>>>>> >>>>>> >>>>>> >>>> relocatable) >>>> >>>> >>>> >>>>>> Group : Applications/Networking Source RPM: >>>>>> MQSeriesRuntime-U811634-6.0.2-3.src.rpm >>>>>> Summary : WebSphere MQ Runtime FileSet (Maintenance Pack >>>>>> >> U811634) >> >>>>>> IBM WebSphere MQ for Linux for Intel, v6.0 >>>>>> Name : MQSeriesSDK-U811634 Relocations: (not >>>>>> >>>>>> >>>>>> >>>> relocatable) >>>> >>>> >>>> >>>>>> Group : Applications/Networking Source RPM: >>>>>> MQSeriesSDK-U811634-6.0.2-3.src.rpm >>>>>> Summary : WebSphere MQ SDK FileSet (Maintenance Pack U811634) >>>>>> IBM WebSphere MQ for Linux for Intel, v6.0 >>>>>> Name : MQSeriesRuntime Relocations: (not >>>>>> >>>>>> >>>>>> >>>> relocatable) >>>> >>>> >>>> >>>>>> Group : Applications/Networking Source RPM: >>>>>> MQSeriesRuntime-6.0.0-0.src.rpm >>>>>> Summary : WebSphere MQ Runtime FileSet >>>>>> IBM WebSphere MQ for Linux for Intel >>>>>> Name : MQSeriesServer-U811634 Relocations: (not >>>>>> >>>>>> >>>>>> >>>> relocatable) >>>> >>>> >>>> >>>>>> Group : Applications/Networking Source RPM: >>>>>> MQSeriesServer-U811634-6.0.2-3.src.rpm >>>>>> Summary : WebSphere MQ Server FileSet (Maintenance Pack >>>>>> >> U811634) >> >>>>>> IBM WebSphere MQ for Linux for Intel, v6.0 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> bye >>>>>> Henry >>>>>> >>>>>> >>>>>> Linux wrote: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Hi Reid, >>>>>>> >>>>>>> thanks for your reply. >>>>>>> >>>>>>> I build the gem and installed it but unfortunately I get the same >>>>>>> >>>>>>> >>>>>>> >>>> errors. >>>> >>>> >>>> >>>>>>> I built it like this: >>>>>>> gem build rubywmq.gemspec >>>>>>> Successfully built RubyGem >>>>>>> Name: rubywmq >>>>>>> Version: 0.3.0 >>>>>>> File: rubywmq-0.3.0.gem >>>>>>> >>>>>>> [root at xyz trunk]# ls -la >>>>>>> total 128 >>>>>>> drwxr-xr-x 7 root root 4096 2008-04-09 03:21 . >>>>>>> drwxr-xr-x 3 root root 4096 2008-04-09 03:20 .. >>>>>>> -rw-r--r-- 1 root root 151 2008-04-09 03:20 .document >>>>>>> drwxr-xr-x 3 root root 4096 2008-04-09 03:20 examples >>>>>>> drwxr-xr-x 5 root root 4096 2008-04-09 03:20 ext >>>>>>> drwxr-xr-x 3 root root 4096 2008-04-09 03:20 lib >>>>>>> -rw-r--r-- 1 root root 584 2008-04-09 03:20 LICENSE >>>>>>> -rw-r--r-- 1 root root 402 2008-04-09 03:20 Manifest.txt >>>>>>> -rw-r--r-- 1 root root 389 2008-04-09 03:20 .project >>>>>>> -rw-r--r-- 1 root root 2443 2008-04-09 03:20 README >>>>>>> -rw-r--r-- 1 root root 59392 2008-04-09 03:21 rubywmq-0.3.0.gem >>>>>>> -rw-r--r-- 1 root root 8153 2008-04-09 03:20 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> rubywmq-0.3.0-x86_64-linux.gem >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> -rw-r--r-- 1 root root 1027 2008-04-09 03:20 >>>>>>> >> rubywmq.binary.gemspec >> >>>>>>> -rw-r--r-- 1 root root 761 2008-04-09 03:20 rubywmq.gemspec >>>>>>> drwxr-xr-x 6 root root 4096 2008-04-09 03:20 .svn >>>>>>> drwxr-xr-x 3 root root 4096 2008-04-09 03:20 tests >>>>>>> >>>>>>> and installed it with 'gem install rubywmq-0.3.0.gem' and it was >>>>>>> >>>>>>> >>>>>>> >>>> installed >>>> >>>> >>>> >>>>>>> >>>>>> like expected. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> ruby get_a.rb >>>>>>> get_a.rb:23:in `connect': WMQ::QueueManager#connect(). Failed to >>>>>>> >> load >> >>>>>>> >>>> MQ >>>> >>>> >>>> >>>>>>> >>>>>> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong >>>>>> >> ELF >> >>>>>> class: ELFCLASS32 (WMQ::WMQException) >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> from get_a.rb:23 >>>>>>> >>>>>>> >>>>>>> Did I do something wrong? >>>>>>> >>>>>>> >>>>>>> >>>>>>> bye >>>>>>> Henry >>>>>>> >>>>>>> >>>>>>> Reid Morrison wrote: >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>>> Hi Henry, >>>>>>>> >>>>>>>> >>>>>>>> Several fixes were applied to trunk to address the 64 Bit Linux >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> distribution. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> If possible, can you try building from trunk. If it works >>>>>>>> >>>>>>>> >>>>>>>> >>>> successfully, >>>> >>>> >>>> >>>>>>>> >>>>>> I will put out a new gem with the latest updates. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> To checkout the latest code: >>>>>>>> >>>>>>>> svn checkout svn://rubyforge.org/var/svn/rubywmq/trunk >>>>>>>> >>>>>>>> >>>>>>>> Let me know if you would prefer a private email with a zip file >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> containing the sources or updated gem. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> Regards >>>>>>>> >>>>>>>> Reid >>>>>>>> >>>>>>>> >>>>>>>> *From:* rubywmq-misc-bounces at rubyforge.org >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> [mailto:rubywmq-misc-bounces at rubyforge.org] *On Behalf Of *linux >>>>>> >> linux >> >>>>>> >>>>>> >>>>>> >>>>>>>> *Sent:* Tuesday, April 08, 2008 2:18 PM >>>>>>>> *To:* rubywmq-misc at rubyforge.org >>>>>>>> *Subject:* Re: [RubyWMQ-Misc] rubywmq on 64bit system with 32 >>>>>>>> >> bit >> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> MQSeries >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> OK - I changed in wmq_mq_load.c for linux: >>>>>>>> #define MQ_LIBRARY_SERVER "libmqm_r.so" >>>>>>>> #define MQ_LIBRARY_CLIENT "lib/libmqic_r.so" >>>>>>>> >>>>>>>> to >>>>>>>> >>>>>>>> #define MQ_LIBRARY_SERVER "/op/mqm/lib/libmqm_r.so" >>>>>>>> #define MQ_LIBRARY_CLIENT "/opt/mqm/lib/libmqic_r.so" >>>>>>>> >>>>>>>> and re-compiled. >>>>>>>> >>>>>>>> But now this: >>>>>>>> >>>>>>>> 1) Error: >>>>>>>> test_1(TestTest): >>>>>>>> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load >>>>>>>> >> MQ >> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong >>>>>> >> ELF >> >>>>>> class: ELFCLASS32 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> 2) Error: >>>>>>>> test_1(TestTest): >>>>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>>>> test.rb:33:in `teardown' >>>>>>>> >>>>>>>> 3) Error: >>>>>>>> test_cics(TestTest): >>>>>>>> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load >>>>>>>> >> MQ >> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong >>>>>> >> ELF >> >>>>>> class: ELFCLASS32 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> 4) Error: >>>>>>>> test_cics(TestTest): >>>>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>>>> test.rb:33:in `teardown' >>>>>>>> >>>>>>>> 5) Error: >>>>>>>> test_dlh(TestTest): >>>>>>>> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load >>>>>>>> >> MQ >> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong >>>>>> >> ELF >> >>>>>> class: ELFCLASS32 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> 6) Error: >>>>>>>> test_dlh(TestTest): >>>>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>>>> test.rb:33:in `teardown' >>>>>>>> >>>>>>>> 7) Error: >>>>>>>> test_dynamic_buffer(TestTest): >>>>>>>> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load >>>>>>>> >> MQ >> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong >>>>>> >> ELF >> >>>>>> class: ELFCLASS32 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> >>>>>>>> end so on. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> bye >>>>>>>> Henry >>>>>>>> ----- original message -------- >>>>>>>> >>>>>>>> *Subject:* [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit >>>>>>>> >>>>>>>> >>>>>>>> >>>> MQSeries >>>> >>>> >>>> >>>>>>>> *Sent:* Tue, 08 Apr 2008 >>>>>>>> *From:* linux linux >>>>>>>> >>>>>>>> Hi al,, >>>>>>>> >>>>>>>> I would really appreciate any kind of help to get this run: >>>>>>>> uname -a >>>>>>>> 2.6.20.16 #1 SMP Wed Aug 22 12:05:00 CEST 2007 x86_64 x86_64 >>>>>>>> >> x86_64 >> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>> GNU/Linux >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> ruby test.rb >>>>>>>> Loaded suite test >>>>>>>> Started >>>>>>>> ****** setup: start ****** >>>>>>>> E****** teardown: start ****** >>>>>>>> E****** setup: start ****** >>>>>>>> E****** teardown: start ****** >>>>>>>> E****** setup: start ****** >>>>>>>> E****** teardown: start ****** >>>>>>>> E****** setup: start ****** >>>>>>>> E****** teardown: start ****** >>>>>>>> E****** setup: start ****** >>>>>>>> E****** teardown: start ****** >>>>>>>> E****** setup: start ****** >>>>>>>> E****** teardown: start ****** >>>>>>>> E****** setup: start ****** >>>>>>>> E****** teardown: start ****** >>>>>>>> E****** setup: start ****** >>>>>>>> E****** teardown: start ****** >>>>>>>> E****** setup: start ****** >>>>>>>> E****** teardown: start ****** >>>>>>>> E****** setup: start ****** >>>>>>>> E****** teardown: start ****** >>>>>>>> E****** setup: start ****** >>>>>>>> E****** teardown: start ****** >>>>>>>> E****** setup: start ****** >>>>>>>> E****** teardown: start ****** >>>>>>>> E****** setup: start ****** >>>>>>>> E****** teardown: start ****** >>>>>>>> E****** setup: start ****** >>>>>>>> E****** teardown: start ****** >>>>>>>> E****** setup: start ****** >>>>>>>> E****** teardown: start ****** >>>>>>>> E****** setup: start ****** >>>>>>>> E****** teardown: start ****** >>>>>>>> E >>>>>>>> Finished in 0.003259 seconds. >>>>>>>> >>>>>>>> 1) Error: >>>>>>>> test_1(TestTest): >>>>>>>> WMQ::WMQException: 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> 2) Error: >>>>>>>> test_1(TestTest): >>>>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>>>> test.rb:33:in `teardown' >>>>>>>> >>>>>>>> 3) Error: >>>>>>>> test_cics(TestTest): >>>>>>>> WMQ::WMQException: 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> 4) Error: >>>>>>>> test_cics(TestTest): >>>>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>>>> test.rb:33:in `teardown' >>>>>>>> >>>>>>>> 5) Error: >>>>>>>> test_dlh(TestTest): >>>>>>>> WMQ::WMQException: 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> 6) Error: >>>>>>>> test_dlh(TestTest): >>>>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>>>> test.rb:33:in `teardown' >>>>>>>> >>>>>>>> 7) Error: >>>>>>>> test_dynamic_buffer(TestTest): >>>>>>>> WMQ::WMQException: 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> 8) Error: >>>>>>>> test_dynamic_buffer(TestTest): >>>>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>>>> test.rb:33:in `teardown' >>>>>>>> >>>>>>>> 9) Error: >>>>>>>> test_exceptions(TestTest): >>>>>>>> WMQ::WMQException: 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> 10) Error: >>>>>>>> test_exceptions(TestTest): >>>>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>>>> test.rb:33:in `teardown' >>>>>>>> >>>>>>>> 11) Error: >>>>>>>> test_execute(TestTest): >>>>>>>> WMQ::WMQException: 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> 12) Error: >>>>>>>> test_execute(TestTest): >>>>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>>>> test.rb:33:in `teardown' >>>>>>>> >>>>>>>> 13) Error: >>>>>>>> test_ims(TestTest): >>>>>>>> WMQ::WMQException: 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> 14) Error: >>>>>>>> test_ims(TestTest): >>>>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>>>> test.rb:33:in `teardown' >>>>>>>> >>>>>>>> 15) Error: >>>>>>>> test_mqsc(TestTest): >>>>>>>> WMQ::WMQException: 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> 16) Error: >>>>>>>> test_mqsc(TestTest): >>>>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>>>> test.rb:33:in `teardown' >>>>>>>> >>>>>>>> 17) Error: >>>>>>>> test_multiple_headers(TestTest): >>>>>>>> WMQ::WMQException: 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> 18) Error: >>>>>>>> test_multiple_headers(TestTest): >>>>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>>>> test.rb:33:in `teardown' >>>>>>>> >>>>>>>> 19) Error: >>>>>>>> test_put1(TestTest): >>>>>>>> WMQ::WMQException: 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> 20) Error: >>>>>>>> test_put1(TestTest): >>>>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>>>> test.rb:33:in `teardown' >>>>>>>> >>>>>>>> 21) Error: >>>>>>>> test_q_name_hash(TestTest): >>>>>>>> WMQ::WMQException: 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> 22) Error: >>>>>>>> test_q_name_hash(TestTest): >>>>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>>>> test.rb:33:in `teardown' >>>>>>>> >>>>>>>> 23) Error: >>>>>>>> test_queue_manager(TestTest): >>>>>>>> WMQ::WMQException: 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> 24) Error: >>>>>>>> test_queue_manager(TestTest): >>>>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>>>> test.rb:33:in `teardown' >>>>>>>> >>>>>>>> 25) Error: >>>>>>>> test_rf_header(TestTest): >>>>>>>> WMQ::WMQException: 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> 26) Error: >>>>>>>> test_rf_header(TestTest): >>>>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>>>> test.rb:33:in `teardown' >>>>>>>> >>>>>>>> 27) Error: >>>>>>>> test_rf_header_2(TestTest): >>>>>>>> WMQ::WMQException: 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> 28) Error: >>>>>>>> test_rf_header_2(TestTest): >>>>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>>>> test.rb:33:in `teardown' >>>>>>>> >>>>>>>> 29) Error: >>>>>>>> test_transmission_header(TestTest): >>>>>>>> WMQ::WMQException: 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> 30) Error: >>>>>>>> test_transmission_header(TestTest): >>>>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>>>> test.rb:33:in `teardown' >>>>>>>> >>>>>>>> 31) Error: >>>>>>>> test_xmit_multiple_headers(TestTest): >>>>>>>> WMQ::WMQException: 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 >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>>> test.rb:12:in `connect' >>>>>>>> test.rb:12:in `setup' >>>>>>>> >>>>>>>> 32) Error: >>>>>>>> test_xmit_multiple_headers(TestTest): >>>>>>>> NoMethodError: undefined method `close' for nil:NilClass >>>>>>>> test.rb:33:in `teardown' >>>>>>>> >>>>>>>> 16 tests, 0 assertions, 0 failures, 32 errors >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> Any suggestions? >>>>>>>> >>>>>>>> >>>>>>>> bye >>>>>>>> Henry >>>>>>>> >>>>>>>> >>>>>>>> --- original message end ---- >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>> ------------------------------------------------------------------------ >>>> >>>> >>>> >>>>>>>> _______________________________________________ >>>>>>>> RubyWMQ-Misc mailing list >>>>>>>> RubyWMQ-Misc at rubyforge.org >>>>>>>> http://rubyforge.org/mailman/listinfo/rubywmq-misc >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> _______________________________________________ >>>>>>> RubyWMQ-Misc mailing list >>>>>>> RubyWMQ-Misc at rubyforge.org >>>>>>> http://rubyforge.org/mailman/listinfo/rubywmq-misc >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>> >>>> >>