IBM MQ

Expand all | Collapse all

IBM MQ MacOS Toolkit Missing Shared Library

  • 1.  IBM MQ MacOS Toolkit Missing Shared Library

    Posted 28 days ago
    I'm trying to develop a simple app using the mq-container and the MQ MacOS Toolkit. Running dmpmqcfg in my terminal results in  the message 
    AMQ8670E: Loading of server module 'libmqds_r.dylib' failed.
    In searching for this file it is nowhere to be found. Is there another download? Is the build incomplete?

    ------------------------------
    Will Schneider
    ------------------------------


  • 2.  RE: IBM MQ MacOS Toolkit Missing Shared Library

    Posted 28 days ago
    dmpmqcfg needs to connect to a queue manager. If it is running on a Mac then that queue manager must be on another machine. So you should be telling dmpmqcfg to run as a client.

    Can you show us your invocation of dmpmqcfg?

    Cheers,
    Morag

    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    ------------------------------



  • 3.  RE: IBM MQ MacOS Toolkit Missing Shared Library

    Posted 28 days ago

    My MQ is running in a local Docker. I'd like to get a connection failure but the message tells me the libmqds_r.dylib is not found and there is no such file on my machine.

    I'm simply executing dmpmqcfg -u admin.



    ------------------------------
    Will Schneider
    ------------------------------



  • 4.  RE: IBM MQ MacOS Toolkit Missing Shared Library

    Posted 28 days ago

    My understand of MQ running in a Docker environment is that you have to connect to it using a client connection not a local bindings connection. If so, you should be telling dmpmqcfg to connect to it using a client connection as well. Take a look at the -c flag, and fill in the require channel definition if you are not using a CCDT.

    Since there is no queue manager on Mac OS, the MQ MacOS Toolkit does not contain libraries to make a local bindings connection, and this is what the error message is telling you. You have attempted to make a local bindings connection, but the library for such does not exist on MacOS. You need to instead use a client connection into your Docker "machine".

    Cheers,
    Morag



    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    ------------------------------



  • 5.  RE: IBM MQ MacOS Toolkit Missing Shared Library

    Posted 28 days ago
    The form of your dmpmqcfg command is wrong. As Morag said you need to use the client connection form:
    # have a suitably define environment variable(s)
    # MQSERVER, MQCCDTURL, MQCHLLIB & MQCHLTAB, etc...
    # or equivalent in mqclient.ini
    dmpmqcfg -m qmname -t all -x all -o 1line -c
    
    #or define it on the fly (using mqccred for user passwd)
    dmpmqcfg -m qmname -t all -x all -o 1line -c "define chl(chlname) chltype(clntconn) conname('host(port)') scyexit('mqccred(ChlExit)')"​
    Enjoy

    ------------------------------
    Francois Brandelik
    ------------------------------



  • 6.  RE: IBM MQ MacOS Toolkit Missing Shared Library

    Posted 27 days ago
    Thanks @Morag Hughson and @Francois Brandelik! This is my first foray into IBM MQ in some years. I appreciate the help. It makes sense now that you explain it but that seems a really obscure way of telling me the local connection binding is failing.
    ​​

    ------------------------------
    Will Schneider
    ------------------------------



  • 7.  RE: IBM MQ MacOS Toolkit Missing Shared Library

    Posted 27 days ago

    The MacOS unsupported as-is package is a client only build.

    You would see the same if you downloaded and installed any client only package.

    You're right though, they could have a better message - you could PMR or RFE that thought to officially request such.

    Cheers,
    Morag



    ------------------------------
    Morag Hughson
    MQ Technical Education Specialist
    MQGem Software Limited
    ------------------------------



  • 8.  RE: IBM MQ MacOS Toolkit Missing Shared Library

    Posted 25 days ago
    @Will Schneider Thanks for raising this and apologies that the error message was confusing. As @Francois Brandelik and @Morag Hughson have correctly identified, this library is not packaged with the IBM MQ MacOS Toolkit, but ​​​client mode connections are still possible. I have raised an internal issue to see if we can improve the error message and make it clearer regarding use of the -c flag. 

    Thank you for your patience in figuring it out and hope the MacOS Toolkit has been an overall positive experience.

    Best regards

    Richard

    ------------------------------
    RICHARD COPPEN
    ------------------------------