-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KNITRO not found on macOS #225
Comments
That's indeed unexpected. ls $KNITRODIR/lib |
|
ok. And what's the output of the following command in Julia? using Libdl
knitro_lib = joinpath(ENV["KNITRODIR"], "lib", "libknitro.dylib")
Libdl.dlopen_e(knitro_lib)
|
Is this due to the fact I have to run Julia for x86_64 on the M1, yet the Knitro lib is for M1? I just tried with Ipopt and it seems to be working... |
Ipopt standalone or Ipopt.jl? It looks like Ipopt.jl has also its bunch of issues: jump-dev/Ipopt.jl#315 So apparently for Julia x86_64 is not able to load the Knitro lib for M1, as you suggested. Would it be possible to use Julia 1.8 with the M1 build? https://julialang-s3.julialang.org/bin/mac/aarch64/1.8/julia-1.8.0-rc1-macaarch64.dmg |
Would the Knitro 86_64 run on the M1? Is it possible to install it alongside the M1 lib? |
I think you can download Knitro x86_64 on the M1. Not sure it will work out of the box (the x86_64 build is compiled with MKL). Another possibility is to use Knitro x86_64 with rosetta. |
Is this resolved? You should be able to run KNITRO x86_64 on the M1 with Julia x86_64, Or KNITRO arm64 with Julia arm64. I have an M1, but not a KNITRO license, so I can't test unfortunately. x-ref: jump-dev/JuMP.jl#2971. If you previously tried on Julia 1.7, try with the latest 1.8-rc4. It fixes a lot of issues. |
I'm still getting the same errors as above after installing KNITRO 13.1 for x86_64 and running it in Julia 1.7.3 for x86_64. I'll test Julia 1.8-rc4 as soon as it appears on juliaup. I can run |
Upgrading juliaup gave access to 1.8-rc4. The results are more promising but a bunch of tests fail. |
Closing because tests are passing (although we need to fix a bunch of excluded ones): #230 |
I'm on macOS M1 and for some reason, KNITRO.jl isn't finding my installation of KNITRO:
I don't think
LD_LIBRARY_PATH
is particularly relevant on macOS. I used to have to setDYLD_LIBRARY_PATH
instead, but that doesn't seem to do it either.I can certainly use the
knitroampl
binary from the shell, so my license is ok. Thebuild.log
file is empty.If I try to run the unit tests, I get messages of the form
Any ideas?
The text was updated successfully, but these errors were encountered: