Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

Installing CPLEX 12.2 on a MAC

  • 1.  Installing CPLEX 12.2 on a MAC

    Posted Fri August 06, 2010 05:08 PM

    Originally posted by: Mipper


    Hi, I am completely new to mac and was wondering how to install 12.2 on mac os x. I downloaded the file cplex_studio122.acad.macos.bin from the website, and now I am not sure what to do with it.

    Thanks,
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri August 06, 2010 09:04 PM

    Originally posted by: SystemAdmin


    Have you tried executing the file? It is a shell script that performs installation of the product onto your computer.
    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri August 06, 2010 09:45 PM

    Originally posted by: Mipper


    Thanks! That worked.
    #CPLEXOptimizers
    #DecisionOptimization


  • 4.  Re: Installing CPLEX 12.2 on a MAC

    Posted Thu August 26, 2010 07:36 PM

    Originally posted by: sruangpa


    Hi, I'm trying to get started with CPLEX 12.2 on my Mac as well. Now I have cplex_studio122.prev.macos.bin under my Applications folder. Can you please give instructions step-by-step to run or install it?
    #CPLEXOptimizers
    #DecisionOptimization


  • 5.  Re: Installing CPLEX 12.2 on a MAC

    Posted Thu August 26, 2010 09:40 PM

    Originally posted by: Laci Ladanyi


    As John said, it is a shell script. It should not be in your Applications folder.
    Move it to your home directory, open a terminal (Applications->Utilities->Terminal.app), and in there issue the command '/bin/bash ~/cplex_studio122.prev.macos.bin'.

    --Laci
    #CPLEXOptimizers
    #DecisionOptimization


  • 6.  Re: Installing CPLEX 12.2 on a MAC

    Posted Thu August 26, 2010 10:59 PM

    Originally posted by: sruangpa


    Thank you Laci. I'm new to running scripts and CPLEX. I moved it to home directory /Users/suriya (thought I was installing an application, just curious why it has to be home?) And issued that command (what is it?) I followed the install prompts and that seems to have installed properly.

    igerhardt:CPLEX_Studio_Preview122 suriya$ pwd
    /Users/suriya/ILOG/CPLEX_Studio_Preview122
    igerhardt:CPLEX_Studio_Preview122 suriya$ ls
    IBM_ILOG_CPLEX_Optimization_Studio_Preview_Edition_12.2_InstallLog.log
    README.html
    Uninstall
    concert
    cplex
    cpoptimizer
    doc
    licenses
    properties
    igerhardt:CPLEX_Studio_Preview122 suriya$

    I also wonder what that `igerhardt' is? (sounds like someone's name. but I'm the only user on this computer.) I really appreciate your answering my questions; they are not obvious for me.
    #CPLEXOptimizers
    #DecisionOptimization


  • 7.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri August 27, 2010 02:53 PM

    Originally posted by: Laci Ladanyi


    It is not relevant where you move it. The point is that the file is a compressed archive in a shell script, and when you execute the script (that's what the '/bin/bash ~/cplex_studio122.prev.macos.bin' command does) it unpacks the archive. The only reason I asked you to move it away from your Application folder is that archives don't belong there :-).

    igerhardt: from the look of your output it seems like it is your computer's name. I have no idea who gave it that name...

    What you have installed does not contain an IDE. It has the libraries, headers, everything that's needed for development in C/C++/Java; it has a Matlab and a python interface. Also, it has an interactive binary. If you are in the CPLEX_Studio_Preview122 directory in the terminal then you can start the binary by issuing ./cplex/bin/x86-64_darwin9_gcc4.0/cplex command (or leave out the -64 if you want the 32-bit version). There is built-in help, and you can find the full docs at http://publib.boulder.ibm.com/infocenter/cosinfoc/v12r2/index.jsp

    If you want a gui interface you need to install "IBM ILOG CPLEX Optimization Studio" as well, that contains OPL (it's more than just a gui interface; it's a modeling language and more. you can read the online docs).

    I hope this helps,
    --Laci
    #CPLEXOptimizers
    #DecisionOptimization


  • 8.  Re: Installing CPLEX 12.2 on a MAC

    Posted Mon August 30, 2010 11:15 AM

    Originally posted by: SystemAdmin


    Unfortunately, we do not have the OPL runtime or or the OPL IDE ported on Mac OS X.
    #CPLEXOptimizers
    #DecisionOptimization


  • 9.  Re: Installing CPLEX 12.2 on a MAC

    Posted Tue September 07, 2010 08:31 AM

    Originally posted by: mdiam


    >Unfortunately, we do not have the OPL runtime or or the OPL IDE ported on Mac OS X.

    That's my problem!
    I'm interested by the "oplrun" command line tool for running the opl models (not by
    the opl GUI environment).
    Is there any project to propose opl for the MAC platform?

    What is the future for the OPL language?

    Thank you very much for any reply.
    • Maurice

    #CPLEXOptimizers
    #DecisionOptimization


  • 10.  Re: Installing CPLEX 12.2 on a MAC

    Posted Wed April 06, 2016 06:27 PM

    Originally posted by: SofiaCruzGomes


    This message is from 2010. Is it still valid? I'm trying to install the IBM ILOG CPLEX Optimization Studio V12.6.1 for mac but I'm not able to find the opl IDE. 


    #CPLEXOptimizers
    #DecisionOptimization


  • 11.  Re: Installing CPLEX 12.2 on a MAC

    Posted Thu April 07, 2016 02:27 AM

    Sorry, still no OPL on MAC :-(

    You can vote for the RFE that Alex created here.


    #CPLEXOptimizers
    #DecisionOptimization


  • 12.  Re: Installing CPLEX 12.2 on a MAC

    Posted Thu April 07, 2016 02:51 AM

    Given the number of combinations possible between processors, Operating Systems, compilers, middleware, etc., we have specific information that is not part of the documentation in the product itself. All the details about supported platforms and versions, including what's available where, are described on http://www-01.ibm.com/support/docview.wss?uid=swg27019100. From there, you can choose the correct tab for your version, then the operating system family. This opens a page that has an 'Operating System' tab. In its 'Details' column, the 'View' link will open a page that lists, in the 'Components' tab, all the available components on this platform.

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 13.  Re: Installing CPLEX 12.2 on a MAC

    Posted Mon October 27, 2014 02:14 PM

    Originally posted by: meserret


    After i moved downloaded file to home/username file, opened terminal and entered the command switching 122 by 126 (version i got is trial version but 126) and got the message "no such file and directory". Could you help me to install cplex?


    #CPLEXOptimizers
    #DecisionOptimization


  • 14.  Re: Installing CPLEX 12.2 on a MAC

    Posted Tue October 28, 2014 01:36 AM

    Can you please try to prepend './' (dot, slash) to the filename you type in the terminal? If that still does not work, can you please issue the following commands in that terminal (replacing FILE by the name of the file you downloaded) and show us the results:

    chmod u+x FILE
    ls FILE
    ./FILE

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 15.  Re: Installing CPLEX 12.2 on a MAC

    Posted Sat October 16, 2010 05:01 PM

    Originally posted by: S.U.N.


    Hi, I get the following message when trying to install cplex_studio122 on a mac os X:

    The installation of IBM ILOG CPLEX Optimization Studio Academic Research
    Edition 12.2 is complete, but some errors occurred during the install.
    Please see the installation log for details in:
    /Users/sungueve/ILOG/CPLEX_Studio_AcademicResearch122.
    Then when I look into the log file, I get:
    Install File: /Users/sungueve/ILOG/CPLEX_Studio_AcademicResearch122/cplex/bin/x86-64_darwin9_gcc4.0/cplex
    Status: SUCCESSFUL
    Install File: /Users/sungueve/ILOG/CPLEX_Studio_AcademicResearch122/cplex/bin/x86-64_darwin9_gcc4.0/cplexamp
    Status: ERROR
    Additional Notes: ERROR - ZeroGlq: invalid stored block lengths
    Install Speedfolder:
    Status: FATAL ERROR
    Additional Notes: FATAL ERROR - Error Installing Folder Contents: java.util.zip.ZipException: invalid stored block lengths
    When I try to run cplex anyway, i get the following error:

    Failed to initialize CPLEX environment.
    CPLEX Error 32201: ILM Error 16: CPLEX: license file not found or unreadable.

    It is there anything I can do to correct that?

    Thanks
    #CPLEXOptimizers
    #DecisionOptimization


  • 16.  Re: Installing CPLEX 12.2 on a MAC

    Posted Mon October 18, 2010 04:06 AM

    Originally posted by: SystemAdmin


    Concerning the installation problems: Is it possible that the downloaded file(s) are corrupted/truncated?

    Concerning the problem running cplex: You need to get a license file and make environment variable ILOG_LICENSE_FILE point to that file.
    #CPLEXOptimizers
    #DecisionOptimization


  • 17.  Re: Installing CPLEX 12.2 on a MAC

    Posted Mon October 18, 2010 01:26 PM

    Originally posted by: S.U.N.


    I have downloaded the software again and now it works fine.

    Thanks
    #CPLEXOptimizers
    #DecisionOptimization


  • 18.  Re: Installing CPLEX 12.2 on a MAC

    Posted Thu April 14, 2011 09:51 AM

    Originally posted by: SystemAdmin


    Hi guys

    I have bought the new macbook pro (c i5).
    I have tried to install ILOG IBM Cplex studio as you have mentioned above.
    but it does not work! I downloaded Cplex for mac again and again but not new result.
    I copied the access.ilm in a separate folder (ILM) in the ILOG directory.
    The error is: license file not found or unreadable.

    Moreover, I installed Windows 7 and also Windows xp by VMware in Mac.
    Then I tried to install ILOG IBM CPLEX studio in both Windows. But
    after installation, I am recieving the following error:
    "ILOG IBM CPLEX Optimization studio in use"

    Does any one knows what is the problem?

    Thanks
    Mahdi
    #CPLEXOptimizers
    #DecisionOptimization


  • 19.  Re: Installing CPLEX 12.2 on a MAC

    Posted Thu April 14, 2011 11:45 AM

    Originally posted by: RodrigoLinfati


    do you set the ILOG_LICENSE_FILE variable?

    try in a terminal:

    export ILOG_LICENSE_FILE=/path/to/ilog/ilm/access.ilm
    /path/to//ilog/cplex/bin/arch/cplex
    #CPLEXOptimizers
    #DecisionOptimization


  • 20.  Re: Installing CPLEX 12.2 on a MAC

    Posted Thu April 14, 2011 01:53 PM

    Originally posted by: SystemAdmin


    Thanks.
    No, I have created a directory as "ilm" in ILOG and copied the key (access.ilm) . Do I need to define a variable?
    BTW, I dont know how to define it!!

    I am really new in mac and i used to work only with Windows. So I don't know this stuff at all.

    Where should I go in Terminal? I mean I need to be on top of which directory to run the code?
    #CPLEXOptimizers
    #DecisionOptimization


  • 21.  Re: Installing CPLEX 12.2 on a MAC

    Posted Thu April 28, 2011 09:06 AM

    Originally posted by: SystemAdmin


    Yes, you need to define the environment variable ILOG_LICENSE_FILE.
    In a terminal do
    export ILOG_LICENSE_FILE=/path/to/access.ilm
    /path/to/cplex/bin/x86-64_darwin9_gcc4.0/cplex
    

    where you need the various /path/to need to be replaced with the actual paths/folders of your installation.
    Does this work?
    #CPLEXOptimizers
    #DecisionOptimization


  • 22.  Re: Installing CPLEX 12.2 on a MAC

    Posted Thu April 28, 2011 03:50 PM

    Originally posted by: SystemAdmin


    @Daniel,

    I did as follows in a terminal:
    -mahdis-MacBook-Pro:~ mahdi$ export ILOG_LICENSE_FILE=/Users/mahdi/ILOG/ilm/access.ilm

    -mahdis-MacBook-Pro:~ mahdi$ /Users/mahdi/ILOG/CPLEX_Studio_AcademicResearch122/cplex/bin/x86-64_darwin9_gcc4.0/cplex

    Result:
    =>Failed to initialize CPLEX environment.
    CPLEX Error 32201: ILM Error 7: CPLEX: no access key found for this product.
    Exiting

    The ILOG folder is in Users/mahdi. ILOG contains ILM and CPLEX_Studio_academicResearch122.

    Or when I run cplex in /bin/x86-64_darwin9_gcc4.0/ I got this message:
    Failed to initialize CPLEX environment.
    CPLEX Error 32201: ILM Error 16: CPLEX: license file not found or unreadable.
    Exiting
    logout
    !

    Do you know what I need to do? or did I do something wrong?
    Cheers.
    #CPLEXOptimizers
    #DecisionOptimization


  • 23.  Re: Installing CPLEX 12.2 on a MAC

    Posted Thu April 28, 2011 05:30 PM

    Originally posted by: SystemAdmin


    Hm, the commands look good to me. Can you do
    export ILOG_LICENSE_FILE=/Users/mahdi/ILOG/ilm/access.ilm
    echo $ILOG_LICENSE_FILE
    

    This should print your license file. What is the output?
    #CPLEXOptimizers
    #DecisionOptimization


  • 24.  Re: Installing CPLEX 12.2 on a MAC

    Posted Thu April 28, 2011 07:01 PM

    Originally posted by: SystemAdmin


    Nothing!
    it just prints:
    /Users/mahdi/ILOG/ilm/access.ilm

    But still when I run Cplex from \bin\...
    it again says:
    Failed to initialize CPLEX environment.
    CPLEX Error 32201: ILM Error 16: CPLEX: license file not found or unreadable.
    Exiting
    logout
    #CPLEXOptimizers
    #DecisionOptimization


  • 25.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri April 29, 2011 12:31 AM

    Originally posted by: SystemAdmin


    Sorry, my fault. I meant to ask you to do
    export ILOG_LICENSE_FILE=/Users/mahdi/ILOG/ilm/access.ilm
    cat $ILOG_LICENSE_FILE
    

    (Note the 'cat' instead of 'echo') This now should print the contents of your license file.
    Concerning your other question: As CPLEX starts up fine I don't think there are any files missing. There only is a problem with the license file.
    #CPLEXOptimizers
    #DecisionOptimization


  • 26.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri April 29, 2011 08:54 AM

    Originally posted by: SystemAdmin


    I did it and this is the message:
    ??LICENSE IBM ILOG Optimization Suite for Academic Initiative
    EVAL CPLEX 12.000 01-Apr-2012 BBTW31Z04JB2 any , options: e m b q
    EVAL OPLStudio 6.000 01-Apr-2012 NMYYH0FG0R5Z any , options: ide
    EVAL CP-Optimizer 2.000 01-Apr-2012 ZPTWR2KJ8EDA any
    EVAL Solver 6.000 01-Apr-2012 YRXE42J887PF any
    EVAL Scheduler 6.000 01-Apr-2012 PW62V0XSGDE5 any
    EVAL Dispatcher 4.000 01-Apr-2012 N0PU31XC4VTX any

    But when I run Cplex in bin\... again the same error:

    Failed to initialize CPLEX environment.
    CPLEX Error 32201: ILM Error 16: CPLEX: license file not found or unreadable.
    Exiting
    logout
    !!!
    #CPLEXOptimizers
    #DecisionOptimization


  • 27.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri April 29, 2011 09:48 AM

    Originally posted by: RodrigoLinfati


    delete the ?? at the start
    #CPLEXOptimizers
    #DecisionOptimization


  • 28.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri April 29, 2011 11:37 AM

    Originally posted by: SystemAdmin


    What do you mean by deleting "??" ?
    I cannot delete "??", it is a part of the output which is written by the terminal.
    I write "cat $ILOG_LICENSE_FILE" and the result is

    "??LICENSE IBM ILOG Optimization Suite for Academic Initiative
    EVAL CPLEX 12.000 01-Apr-2012 BBTW31Z04JB2 any , options: e m b q
    EVAL OPLStudio 6.000 01-Apr-2012 NMYYH0FG0R5Z any , options: ide
    EVAL CP-Optimizer 2.000 01-Apr-2012 ZPTWR2KJ8EDA any
    EVAL Solver 6.000 01-Apr-2012 YRXE42J887PF any
    EVAL Scheduler 6.000 01-Apr-2012 PW62V0XSGDE5 any
    EVAL Dispatcher 4.000 01-Apr-2012 N0PU31XC4VTX any "
    #CPLEXOptimizers
    #DecisionOptimization


  • 29.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri April 29, 2011 11:41 AM

    Originally posted by: SystemAdmin


    He means: open the file (/Users/mahdi/ILOG/ilm/access.ilm) in an editor, remove the initial '??' and save the file.
    #CPLEXOptimizers
    #DecisionOptimization


  • 30.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri April 29, 2011 12:25 PM

    Originally posted by: SystemAdmin


    There is no ?? in the file.
    The file contains:
    LICENSE IBM ILOG Optimization Suite for Academic Initiative
    EVAL CPLEX 12.000 01-Apr-2012 BBTW31Z04JB2 any , options: e m b q
    EVAL OPLStudio 6.000 01-Apr-2012 NMYYH0FG0R5Z any , options: ide
    EVAL CP-Optimizer 2.000 01-Apr-2012 ZPTWR2KJ8EDA any
    EVAL Solver 6.000 01-Apr-2012 YRXE42J887PF any
    EVAL Scheduler 6.000 01-Apr-2012 PW62V0XSGDE5 any
    EVAL Dispatcher 4.000 01-Apr-2012 N0PU31XC4VTX any
    #CPLEXOptimizers
    #DecisionOptimization


  • 31.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri April 29, 2011 12:30 PM

    Originally posted by: SystemAdmin


    May it be that the file is currently stored in some non-ASCII encoding and the ?? you see with cat is a marker for this encoding? Your editor may recognize the encoding and does not display the marker bytes.
    You should look at the file with a hex editor and see whether there are those strange bytes in the beginning.
    #CPLEXOptimizers
    #DecisionOptimization


  • 32.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri April 29, 2011 12:55 PM

    Originally posted by: SystemAdmin


    I did it and the message is:

    LICENSE IBM ILOG Optimization Suite for Academic Initiative
    EVAL CPLEX 12.000 01-Apr-2012 BBTW31Z04JB2 any , options: e m b q
    EVAL OPLStudio 6.000 01-Apr-2012 NMYYH0FG0R5Z any , options: ide
    EVAL CP-Optimizer 2.000 01-Apr-2012 ZPTWR2KJ8EDA any
    EVAL Solver 6.000 01-Apr-2012 YRXE42J887PF any
    EVAL Scheduler 6.000 01-Apr-2012 PW62V0XSGDE5 any
    EVAL Dispatcher 4.000 01-Apr-2012 N0PU31XC4VTX any

    But again when I run cplex in \bin\...
    this is the error:

    Failed to initialize CPLEX environment.
    CPLEX Error 32201: ILM Error 16: CPLEX: license file not found or unreadable.
    Exiting
    logout
    #CPLEXOptimizers
    #DecisionOptimization


  • 33.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri April 29, 2011 04:25 PM

    Originally posted by: RodrigoLinfati


    in linux the default location to the license file is
    /usr/ilog/ilm/access.ilm

    can you try to copy you license file to /usr/ilog/ilm/access.ilm ?

    su -
    mkdir -p /usr/ilog/ilm/
    cp /Users/mahdi/ILOG/ilm/access.ilm /usr/ilog/ilm/access.ilm
    chmod 644 /usr/ilog/ilm/access.ilm
    #CPLEXOptimizers
    #DecisionOptimization


  • 34.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri April 29, 2011 04:45 PM

    Originally posted by: SystemAdmin


    The folder is there.
    /Users/mahdi/ILOG-> all executed files of ILOG IBM CPLEX

    and the license is in:
    /Users/mahdi/ILOG/ilm/access.ilm

    I used to work in the exactly same structure in Windows! but here I dont understand what is the problem!
    #CPLEXOptimizers
    #DecisionOptimization


  • 35.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri April 29, 2011 04:53 PM

    Originally posted by: SystemAdmin


    OK, just to make sure the '??' were some strange output error. Can you please do
    hexdump -C /Users/mahdi/ILOG/ilm/access.ilm | head -n 10
    

    and post the output here?

    Moreover, can you run
    strace -e trace=open /Users/mahdi/ILOG/CPLEX_Studio_AcademicResearch122/cplex/bin/x86-64_darwin9_gcc4.0/cplex
    

    and post the output as well.
    I hope you have hexdump, head and strace installed ...
    #CPLEXOptimizers
    #DecisionOptimization


  • 36.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri April 29, 2011 05:24 PM

    Originally posted by: SystemAdmin


    I had already opened access.ilm by hexEditor and had deleted the two first characters. Then, I ran "cat $ILOG_LICENSE_FILELICENSE", there was not any "??". The result is

    "IBM ILOG Optimization Suite for Academic Initiative
    EVAL CPLEX 12.000 01-Apr-2012 BBTW31Z04JB2 any , options: e m b q
    EVAL OPLStudio 6.000 01-Apr-2012 NMYYH0FG0R5Z any , options: ide
    EVAL CP-Optimizer 2.000 01-Apr-2012 ZPTWR2KJ8EDA any
    EVAL Solver 6.000 01-Apr-2012 YRXE42J887PF any
    EVAL Scheduler 6.000 01-Apr-2012 PW62V0XSGDE5 any
    EVAL Dispatcher 4.000 01-Apr-2012 N0PU31XC4VTX any"
    BTW I did as you told now and the output is

    00000000 4c 00 49 00 43 00 45 00 4e 00 53 00 45 00 20 00 |L.I.C.E.N.S.E. .|
    00000010 49 00 42 00 4d 00 20 00 49 00 4c 00 4f 00 47 00 |I.B.M. .I.L.O.G.|
    00000020 20 00 4f 00 70 00 74 00 69 00 6d 00 69 00 7a 00 | .O.p.t.i.m.i.z.|
    00000030 61 00 74 00 69 00 6f 00 6e 00 20 00 53 00 75 00 |a.t.i.o.n. .S.u.|
    00000040 69 00 74 00 65 00 20 00 66 00 6f 00 72 00 20 00 |i.t.e. .f.o.r. .|
    00000050 41 00 63 00 61 00 64 00 65 00 6d 00 69 00 63 00 |A.c.a.d.e.m.i.c.|
    00000060 20 00 49 00 6e 00 69 00 74 00 69 00 61 00 74 00 | .I.n.i.t.i.a.t.|
    00000070 69 00 76 00 65 00 0d 00 0a 00 45 00 56 00 41 00 |i.v.e.....E.V.A.|
    00000080 4c 00 20 00 20 00 20 00 20 00 43 00 50 00 4c 00 |L. . . . .C.P.L.|
    00000090 45 00 58 00 20 00 20 00 20 00 20 00 20 00 20 00 |E.X. . . . . . .|

    Moreover, I ran "strace -e trace=open /Users/mahdi/ILOG/CPLEX_Studio_AcademicResearch122/cplex/bin/x86-64_darwin9_gcc4.0/cplex"

    The message of the terminal is: "-bash: strace: command not found"
    #CPLEXOptimizers
    #DecisionOptimization


  • 37.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri April 29, 2011 05:53 PM

    Originally posted by: SystemAdmin


    It looks like you managed to store the license key in UTF-16 encoding. This might be the problem. I attached a version of the file that is plain-ascii. Can you please copy this file to /Users/mahdi/ILOG/ilm/license.txt and then do
    export ILOG_LICENSE_FILE=/Users/mahdi/ILOG/ilm/license.txt
    /Users/mahdi/ILOG/CPLEX_Studio_AcademicResearch122/cplex/bin/x86-64_darwin9_gcc4.0/cplex
    

    Does this work any better?
    #CPLEXOptimizers
    #DecisionOptimization


  • 38.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri April 29, 2011 05:59 PM

    Originally posted by: SystemAdmin


    The error:
    "no access key found for this product."
    !!
    #CPLEXOptimizers
    #DecisionOptimization


  • 39.  Re: Installing CPLEX 12.2 on a MAC

    Posted Sat April 30, 2011 04:04 AM

    Originally posted by: SystemAdmin


    Can you try to re-download the license file from CPLEX (not the one I attached but the original one)? Make sure you download the file. Don't copy/paste the file from somewhere into an editor. Maybe the instructions posted here can help you to install CPLEX and the license file correctly.
    #CPLEXOptimizers
    #DecisionOptimization


  • 40.  Re: Installing CPLEX 12.2 on a MAC

    Posted Sat April 30, 2011 11:17 AM

    Originally posted by: SystemAdmin


    OK, it sounds something is happening!

    I downlaoded a new license and copied it in the folder.
    I ran: export ILOG_LICENSE_FILE=/Users/mahdi/ILOG/ilm/access.ilm
    and then
    /Users/mahdi/ILOG/CPLEX_Studio_AcademicResearch122/cplex/bin/x86_darwin9_gcc4.0/cplex

    the result:
    "IBM ILOG License Manager: "IBM ILOG Optimization Suite for Academic Initiative" is accessing CPLEX 12 with option(s): "e m b q ".

    IBM ILOG CPLEX Optimization Studio Academic Research Edition
    Welcome to IBM(R) ILOG(R) CPLEX(R) Interactive Optimizer 12.2.0.0
    with Simplex, Mixed Integer & Barrier Optimizers
    5725-A06 5725-A29 5724-Y48 5724-Y49 5724-Y54 5724-Y55
    Copyright IBM Corp. 1988, 2010. All Rights Reserved.

    Type 'help' for a list of available commands.
    Type 'help' followed by a command name for more
    information on commands.

    CPLEX> "

    BUT when I run Cplex in \bin\.... by double click, it says: "
    Failed to initialize CPLEX environment.
    CPLEX Error 32201: ILM Error 16: CPLEX: license file not found or unreadable.
    Exiting
    logout"

    _OR, When I close the terminal window and reopen it and run
    /Users/mahdi/ILOG/CPLEX_Studio_AcademicResearch122/cplex/bin/x86_darwin9_gcc4.0/cplex

    it says:

    Failed to initialize CPLEX environment.
    CPLEX Error 32201: ILM Error 16: CPLEX: license file not found or unreadable.
    Exiting
    Do I need to define the path every single time that I want to work with cplex?
    Another question: I used to work with cplex through VC++ 2008 in Windows.
    Now Can I do the same? if so, which C++ do i need to install?
    #CPLEXOptimizers
    #DecisionOptimization


  • 41.  Re: Installing CPLEX 12.2 on a MAC

    Posted Mon May 02, 2011 12:57 AM

    Originally posted by: SystemAdmin


    Good, your installation is correct now.
    The problems you observe now are caused by the fact that environment variable ILOG_LICENSE_FILE is not always that.
    Add this line to the file '.bashrc' in your home directory:
    export ILOG_LICENSE_FILE=/Users/mahdi/ILOG/ilm/access.ilm
    

    Now every newly opened terminal window should have the variable set. You can check by typing
    echo $ILOG_LICENSE_FILE
    

    This should print "/Users/mahdi/ILOG/ilm/access.ilm'. Just running the interactive binary should work fine now.
    Depending on how you configured the shortcut that you are double-clicking this may also fix that problem as well. If not, you need to make sure that double-clicking the CPLEX binary as you described also sets the ILOG_LICENSE_FILE variable appropriately.
    #CPLEXOptimizers
    #DecisionOptimization


  • 42.  Re: Installing CPLEX 12.2 on a MAC

    Posted Mon May 02, 2011 05:51 AM

    Originally posted by: SystemAdmin


    Excuse me to ask this question!
    what do you mean by "this line to the file '.bashrc' in your home directory"?
    what is '.bashrc'? where is the home directory?

    How can I work with Cplex through C++ in Mac?...
    #CPLEXOptimizers
    #DecisionOptimization


  • 43.  Re: Installing CPLEX 12.2 on a MAC

    Posted Mon May 02, 2011 05:58 AM

    Originally posted by: SystemAdmin


    When you open a terminal that should usually start in your home directory. Try
    pwd
    echo $HOME
    

    both commands should print the same directory name. In this directory there should be a file called .bashrc (if not then just create it). To this file you need to add the line I showed you.

    To learn how to compile a C++ application please refer to the user manual or this thread.
    #CPLEXOptimizers
    #DecisionOptimization


  • 44.  Re: Installing CPLEX 12.2 on a MAC

    Posted Mon May 02, 2011 06:25 AM

    Originally posted by: SystemAdmin


    There was no such a file, Hence I created a simple text file and named it ".bashrc"( I don't know what is the type of this file! .txt or it keeps .bashrc as its type).

    It is hidden file according to the message I received when I was saving it.
    I copied the line (export ILOG_LICENSE_FILE=/Users/mahdi/ILOG/ilm/access.ilm) in the file and closed it.
    I ran "echo $ILOG_LICENSE_FILE" but still nothnig!
    #CPLEXOptimizers
    #DecisionOptimization


  • 45.  Re: Installing CPLEX 12.2 on a MAC

    Posted Mon May 02, 2011 08:01 AM

    Originally posted by: SystemAdmin


    I think it would be a good idea to get a textbook about the fundamentals about the MAC operating system. It sounds like you are not too familiar with that.

    Did you start a new terminal before doing
    echo $ILOG_LICENSE_FILE
    

    The file .bashrc is read only when you open a new terminal. If even in a new terminal there is no output, then what is the output of
    echo $SHELL
    

    #CPLEXOptimizers
    #DecisionOptimization


  • 46.  Re: Installing CPLEX 12.2 on a MAC

    Posted Mon May 02, 2011 08:14 AM

    Originally posted by: SystemAdmin


    Yes you are right. I got Mac recently and I am not familiar with Mac!
    I ran "echo $ILOG_LICENSE_FILE" when I started the terminal. And nothing in the result.
    The output of "echo $SHELL" is
    "/bin/bash"
    #CPLEXOptimizers
    #DecisionOptimization


  • 47.  Re: Installing CPLEX 12.2 on a MAC

    Posted Mon May 02, 2011 08:33 AM

    Originally posted by: SystemAdmin


    Very strange.
    Can you please try this:
    echo 'export ILOG_LICENSE_FILE=/Users/mahdi/ILOG/ilm/access.ilm' >> $HOME/.bashrc
    source $HOME/.bashrc
    echo $ILOG_LICENSE_FILE
    

    The last line should print
    /Users/mahdi/ILOG/ilm/access.ilm
    

    If that doesn't work, what does
    cat $HOME/.bashrc
    

    print? If the previous stuff did work, try running CPLEX again and see if that does work now.
    #CPLEXOptimizers
    #DecisionOptimization


  • 48.  Re: Installing CPLEX 12.2 on a MAC

    Posted Mon May 02, 2011 08:47 AM

    Originally posted by: SystemAdmin


    It prints out
    "/Users/mahdi/ILOG/ilm/access.ilm"

    But when I close the terminal and reopen it and run "/Users/mahdi/ILOG/CPLEX_Studio_AcademicResearch122/cplex/bin/x86-64_darwin9_gcc4.0/cplex"

    This is again the error:
    Failed to initialize CPLEX environment.
    CPLEX Error 32201: ILM Error 16: CPLEX: license file not found or unreadable.
    Exiting
    #CPLEXOptimizers
    #DecisionOptimization


  • 49.  Re: Installing CPLEX 12.2 on a MAC

    Posted Thu August 11, 2011 12:36 AM

    Originally posted by: FBA6_Gonzalo_Paredes_Martinez


    Hi,
    I have the same problem

    "Failed to initialize CPLEX environment.
    CPLEX Error 32201: ILM Error 16: CPLEX: license file not found or unreadable.
    Exiting"

    did you solved it?

    Thanks,
    #CPLEXOptimizers
    #DecisionOptimization


  • 50.  Re: Installing CPLEX 12.2 on a MAC

    Posted Thu August 11, 2011 03:32 PM

    Originally posted by: FBA6_Gonzalo_Paredes_Martinez


    I did it

    create.bash_profile: pico .bash_profile
    Edit .bash_profile with:export ILOG_LICENSE_FILE=/Users/donPro/ILOG/CPLEX122/licenses/access.ilm
    Now works!

    One tip For Matlab users:
    setenv('ILOG_LICENSE_FILE', '/Users/donPro/ILOG/CPLEX122/licenses/access.ilm')

    Thanks anyway!

    Gonzalo
    #CPLEXOptimizers
    #DecisionOptimization


  • 51.  Re: Installing CPLEX 12.2 on a MAC

    Posted Thu April 28, 2011 07:05 PM

    Originally posted by: SystemAdmin


    It might help.
    When I was running Cplex in Windows through VC++,
    I used to open cplex examples (ILOG/CPLEX_Studio_AcademicResearch122/cplex/examples/x86_darwin9_gcc4.0)
    But now there is not such files in this folder!
    Is there any possibility that the installation has some problem!?
    #CPLEXOptimizers
    #DecisionOptimization


  • 52.  Re: Installing CPLEX 12.2 on a MAC

    Posted Mon April 25, 2011 12:21 PM

    Originally posted by: UWaterlooGrad


    Hi,

    I managed to install CPLEX Academic version (although i have to chmod 777 the installation file) in order to run it.

    I followed the steps you have put (which i thank you for them, they are very useful). However, I am not being able to run CPLEX!!

    I went to …./ILOG/CPLEX_Studio_AcademicResearch122/cplex/bin
    where i have two other folders:

    x86-64_darwin9_gcc4.0 and x86_darwin9_gcc4.0 under which there is the cplex executable.

    Running the first one is giving the following error: Bus error
    Running the second one is giving the following error: ./cplex: Bad CPU type in executable

    Any idea?

    Thanks in advance!
    #CPLEXOptimizers
    #DecisionOptimization


  • 53.  Re: Installing CPLEX 12.2 on a MAC

    Posted Thu April 28, 2011 09:00 AM

    Originally posted by: SystemAdmin


    Ugh, this looks like corrupted files. Did you check the checksum of the downloaded installer?
    #CPLEXOptimizers
    #DecisionOptimization


  • 54.  Re: Installing CPLEX 12.2 on a MAC

    Posted Thu April 28, 2011 09:50 AM

    Originally posted by: UWaterlooGrad


    Not really. Any idea on how this can be done?
    Also, is it possible that because I run "chmod ..." before?
    Thanks!
    #CPLEXOptimizers
    #DecisionOptimization


  • 55.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri April 29, 2011 12:33 AM

    Originally posted by: SystemAdmin


    The chmod is definitely not the problem. It won't change a file's data.
    I am not an expert on MAC so I don't know how to get the checksum of a file. On Linux I use md5sum to get the MD5 checksum of a file. Maybe there is something similar on MAC?
    #CPLEXOptimizers
    #DecisionOptimization


  • 56.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri April 29, 2011 12:58 PM

    Originally posted by: UWaterlooGrad


    This was the command: openssl md5 cplex_studio122.acad.macos.bin

    That was the output: MD5(cplex_studio122.acad.macos.bin)= 9fb994f633e3587608e0240aaa690578

    What does that mean?
    #CPLEXOptimizers
    #DecisionOptimization


  • 57.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri April 29, 2011 04:24 PM

    Originally posted by: RodrigoLinfati


    $ openssl md5 cplex_studio122.acad.macos.bin
    MD5(cplex_studio122.acad.macos.bin)= 9fb994f633e3587608e0240aaa690578
    #CPLEXOptimizers
    #DecisionOptimization


  • 58.  Re: Installing CPLEX 12.2 on a MAC

    Posted Sun January 17, 2016 06:40 AM


  • 59.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri April 29, 2011 05:55 PM

    Originally posted by: UWaterlooGrad


    Any help to my problems guys? :)
    #CPLEXOptimizers
    #DecisionOptimization


  • 60.  Re: Installing CPLEX 12.2 on a MAC

    Posted Sat April 30, 2011 03:59 AM

    Originally posted by: SystemAdmin


    After verifying that your installation is correct I have run out of ideas, sorry.
    Can you please check that your system satisfies the system requirements listed here.
    Moreover, you could google for "mac Bad CPU type in executable". I found a lot of answers but since I am not a MAC expert they don't tell me much.
    You could also attempt to contact CPLEX tech support.
    #CPLEXOptimizers
    #DecisionOptimization


  • 61.  Re: Installing CPLEX 12.2 on a MAC

    Posted Tue December 03, 2013 03:26 PM

    Originally posted by: hellothere!


    Hello, 

    I have a similar problem regarding the installation of Cplex 12.4. I am already failing with the easiest part, after I downloaded the file my mac doesn't recognize the .bin format. As it fails to read the file all it does is creating a new "zip" instead of unpacking it... Did anyone experience this problem and knows the solution to it? 

    Thanks in advance!

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 62.  Re: Installing CPLEX 12.2 on a MAC

    Posted Wed December 04, 2013 04:40 AM

    Did you try to just 'chmod u+x' the bin file and then run it from the console? Like this:

    $ chmod u+x installer.bin
    $ ./installer.bin

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 63.  Re: Installing CPLEX 12.2 on a MAC

    Posted Sun December 08, 2013 01:07 PM

    Originally posted by: hellothere!


    Hi, 

    Thank you for the answer, no I hadn't tried this yet.

    I did now, unpacked and installed it but I still fail to run the program... could be now because of my lack of expertise, but there is no "Icon" which makes the program start - only the written "application" itself.

    Thanks for helping! 


    #CPLEXOptimizers
    #DecisionOptimization


  • 64.  Re: Installing CPLEX 12.2 on a MAC

    Posted Mon December 09, 2013 01:13 AM

    Assuming you have installed into path /path/to/cos, there should be a binary

    /path/to/cos/opl/oplide/oplide

    Try to run this (either by starting it through some sort of file manager or by just typing '/path/to/cos/opl/oplide/oplide' in a console window). This should fire up the IDE.

    You can then create your own icon that launches this binary (look on some Mac Forum how to create such icons).


    #CPLEXOptimizers
    #DecisionOptimization


  • 65.  Re: Installing CPLEX 12.2 on a MAC

    Posted Mon December 09, 2013 03:09 AM

    Originally posted by: hellothere!


    I am not sure if i did the right thing.

    I opend 'cplex' in the binary and it  gives me the terminal window but i don't see the user interface. 

    I attached some screenshots... 

    thanks


    #CPLEXOptimizers
    #DecisionOptimization


  • 66.  Re: Installing CPLEX 12.2 on a MAC

    Posted Mon December 09, 2013 08:40 AM

    Sorry, my fault. I forgot that the IDE is not available on MacOS. So the best thing you can get is indeed the CPLEX interactive optimizer which is an interactive console application. That is the thing you managed to launch.

    You can see that the IDE is not supported on MacOS in the "component support" section of the detailed system requirements page here.


    #CPLEXOptimizers
    #DecisionOptimization


  • 67.  Re: Installing CPLEX 12.2 on a MAC

    Posted Tue September 05, 2017 10:38 AM

    Originally posted by: Faran213


    Hello Friends

    I have installed IBM ILOG CPLEX Optimization Studio on my mac but when I run cplex I do not get the same interface as shown in the demo in IBM web site (https://www.ibm.com/us-en/marketplace/ibm-ilog-cplex/purchase#product-header-top)

    May I know if I can get the same GUI on mac or it works only on Windows. Thanks.

     

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 68.  Re: Installing CPLEX 12.2 on a MAC

    Posted Fri September 08, 2017 06:53 AM

    The IDE is currently not supported on MacOS.

    You can see this if you go to the Detailed System Requirements page and click on OS X. You will see a table with a column labeled "Components". In that column you will find the symbol for "Partial Support" (a half filled circle). If you hover over any of these symbols with the mouse you will see a list of supported and unsupported features. IDE is among the unsupported stuff.

    (Yes, I know, this is everything but easy to find)


    #CPLEXOptimizers
    #DecisionOptimization


  • 69.  Re: Installing CPLEX 12.2 on a MAC

    Posted Tue September 12, 2017 09:21 AM

    Originally posted by: coffeenotenough


    Hi guys:

    I tried to install the cplex on my mac today. But when I run "/bin/bash ~/cplex_studio12.7.1.osx.bin", it prints that "No Java runtime present, requesting install."

    But I've installed Java and when I runs"java -version", it prints

    "

    java version "1.8.0_144"

    Java(TM) SE Runtime Environment (build 1.8.0_144-b01)

    Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

    "

    But it still shows no java runtime present whenever I tries to install the cplex.

    Anyone know what should I do to this? Thanks !


    #CPLEXOptimizers
    #DecisionOptimization


  • 70.  Re: Installing CPLEX 12.2 on a MAC

    Posted Wed September 13, 2017 05:13 AM

    Originally posted by: cgefflot


    Hi 

    Have you have a look at the post Unable to install CPLEX on MAC ? 

    It describes a similar issue on mac, linked to  a general Java problem on Mac OS .  

    I would suggest you use the LAX_VM option to force the installer to use a  JRE :

    • <installer> LAX_VM <path/to/java>

    Regards,


    #CPLEXOptimizers
    #DecisionOptimization