Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Can't Install CPLEX on Mac OS X 10.12

    Posted 07/18/17 05:51 PM

    Originally posted by: QiuFeng


    Hi Guys, 

               I'm trying to install CPLEX 12.7.1 on my MacBook Pro with touch bar installed with OS X 10.12. I made sure that java is installed and "java -version" works fine

     

    QQs-MacBook-Pro:Downloads QiuFeng$ java -version

    java version "1.8.0_141"

    Java(TM) SE Runtime Environment (build 1.8.0_141-b15)

    Java HotSpot(TM) 64-Bit Server VM (build 25.141-b15, mixed mode)

     

     

     

          However, when I executed the bin file, it says Java is not installed. Any thought on this? I appreciate your inputs. I remember the installation several years ago was quite easy. I guess the installation file didn't update to the latest os environment. 

          By the way, I looked around here but previous posts on this matter seemed not very help

     

     

     

     

    QQs-MacBook-Pro:Downloads QiuFeng$ ./cplex_studio12.7.1.osx.bin 

    Preparing to install

    Extracting the installation resources from the installer archive...

    Configuring the installer for this system's environment...

     

    Launching installer...

     

    No Java runtime present, requesting install.

     

     

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Can't Install CPLEX on Mac OS X 10.12

    Posted 07/18/17 06:11 PM

    I'm not sure if it will help, but did you see this thread? As you have already done, it suggested that you make sure "java -version" works. It might be worth trying the other suggestion, though, to set LAX_VM. For convenience:

     

    <installer> LAX_VM <path/to/java>

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Can't Install CPLEX on Mac OS X 10.12

    Posted 07/18/17 06:55 PM

    Originally posted by: QiuFeng


    Thank you rkersh, the LAX_VM things seem to be helpful. But there was another error, which seems to be ever rarer:

     

    QQs-MacBook-Pro:Downloads FengQiu$ ./cplex_studio12.7.1.osx.bin LAX_VM /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home

    Preparing to install

    Extracting the installation resources from the installer archive...

    Configuring the installer for this system's environment...

     

    Launching installer...

     

    ./cplex_studio12.7.1.osx.bin: line 3801: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home: is a directory

    ./cplex_studio12.7.1.osx.bin: line 3801: exec: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home: cannot execute: Undefined error: 0

     

    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Can't Install CPLEX on Mac OS X 10.12

    Posted 07/18/17 07:18 PM

    Sorry, I should have been more explicit above. I believe you need to set LAX_VM to the fully qualified path to the java executable. For example, on an OSX system I have access to, if I run "which java" at the command line, I get "/usr/bin/java". So, I'd use the following command (not actually tested, just an example):

     

    $ ./cplex_studio12.7.1.osx.bin LAX_VM /usr/bin/java

     

    Instead of "/usr/bin/java", you'd use the path that you get on your system.

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: Can't Install CPLEX on Mac OS X 10.12

    Posted 07/19/17 12:42 AM

    Originally posted by: QiuFeng


    Hi rkersh, 

                Thanks for the details. I tried your way, still didn't work. When I ran which java, I got the same path as yours. Then using that info in the installation gave me the same error message:

     

    QQs-MacBook-Pro:Downloads QiuFeng$ which java

    /usr/bin/java

    QQs-MacBook-Pro:Downloads QiuFeng$ ./cplex_studio12.7.1.osx.bin LAX_VM /usr/bin/java

    Preparing to install

    Extracting the installation resources from the installer archive...

    Configuring the installer for this system's environment...

     

    Launching installer...

     

    No Java runtime present, requesting install.


    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: Can't Install CPLEX on Mac OS X 10.12

    Posted 07/19/17 05:41 AM

    Originally posted by: cgefflot


    Hi

    Could it be issues with libs ? Could you test with a jdk instead , following install instructions here  ?

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 7.  Re: Can't Install CPLEX on Mac OS X 10.12

    Posted 07/19/17 02:59 PM

    Originally posted by: QiuFeng


    Hi Christophe, 

                     It works! It looks that the java I installed is only a subset of JDK. Thank you!


    #CPLEXOptimizers
    #DecisionOptimization


  • 8.  Re: Can't Install CPLEX on Mac OS X 10.12

    Posted 11/21/17 05:28 PM

    Originally posted by: tongtongrlv


    HI, COULD YOU OPEN THE CPELX NORMALLY? I CAN ONLY ACCESS CPLEX USING  TERMINAL OF MAC, IT IS SO STRANGE...


    #CPLEXOptimizers
    #DecisionOptimization


  • 9.  Re: Can't Install CPLEX on Mac OS X 10.12

    Posted 11/22/17 01:44 AM

    This has been discussed many times in the Forum here. On Mac there is no IDE at the moment. This will change in the upcoming 12.8 version, see here.


    #CPLEXOptimizers
    #DecisionOptimization


  • 10.  Re: Can't Install CPLEX on Mac OS X 10.12

    Posted 11/23/17 11:58 AM

    Originally posted by: tongtongrlv


    Thank you for your help. Have a good Thanksgiving Day!


    #CPLEXOptimizers
    #DecisionOptimization