[Scip] Compiling scip-3.0.2 with Ipopt-3.11.7 on MAC OSX 10.9.2
Stefan Vigerske
stefan at math.hu-berlin.de
Tue Mar 25 10:55:30 CET 2014
Hi,
it seems that the installation of the HSL sources did not work.
Even though the Ipopt contains the libcoinhsl.dylib library, it probably
contains none of the linear solvers. Ipopt then tries to load one
dynamically at runtime from a library libhsl.dylib.
The instructions you refer to (HSL/releases/1.3.3/INSTALL.HSL) are for
old HSL sources (< 2011, I think). These sources have to be put into the
ThirdParty/HSLold subdirectory of Ipopt. However, using these is deprecated.
If you have downloaded the HSL sources recently, you should follow the
instructions in ThirdParty/HSL/INSTALL.HSL. Essentially, you have to
follow the links at http://www.hsl.rl.ac.uk/ipopt to register and
obtain an archive coinhsl-x.y.z.tar.gz.
Then unpack this archive via
gunzip coinhsl-x.y.z.tar.gz
tar xf coinhsl-x.y.z.tar
Finally, rename the directory coinhsl-x.y.z to coinhsl, or set a
symbolic link:
ln -s coinhsl-x.y.z coinhsl
After building Ipopt, running make test shows you whether your Ipopt
installation is working.
Hope that helps,
Stefan
PS: This discussion fits better to the Ipopt mailing list, but we can
also continue this off-the-list.
On 03/24/2014 10:36 PM, Wen-Yang Ku wrote:
> Hi,
>
> I have been trying to compile scip-3.0.2 with Ipopt-3.11.7 on MAC. I
> have followed the instructions in this link
> (https://projects.coin-or.org/svn/BuildTools/ThirdParty/HSL/releases/1.3.3/INSTALL.HSL)
> and installed the HSL routines. Ipopt compiles but when running scip I
> got the following error message:
>
> Exception of type: OPTION_INVALID in file "IpAlgBuilder.cpp" at line 321:
> Exception message: Selected linear solver MA27 not available.
> Tried to obtain MA27 from shared library "libhsl.dylib", but the
> following error occured:
> dlopen(libhsl.dylib, 2): image not found
> [src/nlpi/nlpi_ipopt.cpp:1109] ERROR: Ipopt returned with application
> return status -12
>
> After compiling Ipopt, the libcoinhsl.dylib is generated instead of
> libhsl.dylib. I found other posts online which suggest either renaming
> the libcoinhsl.dylib to libhsl.dylib or creating a symbolic link so that
> libhsl.dylib->libcoinhsl.dylib. I have tried both but neither worked for
> me. I have set the DYLD_LIBRARY_PATH=/usr/local/lib and the folder that
> contains the libhsl.dylib file. However I am still getting the same
> error message. I would greatly appreciate any help. Thanks!
>
> Best,
> Wen-Yang Ku
>
> _______________________________________________
> Scip mailing list
> Scip at zib.de
> http://listserv.zib.de/mailman/listinfo/scip
>
More information about the Scip
mailing list