Open wky17 opened 3 months ago
Looks like your linker cannot find the object file of glpk (something like libglpk.so
).
I'm not pretty sure because I don't use MacOS. Maybe something like export LD_LIBRARY_PATH="/opt/homebrew/Cellar/glpk/5.0/lib:$LD_LIBRARY_PATH"
helps.
(Please check if the object file exists there.)
But I think brew install glpk
should configure your compiler and linker so that they can find the include / object files without setting C_INCLUDE_PATH / LD_LIBRARY_PATH manually :thinking:
I have installed glpk in the dictionary of "/opt/homebrew/Cellar/glpk/5.0", which means its version is 5.0 But when I try to install lp-glpk using
opam install lp-glpk
, there is an error:then I use
export C_INCLUDE_PATH="/opt/homebrew/Cellar/glpk/5.0/include:$C_INCLUDE_PATH"
to explicitly give the path to glpk.h. but there is still an error here:what's the problem here?