zoukankan      html  css  js  c++  java
  • How to Set up Cplex Dev Environment under Linux

    How to Set up Cplex Dev Environment under Linux

    1. Download the cplex binary to local
    2. Execute (root privilege recommended)

    Next, refer to INSTALL_DIR/cplex/examples/x86_sles10_4.1/static_pic/Makefile. In that file, you can see the following link flags:

    CCLNFLAGS = -L$(CPLEXLIBDIR) -lilocplex -lcplex -L$(CONCERTLIBDIR) -lconcert -m32 -lm -pthread
    CLNFLAGS = -L$(CPLEXLIBDIR) -lcplex -m32 -lm -pthread
    JAVA = java -Djava.library.path=$(CPLEXDIR)/bin

    So you can set up environment variables with the same name and introduce these link flags into your own Makefile.

    Perhaps you need a wiser solution, then make a soft link for all the fils under INSTALL_DIR/opl/include and ./lib. Now you only need to add "-lilocplex -lcplex -lconcert -m32 -lm -pthread" in your Makefile. Pay a little more attention to libcplex.so, which is not included in the two directories above. A easy solution is to make a soft link as "libcplex.so" for opl/bin/x86_sles10_4.1/libcplex124.so

    As there are many different versions, directory names above may be a little different.

  • 相关阅读:
    enyo学习之enyo.Object类
    java.lang.Object
    Nginx转发匹配规则
    工具类Redis工具类
    Redis从0到精通Redis.conf详解
    工具类类型转换器
    Docker入门到精通
    Redis从0到精通Jedis
    工具类字符集工具类
    Spock高质量单元测试实操篇
  • 原文地址:https://www.cnblogs.com/qianyuming/p/2788954.html
Copyright © 2011-2022 走看看