Author |
Message
|
holycow02 |
Posted: Wed Feb 10, 2010 8:51 am Post subject: MB 6.1 Linux issues - mqsiprofile |
|
|
 Novice
Joined: 10 Feb 2010 Posts: 21
|
Hello all,
I am running MB 6.1.0.2 on RedHat v5.4 x86-64.
Running the mqsiprofile command from the $MQSI_PATH/bin directory provides the correct output of the version number and the install path.
Now when I run mqsicreatebroker from the bin directory, I get this error:
./mqsicreatebroker: error while loading shared libraries: libImbCmdLib64.so: cannot open shared object file: No such file or directory
I went back and looked at the mqsiprofile LD_LIBRARY_PATH and it shows the correct library paths needed. 'ldd -v mqsicreatebroker' shows a whole bunch of missing dependencies, all of which are in the same library.
Adding 'echo $LD_LIBRARY_PATH' to the bottom of the mqsiprofile script and running it again shows the correct paths. Running ./mqsilist provides the same error as as mqsicreatebroker.
Now if I add the ./mqsilist to the bottom of the mqsiprofile script, mqsilist runs correct, outputting 'Successful command completion'.
It seems to me and my team that the LD_LIBRARY_PATH is not being persisted outside of mqsiprofile. echoing LD_LIBRARY_PATH outside of the script returns a blank line.
Does anyone have any idea why it is doing this? Is there an issue with the profile?
Thanks. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Feb 10, 2010 9:08 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You're executing the mqsiprofile, rather than sourcing it.
use ". /opt/IBM/mqsi/6.1/bin/mqsiprofile".
Note that is dot-space-slash, not dot-slash. |
|
Back to top |
|
 |
holycow02 |
Posted: Wed Feb 10, 2010 9:14 am Post subject: |
|
|
 Novice
Joined: 10 Feb 2010 Posts: 21
|
mqjeff wrote: |
You're executing the mqsiprofile, rather than sourcing it.
use ". /opt/IBM/mqsi/6.1/bin/mqsiprofile".
Note that is dot-space-slash, not dot-slash. |
uhhhh wow. That worked. I feel like a fool.
Thanks for all your help though  |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Feb 10, 2010 9:26 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
holycow02 wrote: |
uhhhh wow. That worked. I feel like a fool.
|
Nah, Robin would say "Holy Cow Batman!"  _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Feb 10, 2010 9:32 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
holycow02 wrote: |
I feel like a fool. |
But you can never find one on the menu can you?
Don't worry - you'll get used to the feeling after first 40 or 50 times. I did.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
holycow02 |
Posted: Wed Feb 10, 2010 9:39 am Post subject: |
|
|
 Novice
Joined: 10 Feb 2010 Posts: 21
|
Vitor wrote: |
holycow02 wrote: |
I feel like a fool. |
But you can never find one on the menu can you?
Don't worry - you'll get used to the feeling after first 40 or 50 times. I did.  |
yea there has to be a first time for there to be a last time  |
|
Back to top |
|
 |
Vitor |
Posted: Wed Feb 10, 2010 9:53 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
holycow02 wrote: |
yea there has to be a first time for there to be a last time  |
There's a last time? I'm filled with new hope I might one day reach it  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|