Decision Optimization

Decision Optimization

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

 View Only
  • 1.  Error running the CPP examples

    Posted Tue April 12, 2011 05:41 PM

    Originally posted by: SystemAdmin


    Hi,

    I'm trying to run the examples that comes with CPlex Studio Academic Version 12.2,following these steps:

    1. cd /ilog/CPLEX_Studio_AcademicResearch122/opl/examples/opl_interfaces/cpp/x86_sles10_4.1/static_pic (the makefile directory for my system)

    1. make

    all the build part of makefile run's without any problems. But when the makefile try to run the first example, i've got this error
    "./carseq: error while loading shared libraries: libcplex122.so: cannot open shared object file: No such file or directory
    make: ** execute Erro 127"

    I've searched for this lib, and i found it in three directories :

    /ilog/CPLEX_Studio_AcademicResearch122/cplex/bin/x86-64_sles10_4.1/libcplex122.so
    /ilog/CPLEX_Studio_AcademicResearch122/cplex/bin/x86_sles10_4.1/libcplex122.so
    /ilog/CPLEX_Studio_AcademicResearch122/opl/bin/x86-64_sles10_4.1/libcplex122.so
    I'm using the linux version, on a Ubuntu 10.10...I had no errors in the installation, the license file is ok...

    Any sugestions? Please, I'm desperate! =(

    Thank's
    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: Error running the CPP examples

    Posted Wed April 13, 2011 02:51 AM

    Originally posted by: SystemAdmin


    You need to set the LD_LIBRARY_PATH shell environment variable to point to the path in which libcplex122.so resides. Note that you need to pick the port that corresponds to your operating system. If you are running a 64 bit Linux version this would be x86-64_sles10_4.1.

    So, for example, in the bash shell on a 64 bit system you would do:
    export LD_LIBRARY_PATH=/ilog/CPLEX_Studio_AcademicResearch122/cplex/bin/x86-64_sles10_4.1/:$LD_LIBRARY_PATH
    


    If you have root priviledges on your system, you can also set a soft-link to libcplex122.so in the /usr/lib64 directory instead:
    cd /usr/lib64
    ln -s /ilog/CPLEX_Studio_AcademicResearch122/cplex/bin/x86-64_sles10_4.1/libcplex122.so .
    

    #CPLEXOptimizers
    #DecisionOptimization


  • 3.  Re: Error running the CPP examples

    Posted Wed April 13, 2011 03:48 PM

    Originally posted by: SystemAdmin


    Thank's a lot! It works perfectly. I need just one more information, but i believe that is another topic, so, i'll create another thread (I'm having problems with the eclipse CDT + CPLEX)
    #CPLEXOptimizers
    #DecisionOptimization