gpt4 book ai didi

ubuntu - 从源代码编译和构建 lp_solve,ubuntu

转载 作者:行者123 更新时间:2023-12-04 18:45:30 24 4
gpt4 key购买 nike

我正在使用 ubuntu 机器,我已经下载了 lp_solve 源 (lp_solve_5.5.2.5_source.tar.gz) 并将其解压缩。然后我将命令提示符 cd 到路径 lp_solve_5.5/lpsolve55。
然后我运行命令

./ccc

然后我得到了这个错误并创建了空的 bin 文件夹。
In file included from ../lp_SOS.c:3:0:
../shared/commonlib.h:88:24: error: expected identifier or ‘(’ before numeric constant
#define FALSE 0
^
In file included from ../lp_utils.c:4:0:
../shared/commonlib.h:88:24: error: expected identifier or ‘(’ before numeric constant
#define FALSE 0
^
cc: error: lp_MDO.o: No such file or directory
cc: error: lp_crash.o: No such file or directory
cc: error: lp_wlp.o: No such file or directory
cc: error: lp_matrix.o: No such file or directory
cc: error: lp_mipbb.o: No such file or directory
cc: error: lp_MPS.o: No such file or directory
cc: error: lp_params.o: No such file or directory
cc: error: lp_presolve.o: No such file or directory
cc: error: lp_price.o: No such file or directory
cc: error: lp_pricePSE.o: No such file or directory
cc: error: lp_scale.o: No such file or directory
cc: error: lp_simplex.o: No such file or directory
cc: error: lp_SOS.o: No such file or directory

我对 Ubuntu 不熟悉。我会很感激你,如果有人可以帮助我解决这个问题。我想为我的项目使用 CFM-ID 算法。要使用它,我必须正确安装 lp_solve。谢谢

最佳答案

我遇到了同样的问题,这篇文章帮助了我:https://groups.google.com/forum/#!topic/prismmodelchecker/gtVatHAir90

  • 下载补丁https://groups.google.com/group/prismmodelchecker/attach/3586984674e863/fix-lpsolve-compilation.patch?part=0.1&authuser=0&view=1
  • 使用 patch < yourpath/fix-lpsolve-compilation.patch 应用补丁在带有 ccc 的目录中文件。
  • 然而,这将找不到正确的文件来修补,因为该修补程序是为某些 PRISM 版本准备的 - 你必须 指定 对应的文件。例如
    can't find file to patch at input line 57
    Perhaps you used the wrong -p or --strip option?
    The text leading up to this was:
    --------------------------
    |Index: prism/ext/lpsolve55/src/lp_solve_5.5/lpsolve55/ccc
    |===================================================================
    |--- prism/ext/lpsolve55/src/lp_solve_5.5/lpsolve55/ccc (revision 11215)
    |+++ prism/ext/lpsolve55/src/lp_solve_5.5/lpsolve55/ccc (revision 11216)
    --------------------------
    File to patch:

    在此处输入 ccc .您不需要全部正确(ccc.osx 等),因此您可以跳过除“正确”ccc 之外的所有内容。
  • 关于ubuntu - 从源代码编译和构建 lp_solve,ubuntu,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44772590/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com