Environment variables for UNIX/Linux platforms
Provides information on environment variables for AIX and Linux platforms, and includes a few tips.
AIX platforms
Set the environment variables LIBPATH and LD_LIBRARY_PATH to point to the OPL libraries.
<Install_dir>/opl/bin/power7-64_aix AIX 7.1 with xlC 11 64 bits
For external Java function calls to work, set the LIBPATH variable to point to the libjava.a and libjvm.a libraries.
Depending on your Java distribution, the library libjvm.a may be available in two directories:
java_install_dir/jre/bin/j9vm
java_install_dir/jre/bin/classic
If this is the case, you must set the LIBPATH to point to java_install_dir/jre/bin/j9vm.
See also Executing oplrun on AIX platforms in the oplrun Command Line Interface manual.
- Check the run time by executing the command lslpp -l | grep xlC. For xlC.aix50.rte, you must have version 7.0 or later of the run time client installed.
- Check the dependencies between shared libraries: run dump -X64 -H foo to list such dependencies.
For more information on AIX options for runtime libraries, environment variables, and naming conventions, see:
http://www.ibm.com/developerworks/java/jdk/aix/14_64/sdkguide.aix64.html
Linux platforms
Only the environment variable LD_LIBRARY_PATH is needed to point to the shared libraries of the CPLEX Studio distribution.
<Install_dir>/opl/bin/x86-64_linux
For full details of the Linux platforms supported, refer to the CPLEX Optimization Studio Detailed System Requirements.
Mac OS platforms
Ensure that the environment variable DYLD_LIBRARY_PATH points to the shared libraries of the CPLEX Studio distribution.
<Install_dir>/opl/bin/x86-64_osx
For full details of the Mac OS platforms supported, refer to the CPLEX Optimization Studio Detailed System Requirements.