When trying to solve with ipopt, liblapack.3.dylib cannot be found.

897 views
Skip to first unread message

Lennart

unread,
Jun 2, 2023, 11:40:28 AM6/2/23
to Pyomo Forum
Hi all,

When I try to use ipopt, liblapack.3.dylib cannot be found.

Running opt = pe.SolverFactory('ipopt') doesn't return an errorr.
Running log = opt.solve(m, tee=True) then give this error:

"dyld[88923]: Library not loaded: '@rpath/liblapack.3.dylib' Referenced from: '/Users/lennartullner/anaconda3/envs/energy/lib/libdmumps_seq-5.2.1.dylib' Reason: tried: '/Users/lennartullner/anaconda3/envs/energy/lib/liblapack.3.dylib' (no such file), '/Users/lennartullner/anaconda3/envs/energy/lib/liblapack.3.dylib' (no such file), '/Users/lennartullner/anaconda3/envs/energy/lib/liblapack.3.dylib' (no such file), '/Users/lennartullner/anaconda3/envs/energy/bin/../lib/liblapack.3.dylib' (no such file), '/Users/lennartullner/anaconda3/envs/energy/bin/../lib/liblapack.3.dylib' (no such file), '/usr/local/lib/liblapack.3.dylib' (no such file), '/usr/lib/liblapack.3.dylib' (no such file) ERROR: Solver (ipopt) returned non-zero return code (-6) ERROR: See the solver log above for diagnostic information."

I am using Mac OS 12.5.1.

I installed pyomo using conda, channel conda-forge. I installed ipopt and liblapack and libdmums the same way.
Using the glpk solver works without issue, but only after I provided the path to the glpksol file.
Despite the error message saying "(no such file)" the liblapack.3.dylib file is exactly in the specified location in my mac's directory.

I've tried re-installing Lapack and it didn't change anything.

I've tried following the installation guidance on https://coin-or.github.io/Ipopt/INSTALL.html.

I would appreciate any help.

Regards,
Lennart

Jeffrey Kantor

unread,
Jun 2, 2023, 12:00:51 PM6/2/23
to pyomo...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "Pyomo Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyomo-forum...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyomo-forum/205f10d1-cfdc-475c-98d8-3ceb62c2d1adn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages