简体   繁体   English

Lemon安装SOPLEX,COIN和ILOG库

[英]lemon install SOPLEX, COIN and ILOG libraries

I was trying to install Lemon on Ubuntu 14.04. 我试图在Ubuntu 14.04上安装Lemon。 I was going as per the instructions in their documentation. 我按照他们文档中的说明去了。 On the "cmake .." command, I got an error as the following 在“ cmake ..”命令上,出现以下错误

aniket@aniket-Lenovo-G50-45:~/lemon-1.3.1/build$ cmake ..
CMake Error at CMakeLists.txt:3 (CMAKE_POLICY):
Policy "CMP0048" is not known to this version of CMake.

-- Could NOT find ILOG (missing:  ILOG_CPLEX_LIBRARY ILOG_CPLEX_INCLUDE_DIR) 
-- Could NOT find COIN (missing:  COIN_INCLUDE_DIR COIN_CBC_LIBRARY COIN_CBC_SOLVER_LIBRARY COIN_CGL_LIBRARY COIN_CLP_LIBRARY COIN_COIN_UTILS_LIBRARY COIN_OSI_LIBRARY COIN_OSI_CBC_LIBRARY COIN_OSI_CLP_LIBRARY) 
-- Could NOT find SOPLEX (missing:  SOPLEX_LIBRARY SOPLEX_INCLUDE_DIR) 
-- Configuring incomplete, errors occurred!
See also "/home/aniket/lemon-1.3.1/build/CMakeFiles/CMakeOutput.log".
See also "/home/aniket/lemon-1.3.1/build/CMakeFiles/CMakeError.log".

I tried to update and upgrade Cmake just in case. 我试图更新和升级Cmake,以防万一。 But, it didn't help. 但是,它没有帮助。 So, is this about the libraries not being installed (COIN, ILOG, etc)? 那么,这是否与未安装的库(COIN,ILOG等)有关? How do I install them? 如何安装它们?

No, I've just succeeded in installation by commenting third line in CMakeLists.txt: 不,我刚刚通过注释CMakeLists.txt中的第三行成功完成了安装:

#CMAKE_POLICY(SET CMP0048 OLD)

So, the problem is not in COIN, ILOG, etc. 因此,问题不在COIN,ILOG等中。

It's not a library problem, rather than a CMAKE_POLICY problem. 这不是库问题,而不是CMAKE_POLICY问题。 I was having the same issue, as my cmake was not recognizing the following policy: 我遇到了同样的问题,因为我的cmake无法识别以下策略:

CMAKE_POLICY(SET CMP0048 OLD)

Turned out that my cmake version (2.8.xx) was too old. 原来我的cmake版本(2.8.xx)太旧了。 After upgrading to cmake 3.0.2, this issue was fixed. 升级到cmake 3.0.2之后,此问题已修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM