sandy105 has asked for the wisdom of the Perl Monks concerning the following question:

We have PERL module –MQSeries (IBM Message Queue) installed in the server. But when we try to compile a script which uses this module, it throws following error

Can't load '/apps/lib/site_perl/5.10.1/aix-thread-multi/auto/MQClient/MQSeries/MQSeries.so' for module MQClient::MQSeries: 0509-022 Cannot load module /apps/lib/site_perl/5.10.1/aix-thread-multi/auto/MQClient/MQSeries/MQSeries.so.

• Dependent module libmqic_r.a(mqic_r.o) could not be loaded.

• Cannot load module libmqic_r.a(mqic_r.o).

• System error: A file or directory in the path name does not exist.

• Cannot load module /apps/lib/site_perl/5.10.1/aix-thread-multi/auto/MQClient/MQSeries/MQSeries.so.

can somebody help me out , whats exactly the problem over here

Replies are listed 'Best First'.
Re: error due to a module
by choroba (Cardinal) on Nov 06, 2014 at 11:23 UTC
    How did you install the module? It seems some C libraries are missing.
    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
Re: error due to a module
by perlron (Pilgrim) on Nov 06, 2014 at 11:24 UTC
    Hi
    What appears obvious is that the perl script does not compile because it cannot find the dependent shared object modules on the server.
    Question Has this script compiled / ran before on any environment for you or is this the first time u are using it?
    At best it is a path issue but looking at the further errors with object modules, it seems unlikely, and they could be not present at all on your server.
    Check MQSeries. You might have to compile the binaries using gcc or generate the shared objects mentioned above, using whatever means mentioned in you app programmming guide. I would advise to first test on a sandbox environment and dont compile on anything remotely important as the results after compiling could very well be unpredictable or even bring your environment down In other words, if you have not made such changes before, please give it to an expert who knows the technical challenges of working with MQSeries
    Please note as mentioned in the meta docs, the actual steps to solve vary from environment to environment.

    The temporal difficulty with perl is u need to know C well to know the awesome.else u just keep *using* it and writing inefficient code

      the script used to work on our old server however i dont know if its lib path issues here or the module is not instaled / has to be reinstalled . i have been working always in java/windows env so all this perl/unix is a lil cumbersome for me. i am still learning perl shell scripting ,by either coding new stuff or modifying old code which is from where i picked up lots of new techniques and concepts.

        Hi Sandy
        You will have to put in the initial effort to understand the unix environment, but it will pay of in the long term is my advise, and you will have an equally stable(if not more resilent) server installation with your new technology environment.
        Do go through the MQseries App development guide for your environment and check on linux forums about compiling modules. For anything perl related PM is your friend.

        The temporal difficulty with perl is u need to know C well to know the awesome.else u just keep *using* it and writing inefficient code
Re: error due to a module
by Anonymous Monk on Nov 06, 2014 at 11:32 UTC