Skip to content
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

Linking to preinstalled nlopt binaries #196

Closed
smartalecH opened this issue Feb 9, 2023 · 3 comments
Closed

Linking to preinstalled nlopt binaries #196

smartalecH opened this issue Feb 9, 2023 · 3 comments

Comments

@smartalecH
Copy link

I'm on a system where I can't use the normal package manager to install packages.

But luckily, on this system, I've already got the shared .so libraries for nlopt installed. Is there a way I could simply tell Nlopt.jl to look "here" for these libraries and call them that way?

@gaurav-arya
Copy link

@stevengj
Copy link
Collaborator

In particular, Overrides.toml seems like the easiest approach. It looks like you can just add a line:

# Override for NLopt_jll
079eb43efd8e547899662cf3e3edb778 = "/foo/bar"

to ~/.julia/artifacts/Overrides.toml, where /foo/bar/lib/libnlopt.so is the location of your libnlopt?

@odow
Copy link
Member

odow commented Jan 15, 2024

Closing because the Overrides.toml is the way to go about this. This is also documented to a lesser extent in the offial Pkg documentation: https://pkgdocs.julialang.org/v1/artifacts/#Overriding-artifact-locations

@odow odow closed this as completed Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants