Posted: Tue Feb 10, 2009 6:25 am Post subject: Problem running Q program (MA01)
Knight
Joined: 25 Aug 2006 Posts: 589
I tried to run Q program (supportpac MA01) on AIX MQV6. I logon as mqm . I go the error
Could not load program ./q:
Dependent module libmqm.a(libmqm.o) could not be loaded.
Could not load module libmqm.a(libmqm.o).
System error: No such file or directory
I checked that libmqm.a is in /usr/mqm/bin. I logon as mqm and I can also run amqsput with no problem.
I am not an AIX admin person. ANy idea where I should start looking?
Posted: Tue Feb 10, 2009 6:31 am Post subject: Re: Problem running Q program (MA01)
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
KIT_INC wrote:
I am not an AIX admin person. ANy idea where I should start looking?
Depends. Coffee machine probably; most admins go there.
Seriously, if you can't find an AIX admin, check the PATH and the permissions first off.
IIRC the sample code is statically linked with the relevant lib so wouldn't suffer with this problem. _________________ Honesty is the best policy.
Insanity is the best defence.
Posted: Wed Feb 11, 2009 10:30 am Post subject: Re: Problem running Q program (MA01)
Master
Joined: 10 Jul 2002 Posts: 263 Location: read my name
KIT_INC wrote:
I tried to run Q program (supportpac MA01) on AIX MQV6. I logon as mqm . I go the error
Could not load program ./q:
Dependent module libmqm.a(libmqm.o) could not be loaded.
Could not load module libmqm.a(libmqm.o).
System error: No such file or directory
I checked that libmqm.a is in /usr/mqm/bin. I logon as mqm and I can also run amqsput with no problem.
I am not an AIX admin person. ANy idea where I should start looking?
It should definitely not be in /usr/mqm/bin.
Provide the output of PATH (ie. echo $PATH). It should pickup libmqm.a from /usr/lib which should be a symlink to /usr/mqm/lib.
$ whereis libmqm.a
libmqm: /usr/lib/libmqm.a
$ ls -la /usr/lib/libmqm.a
lrwxrwxrwx 1 mqm mqm 21 May 15 2008 /usr/lib/libmqm.a -> /usr/mqm/lib/libmqm.a
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum