【问题标题】:Ipopt installationipopt安装
【发布时间】:2023-03-20 14:24:02
【问题描述】:

我尝试按照以下安装指南在我的 Mac(macOS Catalina,10.15.0)上安装 Ipopt 包: https://coin-or.github.io/Ipopt/INSTALL.html

我安装了 ASL 作为线性求解器,并达到了第 3 点。make没有任何进一步的问题。但是,当我运行 make test 时,我收到以下错误消息:

cd test; /Applications/Xcode.app/Contents/Developer/usr/bin/make test
  CXX      hs071_main.o
  CXX      hs071_nlp.o
  CXXLD    hs071_cpp
  CC       hs071_c.o
  CCLD     hs071_c
ln -s ../examples/hs071_f/hs071_f.f hs071_f.f
  F77      hs071_f.o
  F77LD    hs071_f
ld: library not found for -lmkl_core
collect2: error: ld returned 1 exit status
make[1]: *** [hs071_f] Error 1
make: *** [unitTest] Error 2

有谁知道如何解决这个问题?好像找不到mkl库……

【问题讨论】:

    标签: failed-installation ipopt


    【解决方案1】:

    是的,您必须安装英特尔 MKL 库 https://software.intel.com/content/www/us/en/develop/tools/oneapi/components/onemkl.html,因为它不是 Mac OS 的一部分。

    【讨论】:

      猜你喜欢
      • 2016-02-11
      • 2018-02-24
      • 1970-01-01
      • 1970-01-01
      • 2019-10-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多