Author |
Message
|
dyevin |
Posted: Wed Jan 05, 2011 6:45 am Post subject: ma01 library error |
|
|
Novice
Joined: 27 May 2003 Posts: 11 Location: Phoenix, Arizona
|
I'm trying to use support pack ma01 in AIX to put a message to a queue, with the source being an AIX file. My queue manager is running. My command, run as an mq user, looks like this:
q -oDPSBKQMT1/GSP.ICE.MESSAGES -F/icemsg_rap3
I receive the following response, with a RC of 8:
Error loading MQ library
I couldn't find this error addressed in either the ma01 README or by searching this forum. Can anyone suggest what I'm overlooking? Thanks.
Don |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jan 05, 2011 6:50 am Post subject: Re: ma01 library error |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
dyevin wrote: |
Can anyone suggest what I'm overlooking? |
The machine on which you're running only has client installed?
The machine on which you're running has the PATH set curisously?
The machine is 32/64bit and the q app is the other version?
Other problems are undoubtably possible. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
dyevin |
Posted: Wed Jan 05, 2011 7:08 am Post subject: |
|
|
Novice
Joined: 27 May 2003 Posts: 11 Location: Phoenix, Arizona
|
Vitor:
Thanks for the quick response. The AIX machine where I'm running the q command has both the MQ version 6 client and server installed. Both the CPU and the kernel are 64-bit. If I include the -l parm in the command, I get RC 8 for the mqic32 and mqic values, and RC 2 for the mqm value. I'm not sure what you mean about the PATH. Does it need to contain a particular directory? Thanks.
Don |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jan 05, 2011 7:48 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
dyevin wrote: |
If I include the -l parm in the command, I get RC 8 for the mqic32 and mqic values, and RC 2 for the mqm value. |
That "2" sounds like a binding connection working & throwing out a separate reason code (2 is a failed completion code from WMQ & an odd choice from an app). I don't remember sitting here where q reports reason codes to but I'm sure someone else does.
dyevin wrote: |
I'm not sure what you mean about the PATH. Does it need to contain a particular directory? |
Clearly it needs to contain the /opt/mqm/lib where the server side lives and whereever the client is installed.
Here's a question: given that WMQ is installed on this box, where is the queue manager you're trying to use running & what happens if you specify it's name? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
dyevin |
Posted: Wed Jan 05, 2011 1:42 pm Post subject: RESOLVED: ma01 library error |
|
|
Novice
Joined: 27 May 2003 Posts: 11 Location: Phoenix, Arizona
|
I'm not sure why, but running the q program as the root user resolved my problem. The permissions on the program were 777, and the root user didn't have any mq references in its PATH.
Thanks, Vitor, for your suggestions and time.
Don |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jan 05, 2011 1:48 pm Post subject: Re: RESOLVED: ma01 library error |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
dyevin wrote: |
I'm not sure why, but running the q program as the root user resolved my problem. |
That's fairly scary. And normally unnecessary.
Odd. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jan 06, 2011 2:27 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Please don't put enduser software into /usr/mqm/bin.
Please don't confuse permissions on the installed MQ files with permissions on enduser binaries.
If this worked as root and failed as whatever user ran the program in the first place, it's almost certainly because the user in question did not have necessary access to the installed mq files, and not because of any permissions issues on the q program itself. |
|
Back to top |
|
 |
dyevin |
Posted: Thu Jan 06, 2011 12:11 pm Post subject: |
|
|
Novice
Joined: 27 May 2003 Posts: 11 Location: Phoenix, Arizona
|
Thanks for the excellent points, mqjeff.
I didn't believe that the permissions for the q program were a factor, but I included that information in case any potential poster thought it might be relevant.
I've never encountered a problem performing any MQ function when logged in as the user in question (mqmuser), which is why I couldn't understand receiving the error response. I reviewed the files in /usr/mqm/bin and couldn't find an obvious problem. Since I couldn't open a PMR on support pack ma01, I decided to bounce my issue past this forum. I appreciate the suggestions and cautions from you and Vitor.
Don |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Jan 06, 2011 12:15 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
The error about Unable to Load MQ Library means that something was wrong with the permissions.
OR it could simply be that the binary you have was built as a 64-bit binary and you had 32-bit libraries on the path, or vice versa.
Logging in as root may have resolved the second case because you did NOT have /usr/mqm/bin or etc. on the PATH of the root user. |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Thu Jan 06, 2011 10:47 pm Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
You should also check the library path. On AIX this is set via the variable LIBPATH (LD_LIBRARY_PATH on other Unixes). LIBPATH should point to the 64 bit libraries. _________________ Regards
Hubert |
|
Back to top |
|
 |
|