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
Expand all | Collapse all

Unable to run the mqlicense file with root user

  • 1.  Unable to run the mqlicense file with root user

    Posted Sun December 10, 2023 04:05 AM

    Unable to run the mqlicense file with root user  with the below error .

    ERROR: Unable to execute the Java binary located on the filesystem at:
           "./lap/jre/ibm-java-x86_64-80/jre/bin/java"
           Check that the installation media is suitable for the system
           architecture, and check that the permissions of the installation files
           match that contained within the original installation media.
     
     
    ERROR:  You cannot use IBM MQ unless the license
            agreement can be accepted.
     
            If the error was caused by a display problem,
            read the license agreement file  (Lic_xx.txt, where
            xx represents your language ) in the 'licenses'
            directory of the installation media, and then
            run the following command:
     
                mqlicense.sh -accept
     
            Only use this command if you accept the license
            agreement.
     
            For other errors, contact your IBM support centre.
     
    [root@ip-10-235-65-44 MQServer]# ls -l ./lap/jre/ibm-java-x86_64-80/jre/bin/java
    -rwxr-xr-x. 1 bin bin 8408 Dec 14  2022 ./lap/jre/ibm-java-x86_64-80/jre/bin/java
    [root@ip-10-235-65-44 MQServer]# ./lap/jre/ibm-java-x86_64-80/jre/bin/java
    -bash: ./lap/jre/ibm-java-x86_64-80/jre/bin/java: Permission denied


    ------------------------------
    sarath kumar
    ------------------------------


  • 2.  RE: Unable to run the mqlicense file with root user

    Posted Mon December 11, 2023 07:35 PM

    It sounds like you are trying to run mqlicense.sh script in GUI (X-window) mode but you are on a headless server.

    I would suggest you read the MQ Knowledge Center on using mqlicense.sh script here. I'd use either text mode or simply straight-up accept the license.

    later

    Roger



    ------------------------------
    Roger Lacroix
    CTO
    Capitalware Inc.
    London ON Canada
    https://capitalware.com
    ------------------------------