简体   繁体   English

“IPOPT”提供 package HSL 不工作或不包含 MA27

[英]"IPOPT" Provided package HSL is not working or does not contain MA27

I am trying to install IPOPT.我正在尝试安装 IPOPT。 I am following the installation steps from here .我正在按照此处的安装步骤进行操作。 I got the official HSL file (academic).我得到了官方 HSL 文件(学术)。 I was able to ./configure and make and make install it.我能够./configuremakemake install它。 I made sure to rename the folder to "coinhsl" as is required by this repo.我确保按照回购协议的要求将文件夹重命名为“coinhsl”。

When I try to install Ipopt I keep getting this error当我尝试安装 Ipopt 时,我不断收到此错误

checking for LAPACK... yes: generic library (-llapack -lblas)
checking for package ASL... yes
checking for package Mumps... yes
checking for MPI_Initialized... no
checking for package HSL... yes
checking for function ma27ad_ in -lcoinhsl   ... no
checking for function ma27ad in -lcoinhsl   ... no
checking for function MA27AD_ in -lcoinhsl   ... no
checking for function MA27AD in -lcoinhsl   ... no
checking for function ma27ad__ in -lcoinhsl   ... no
checking for function ma27ad_ in -lcoinhsl   ... no
checking for function MA27AD__ in -lcoinhsl   ... no
checking for function MA27AD_ in -lcoinhsl   ... no
configure: error: Provided package HSL is not working or does not contain MA27. See config.log for details on failed checks.

I tried to follow the solutions given here but I am unable to resolve the error.我尝试按照此处给出的解决方案进行操作,但无法解决错误。

Any help is greatly appreciated.任何帮助是极大的赞赏。

Edit 1:编辑 1:

@RichardCritten This is something i found on investigating the logs @RichardCritten 这是我在调查日志时发现的

configure:24545: checking for function MA27AD_ in -lcoinhsl   
configure:24570: gcc -o conftest.exe -O2 -DNDEBUG    conftest.c -lcoinhsl    >&5
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lcoinhsl: No such file or directory
collect2.exe: error: ld returned 1 exit status

Although, I still don't understand, why "-lcoinhsl" isn't created.虽然,我仍然不明白,为什么没有创建“-lcoinhsl”。

I had the similar issue, but offcial documentation it is clearly say how to do it,我有类似的问题,但官方文档清楚地说明了如何去做,

Steps:脚步:

  1. Go to http://hsl.rl.ac.uk/ipopt and get Coin-HSL sources archive Go 至http://hsl.rl.ac.uk/ipopt并获取Coin-HSL 资源存档

  2. git clone https://github.com/coin-or-tools/ThirdParty-HSL.git git 克隆https://github.com/coin-or-tools/ThirdParty-HSL.git

  3. cd ThirdParty-HSL cd 第三方-HSL

  4. Now unpack the Coin-HSL sources archive , move and rename the resulting directory so that it becomes ThirdParty-HSL/coinhsl现在解压Coin-HSL 源存档移动并重命名生成的目录,使其成为ThirdParty-HSL/coinhsl

  5. cd ThirdParty-HSL cd 第三方-HSL

     ./configure make sudo make install
  6. Then, follow the rest of the instructions provided in the offcial documentation然后,按照官方文档中提供的说明rest

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

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