Page 1 of 1

MQ plug-in issues (missing files)

Posted: Mon Apr 28, 2008 4:10 am
by yaminids
Hello friends,

I am trying to configure MQ on a recently built server. I got the following error while trying to read a message from the queue for the first time

ds_loadlibrary: error in dlopen of mqs.so - /opt/Ascential/DataStage/DSEngine/lib/mqs.so: undefined symbol: _ZTI6ImqItm

The following is the output from the server

ldd /opt/Ascential/DataStage/DSEngine/lib/mqs.so
ldd: warning: you do not have execution permission for `/opt/Ascential/DataStage/DSEngine/lib/mqs.so'
libmqm.so => /usr/lib/libmqm.so (0x00e79000)
libmqmcs.so => /usr/lib/libmqmcs.so (0x00896000)
libimqb23gl_r.so => /usr/lib/libimqb23gl_r.so (0x00111000)
libimqs23gl_r.so => /usr/lib/libimqs23gl_r.so (0x00b39000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00a6c000)
libdl.so.2 => /lib/libdl.so.2 (0x00597000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x00130000)
libm.so.6 => /lib/tls/libm.so.6 (0x001e3000)
libc.so.6 => /lib/tls/libc.so.6 (0x00205000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0033e000)
libmqz.so => /opt/mqm/lib/libmqz.so (0x00503000)
libmqmzse.so => /opt/mqm/lib/libmqmzse.so (0x00347000)
libmqmcs_r.so => /opt/mqm/lib/libmqmcs_r.so (0x00349000)
libstdc++.so.3 => not found
libmqm_r.so => /opt/mqm/lib/libmqm_r.so (0x006ca000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00d7a000)
libstdc++.so.3 => not found
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00d47000)
libmqz_r.so => /opt/mqm/lib/libmqz_r.so (0x00b84000)

Are there any missing links on the server? Any help would be highly appreciated

Thanks in advance
Yamini

Posted: Mon Apr 28, 2008 12:41 pm
by edward_m
Did you install MQ server on your datastage server??

As per documentation..The MQ Series Client-only option is unsupported i.e you need to install MQ Series server on your etl server

Posted: Mon Apr 28, 2008 2:39 pm
by yaminids
We used to run the jobs with just the client before. I am trying to configure a new server but the jobs fail with the above mentioned error

Posted: Mon Apr 28, 2008 2:56 pm
by lstsaur
For version 7.x, you must have both MQ server and MQ client installed on the same server as the DS server resides. No way you can run MQ job with the client only.

Posted: Mon Apr 28, 2008 3:00 pm
by yaminids
All we did previously was install the MQ plug-in we got from IBM. Does the plug-in come with both server and client?

Posted: Mon Apr 28, 2008 3:15 pm
by yaminids
I just came to know from our MQ team that MQ server has been installed on the DataStage server.

Posted: Tue Apr 29, 2008 1:19 am
by yaminids
We contacted IBM support and they asked us to execute the following

1/ You need to create libstdc++ link as:
ln -s /usr/lib/libstdc++-2-libc6.1-1-2.9.0.so /usr/lib/libstdc++-libc6.1-2.so.3

2/ Could you please add the following to the DSENV file as the runtime libraries must be referenced:
EXPORT LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/mqm/lib2.95.2:/usr/lib

Then stop the DSEngine, source the dsenv file again and then start up that DSEngine.

3/ MQ Series 295.2 library link must be created:
ln -s /opt/mqm/lib/2.95.2/libimqb23gl.so /opt/mqm/lib/libimqb23gl.so
ln -s /opt/mqm/lib/2.l95.2/libmqb23gl_r.so /opt/mqm/lib/libimqb23gl_r.so
ln -s /opt/mqm/lib/2.95.2/libimqs23gl.so /opt/mqm/lib/libimqs23gl.so
ln -s /opt/mqm/lib/2.95.2/libimqs23gl-r.so /opt/mqm/lib/libimqb23gl-r.so

The problem is that the job is still failing with the same error.

Can someone please help me resolve this issue?

Thanks in advance
Yamini

Posted: Tue Apr 29, 2008 6:55 pm
by yaminids
The problem was with the missing links. We solve the issue by executing the following statements

ln -s /opt/mqm/lib/3.2/libimqb23gl_r.so /opt/mqm/lib/ibimqb23gl_r.so
ln -s /opt/mqm/lib/3.2/libimqb23gl.so /opt/mqm/lib/libimqb23gl.so
ln -s /opt/mqm/lib/3.2/libimqc23gl_r.so /opt/mqm/lib/libimqc23gl_r.so
ln -s /opt/mqm/lib/3.2/libimqc23gl.so /opt/mqm/lib/libimqc23gl.so
ln -s /opt/mqm/lib/3.2/libimqs23gl_r.so /opt/mqm/lib/libimqs23gl_r.so
ln -s /opt/mqm/lib/3.2/libimqs23gl.so /opt/mqm/lib/libimqs23gl.so