MQ

MQ

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Installling IBM MQ MacOS Toolkit on MacBook Pro

    Posted Fri February 07, 2020 04:53 PM
    I was following the instructions and ran into a roadblock at the step where I needed to add the /bin and /samp/bin libraries to the /etc/paths file. The file is ROOT access only and I don't have ROOT access. HELP@IBM was of no help. They sent me to the general IBM Developer support page which was worthless. Does anyone have experience in installing this toolkit and maybe a way around the ROOT access problem

    ------------------------------
    Sharon Stubblebine
    IBM MQ for z/OS and IBM i Support Services
    St. Petersburg FL
    1-720-349-9285
    sstubble@us.ibm.com
    ------------------------------


  • 2.  RE: Installling IBM MQ MacOS Toolkit on MacBook Pro

    Posted Mon February 10, 2020 01:04 AM
    Hi Sharon,

    Have you tried, this not going your way to set them up as symlinks?
    My understanding is that you add them to the /etc/paths so that you don't have to give the full path to the binaries.
    Try as well and source the setmqenv.sh file.
    Either of those should get you going. Enjoy

    ------------------------------
    FJ Brandelik
    Websphere Architect
    Information Design Inc
    Madison CT
    ------------------------------



  • 3.  RE: Installling IBM MQ MacOS Toolkit on MacBook Pro

    Posted Mon February 10, 2020 10:06 AM
    Have you tried to update /etc/paths with sudo?
    eg. From a terminal

    sudo vi /etc/paths

    or for a more user friendly editor

    sudo open -e /etc/paths


    ------------------------------
    Soheel Chughtai
    ------------------------------



  • 4.  RE: Installling IBM MQ MacOS Toolkit on MacBook Pro

    Posted Mon February 10, 2020 11:17 AM
    Edited by Mohamed Najih Mon February 10, 2020 11:18 AM

    I tried the following alternative way and it worked:

    1- Open a terminal and switch to the directory 'Applications/Utilites'

    2- Run the following command:
    touch ~/.bash_profile; open ~/.bash_profile

    This will open the .bash_profile file in Text Edit (the default text editor included on your system). The file allows you to customize the environment your user runs in.

    3- Add the following line to the end of the file adding whatever additional directory you want in your path:

    export PATH="<install location>/IBM-MQ-Toolkit-Mac-x64-9.1.1.0/bin:<install location>/IBM-MQ-Toolkit-Mac-x64-9.1.1.0/samp/bin:$PATH"
    In mine, I added the following exact line:
    export PATH="/Applications/IBMMQMacOSToolkitForDevelopers/bin:/Applications/IBMMQMacOSToolkitForDevelopers/samp/bin:$PATH"

    4- Save the .bash_profile file and Quit (Command + Q) Text Edit.

    5- Force the .bash_profile to execute. This loads the values immediately without having to reboot. In your Terminal window, run the following command.

    source ~/.bash_profile



    ------------------------------
    Mohamed Najih 
    Advisory Software Engineer
    IBM
    9192541614
    ------------------------------



  • 5.  RE: Installling IBM MQ MacOS Toolkit on MacBook Pro

    Posted Mon February 10, 2020 11:49 AM
    I followed the instructions and it worked great, until I restarted my terminal session. When I issued the source ~/.bash_profile command again then the dspmqver command worked. At least this is easier than issuing
    export PATH=$PATH:/Applications/IBM-MQ-Client/bin:/Applications/IBM-MQ-Client/same/bin everytime I start my terminal session. Thanks for the help. I'm on to the next steps of installing eclipse and MQ Explorer.
     
    Sharon A. Stubblebine
    IBM Cloud and Cognitive Software, IBM MQ Support z/OS & iSeries Support
    +1-727-254-6701 Mobile
    +1-720-349-9285 Office
    sstubble@us.ibm.com

    IBM Services






  • 6.  RE: Installling IBM MQ MacOS Toolkit on MacBook Pro

    Posted Mon February 10, 2020 11:27 AM
    You should be able to use sudo to update /etc/paths 
    You will need to open up a terminal / command line, but you can then issue

    sudo vi  /etc/paths

    Or if you want a more user friendly editor

    sudo open -e /etc/paths

    ------------------------------
    Soheel Chughtai
    ------------------------------



  • 7.  RE: Installling IBM MQ MacOS Toolkit on MacBook Pro

    Posted Mon February 10, 2020 01:48 PM
    Hi Soheel,

    Thanks, That did the trick. I was able to add the two directories to my /etc/paths file even though I don't have ROOT. Now when I start my terminal session and issue the dspmqver command the command is found and executed.

    Now for my next roadblock. I've downloaded and installed eclipse. I followed the instructions for installing MQ Explorer and I don't see it when I start Eclipse. I tried restarting Eclipse and that didn't make any difference. I tried re-installing MQ Explorer and that failed with a message that it was already installed. Any suggestions?

    Thanks! Sharon

    ------------------------------
    Sharon Stubblebine
    Software Engineer
    IBM
    St. Petersburg FL
    1-720-349-9285
    ------------------------------



  • 8.  RE: Installling IBM MQ MacOS Toolkit on MacBook Pro

    Posted Mon February 10, 2020 02:40 PM
    Thanks to everyone who helped me get the IBM MQ MacOS Toolkit installed. I managed to get past my last roadblock. I wasn't familiar with the MQ Explorer Navigator, only the MQ Explorer under Windows. It took me a bit of hunting to find that I had to go to "Show View" and select "MQ Explorer - Navigator" to be able to see it on the Eclipse workspace. Then with a little more playing around I was able to make the WMQ Explorer Tests Data and IBM MQ Queue Managers Data views switch places.

    ------------------------------
    Sharon Stubblebine
    Software Engineer
    IBM
    St. Petersburg FL
    1-720-349-9285
    ------------------------------