Author |
Message
|
pintoo |
Posted: Thu Apr 05, 2007 7:20 am Post subject: MB not working on AIX: Dependent module libImbCmdLib.a(libIm |
|
|
Novice
Joined: 25 Sep 2006 Posts: 15 Location: New Delhi (India)
|
Hi,
We have installed the MB 6.0.0.3 on AIX 5.3 with maintenance Level 3.
When we are trying to run any of the MB specific command we are getting the following error:
# ./mqsiservice -v
exec(): 0509-036 Cannot load program ./mqsiservice because of the following errors:
0509-150 Dependent module libImbCmdLib.a(libImbCmdLib.a.so) could not be loaded.
0509-022 Cannot load module libImbCmdLib.a(libImbCmdLib.a.so).
0509-026 System error: A file or directory in the path name does not exist.
We have MQ 6.0 installed on the same server and is working fine. Also we have DB2 8.2.4.2 and is working fine.
Please provide some pointers regarding this.
Thanks in advance.
Amit Kanodia
Last edited by pintoo on Thu Apr 05, 2007 7:23 am; edited 1 time in total |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Apr 05, 2007 7:22 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Did you follow all the instructions in the Info Center for configuring a command environment before attempting to run MQSI commands? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
pintoo |
Posted: Thu Apr 05, 2007 10:38 pm Post subject: |
|
|
Novice
Joined: 25 Sep 2006 Posts: 15 Location: New Delhi (India)
|
I am not sure what instructions you are talking about but I suppose that I have follow all the instructions given in the installation guide.
Can you do me a favor, by being more specific?
Thanks & Regards,
Amit Kanodia |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Apr 06, 2007 2:19 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
pintoo |
Posted: Fri Apr 06, 2007 4:26 am Post subject: |
|
|
Novice
Joined: 25 Sep 2006 Posts: 15 Location: New Delhi (India)
|
Dear Jeff,
I have executed the mqsiprofile script and then again tried to run the mqsilist script, just to check if the run time components are working.
But I am again getting the same result. Can you please provide some of the pointers.
Thanks & Regards,
Amit Kanodia |
|
Back to top |
|
 |
pintoo |
Posted: Fri Apr 06, 2007 6:27 am Post subject: |
|
|
Novice
Joined: 25 Sep 2006 Posts: 15 Location: New Delhi (India)
|
Dear Jeff,
I am hereby posting the excerpt of my .profile and the .odbc.ini for your reference. I hope seeing this you can give some idea.
.profile excerpt
Code: |
. /opt/IBM/mqsi/6.0/bin/mqsiprofile
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:/opt/IBM/mqsi/6.0/bin:/home/mqm/sqllib/bin:/app1/install/u
sr/mqm/bin:.
export PATH
export LD_LIBRARY_PATH=/home/mqm/sqllib/lib:/opt/IBM/mqsi/6.0/lib
echo $LD_LIBRARY_PATH
export LANG=C
export DB2INSTANCE=mqm
HOME=/home/mqm
export HOME
if [ -s "$MAIL" ] # This is at Shell startup. In normal
then echo "$MAILMSG" # operation, the Shell checks
fi # periodically.
LIBPATH=/usr/lib:/home/mqm/sqllib/lib:/home/mqm/sqllib/lib64:/usr/opt/db2_08_01/lib:/usr/opt/db2_08_01/lib64
# The following three lines have been added by UDB DB2.
if [ -f /home/mqm/sqllib/db2profile ]; then
. /home/mqm/sqllib/db2profile
fi
#ODBCINI=/home/mqm/odbc.ini
ODBCINI=/var/mqsi/odbc/.odbc.ini
export ODBCINI |
[b].odbc.ini excerpt
Code: |
[ODBC Data Sources]
MQSIBKDB=IBM DB2 ODBC Driver
MYDB=IBM DB2 ODBC Driver
ORACLEDB=DataDirect 5.0 Oracle
SYBASEDB=DataDirect 5.0 Sybase Wire Protocol
SQLSERVERDB=DataDirect 5.0 SQL Server Wire Protocol
INFORMIXDB=IBM Informix ODBC Driver
[MQSIBKDB]
Driver=/usr/opt/db2_08_01/lib/libdb2.a
Description=MQSIBKDB DB2 ODBC Database
Database=MQSIBKDB
[MYDB]
Driver=/usr/opt/db2_08_01/lib/libdb2.a
Description=MYDB DB2 ODBC Database
Database=MYDB
[ORACLEDB]
Driver=<Your install directory>/merant/lib/UKor820.so
Description=DataDirect 5.0 Oracle
EnableDescribeParam=1
OptimizePrepare=1
ServerName=<Your Oracle host>
WorkArounds=536870912
ProcedureRetResults=1
[SYBASEDB]
Driver=<Your install directory>/merant/lib/UKase20.so
Description=DataDirect 5.0 Sybase Wire Protocol
Database=<Your Database Name>
ServerName=<YourServerName>
EnableDescribeParam=1
OptimizePrepare=1
SelectMethod=0
NetworkAddress=<YourServerName,YourPortNumber>
SelectUserName=1
[SQLSERVERDB]
Driver=<Your install directory>/merant/lib/UKmsss20.so
Description=DataDirect 5.0 SQL Server Wire Protocol
Address=<Your SQLServer host>,<your SQLServer server port>
Database=<Your Database Name>
AnsiNPW=Yes
QuotedId=No
[INFORMIXDB]
Driver=<Your Informix Client Directory>/lib/cli/iclit09.sl
Description=IBM Informix ODBC Driver
ServerName=<YourServerName>
Database=<Your Database Name>
[ODBC]
Trace=0
TraceFile=<A Directory with plenty of free space>/odbctrace.out
TraceDll=<Your install directory>/merant/lib/odbctrac.so
InstallDir=<Your install directory>/merant
UseCursorLib=0
IANAAppCodePage=4
UNICODE=UTF-8
[BKDB]
Driver=/usr/opt/db2_08_01/lib/libdb2.a
Description=BKDB broker database
Database=BKDB |
[/b] |
|
Back to top |
|
 |
pintoo |
Posted: Fri Apr 06, 2007 6:51 am Post subject: |
|
|
Novice
Joined: 25 Sep 2006 Posts: 15 Location: New Delhi (India)
|
Dear Jeff,
I have done some more R & D. My findings are below, Can you please give some pointers.
Code: |
$ pwd
/opt/IBM/mqsi/6.0/bin
$ export LD_LIBRARY_PATH=/opt/IBM/mqsi/6.0/lib
$ echo ${LD_LIBRARY_PATH}
/opt/IBM/mqsi/6.0/lib
$ ./mqsilist
exec(): 0509-036 Cannot load program ./mqsilist because of the following errors:
0509-150 Dependent module libicuuc32.0.a could not be loaded.
0509-022 Cannot load module libicuuc32.0.a.
0509-026 System error: A file or directory in the path name does not exist.
$ export LD_LIBRARY_PATH=/opt/IBM/mqsi/6.0/lib:/opt/IBM/mqsi/6.0/xml4c/lib64:/opt/IBM/mqsi/6.0/xml4c/lib
$
$ echo ${LD_LIBRARY_PATH}
/opt/IBM/mqsi/6.0/lib:/opt/IBM/mqsi/6.0/xml4c/lib64:/opt/IBM/mqsi/6.0/xml4c/lib
$
$ ./mqsilist
exec(): 0509-036 Cannot load program ./mqsilist because of the following errors:
0509-150 Dependent module /opt/IBM/mqsi/6.0/xml4c/lib64/libicuuc32.0.a could not be loaded.
0509-103 The module has an invalid magic number.
$
$ cd /opt/IBM/mqsi/6.0/xml4c/lib64
$ ar -t libicuuc32.0.a
ar: 0707-108 File libicuuc32.0.a is not an archive file.
$
|
|
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Apr 06, 2007 6:59 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Okay.
You're getting somewhere, at least.
But you're doing too much with the LIBPATH and LD_LIBRARY_PATH. You should be okay with just sourcing .mqsiprofile as you've done.
You should go back to a .profile that only calls .mqsiprofile and .db2profile.
It wasn't clear from before if you were sourcing .mqsiprofile or not - and just running it doesn't do the trick. But the .profile does actually source it. But then I think the rest of the script starts to muck it up again. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
raghuvanshiankur |
Posted: Fri Apr 06, 2007 7:51 am Post subject: |
|
|
Novice
Joined: 18 Aug 2006 Posts: 23 Location: IN
|
Dear Jeff,
As you rightly said that .profile should source all the paths.
I have call the mqsiprofile and db2profile from the .profile only. But after switching to the user 'mqm', and echoing the LD_LIBRARY_PATH it is not showing the specified path.
So I have specifically specified the lib path and then export the LD_LIBRARY_PATH.
Can you explain this Magic Number problem.
Thanks & Regards,
Amit Kanodia _________________ Ankur ~~ |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Apr 06, 2007 12:43 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Because of the magic number we use 2 different profiles...
a) a profile for MQ Admin
b) a profile for WMB admin
In MQ the WMB admin will bring up the magic # problem depending on the MQ command...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Apr 06, 2007 4:12 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
The "magic number" problem has to do with 32-bit executables and libraries versus 64-bit executables and libraries.
Basically, consider the "magic number" to be the thing that tells the runtime if the binary or library in question is 32-bit or 64-bit.
Obviously, one can't run a 64-bit executable or library in a 32-bit runtime. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
pintoo |
Posted: Sun Apr 08, 2007 9:00 pm Post subject: |
|
|
Novice
Joined: 25 Sep 2006 Posts: 15 Location: New Delhi (India)
|
Dear Jeff,Saper,
We have the 64 - bit processor with AIX 5.3, Also with the seperate profile for MQ & WMB, I am not on the same page as you are talking about.
Can you give me some example for the seperate profile so that I can have a better understanding.
While searching for the Magic number problem, I came across with a solution similar to the problem but for the odbc.so. The solution says that the problem can be resolved by creating the symbolic link between odbc.so and libodbc.so.
http://knowledgebase.datadirect.com/kbase.nsf/supportlink%20online/2469006ss?OpenDocument
But when I tried to see the contents of the libicuuc32.0.a, it gives following message, hence I am unable to follow the same solution given in the above link.
Code: |
$ cd /opt/IBM/mqsi/6.0/xml4c/lib64
$ ar -t libicuuc32.0.a
ar: 0707-108 File libicuuc32.0.a is not an archive file. |
Can you please a bit specific about this?
Thanks in anticipation. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Apr 09, 2007 12:27 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
A separate profile means - use a different user for mq commands than for broker commands.
There are reasons why you wouldn't want to set LD_LIBRARY_PATH for MQ v6, explained a bit in the "Implications of a 64bit qmgr" section of the Quick Beginnings Guide for AIX.
It sounds like, perhaps, your pre-supplied mqsiprofile may not be set up correctly. Or your environment is not set up in the way that the mqsiprofile is set up.
Resolving these kinds of path problems can be tricky - you probably want to open a PMR with IBM support. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
madhurao |
Posted: Mon Apr 09, 2007 12:45 am Post subject: |
|
|
 Novice
Joined: 06 Jan 2005 Posts: 17
|
Quote: |
Resolving these kinds of path problems can be tricky - you probably want to open a PMR with IBM support. |
Any other Solution?(Not PMR with IBM) |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Apr 09, 2007 3:04 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
madhurao wrote: |
Quote: |
Resolving these kinds of path problems can be tricky - you probably want to open a PMR with IBM support. |
Any other Solution?(Not PMR with IBM) |
Create a new user for broker admin. Make it part of mqm and mqbrks groups. Source the mqsiprofile file in the profile...
. ./mqsiprofile (dot space dot slash)
If it does not work after that you will need a PMR.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|