Author |
Message
|
zpat |
Posted: Tue Sep 05, 2017 1:42 am Post subject: QLOAD v.19 failing Error loading MQAPI DLL |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Linux x86-64. MQ 7.1.0.7
I am trying to run QLOAD 1.9 and it gets this error
Quote: |
./qload -m xxxx -i yyyyy -f zzzz
QLOAD Program by Paul Clarke [ V1.9 Build:Jun 26 2012 ]
Error loading MQAPI DLL RC(11)
|
I've tried . setmqenv -s
The MQ install is primary.
From another thread - Paul Clarke said:
Quote: |
The error message "Error Loading MQ library RC(11)" is merely QLOAD saying it can't find your MQ libarary.
You should be able to get it working by setting environment variables MQIC_DLL_PATH or MQM_DLL_PATH to the location of your MQ libraries.
You can tell QLOAD to print out what it's searching for by setting environment variable MQACCESS_DEBUG to anything at all. |
I tried setting MQM_DLL_PATH to /opt/IBMMQ/MQ71 (my full install path)
and also to /opt/IBMMQ/MQ71/lib and to lib64
Still no joy.
Quote: |
QLOAD Program by Paul Clarke [ V1.9 Build:Jun 26 2012 ]
Loading '/opt/IBMMQ/MQ71/lib64/mqm'
Load failed /opt/IBMMQ/MQ71/lib64/mqm: cannot open shared object file: No such file or directory
Error loading MQAPI DLL mqm RC(11)
|
It seems to insist that "mqm" is part of the file path, but it isn't in my case.
Can I copy some MQ DLL files to the current directory? Which ones?
I need a solution that doesn't involve github as we don't have access to it. _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
PaulClarke |
Posted: Tue Sep 05, 2017 3:19 am Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
Try setting an environment variable MQACCCESS_DEBUG (to anything) and run it again to see what it is trying to load.
I think QLOAD 1.9 was 32 bit so I would expect you to set MQM_DLL_PATH=/opt/IBMMQ/MQ71/lib (assuming that libmqm.so is in there)
Cheers,
Paul. _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
PaulClarke |
Posted: Tue Sep 05, 2017 3:43 am Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
I don't understand why the code is not replacing mqm with libmqm.so
What happens if you make it more explicit and add a -l libmqm.so parameter to your command ? _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
zpat |
Posted: Tue Sep 05, 2017 4:24 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
That's fixed it - Thanks!
Quote: |
export MQM_DLL_PATH=/opt/IBMMQ/MQ71/lib64
./qload -m xxxx -i yyyy -f zzz -l libmqm.so
QLOAD Program by Paul Clarke [ V1.9 Build:Jun 26 2012 ]
Loading '/opt/IBMMQ/MQ71/lib64/libmqm.so'
Read - Files: 0 Messages: 0 Bytes: 0
Written - Files: 0 Messages: 0 Bytes: 0
|
Incidentally, it didn't work with 32 bit.
Quote: |
Loading '/opt/IBMMQ/MQ71/lib/libmqm.so'
Load failed /opt/IBMMQ/MQ71/lib/libmqm.so: wrong ELF class: ELFCLASS32
Error loading MQAPI DLL RC(11)
|
_________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Sep 05, 2017 4:34 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You might have to do .../lib32/libmqm.so to use 32 bit _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
PaulClarke |
Posted: Tue Sep 05, 2017 11:55 am Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
zpat wrote: |
Quote: |
Loading '/opt/IBMMQ/MQ71/lib/libmqm.so'
Load failed /opt/IBMMQ/MQ71/lib/libmqm.so: wrong ELF class: ELFCLASS32
Error loading MQAPI DLL RC(11)
|
|
Ah Ok. I couldn't remember whether v1.9 was 32bit or 64bit.....I guess we now know
Anyway, can't say I understand why the -l parameter is necessary for you but at least you are working now. If ever you want to try the latest and greatest version of QLOAD then let me know and I'd be happy to send you a trial licence.
Cheers,
Paul. _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
|