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

Wrong path for lib in Linux #14

Closed
Thuener opened this issue Aug 31, 2017 · 2 comments
Closed

Wrong path for lib in Linux #14

Thuener opened this issue Aug 31, 2017 · 2 comments

Comments

@Thuener
Copy link

Thuener commented Aug 31, 2017

ERROR: LoadError: error compiling init: error compiling Env: could not load library "/opt/xpressmp/lib/libxprs.so"
libxprl.so.x8.0: cannot open shared object file: No such file or directory

@joaquimg
Copy link
Member

The lib exists and it is in the path?

What are the values of the following env variables:
XPRESSDIR, PATH, LD_LIBRARY_PATH, CLASSPATH and XPRESS
All of them must be correctely set for a complete installation:

setenv XPRESSDIR your_xpress_install_dir
setenv PATH $XPRESSDIR/bin:$PATH
setenv LD_LIBRARY_PATH $XPRESSDIR/lib:$LD_LIBRARY_PATH
setenv CLASSPATH $XPRESSDIR/lib/xprs.jar:$CLASSPATH
setenv CLASSPATH $XPRESSDIR/lib/xprb.jar:$CLASSPATH
setenv CLASSPATH $XPRESSDIR/lib/xprm.jar:$CLASSPATH
setenv XPRESS $XPRESSDIR/bin

@Thuener
Copy link
Author

Thuener commented Sep 1, 2017

It was a problem with my shell(fish-shell) with LD_LIBRARY_PATH, it is already solved. But Xpress.jl version v0.4.0 still has problem with the license:

ERROR: InitError: Xpress licensing error 1: The license file (/opt/xpressmp/bin/../lib/xpauth.xpr) could not be read. No such file or directory. Please ensure you have installed it according to the instructions in the FICO Xpress READMEs.
in #userlic#21(::Xpress.#emptyliccheck, ::String, ::Function) at /home/thuener/.julia/v0.5/Xpress/src/xprs_userlic.jl:75
in init() at /home/thuener/.julia/v0.5/Xpress/src/Xpress.jl:95
in _include_from_serialized(::String) at ./loading.jl:150
in _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:187
in require(::Symbol) at ./loading.jl:423
during initialization of module Xpress

But with the latest code(Pkg.clone("https://github.com/JuliaOpt/Xpress.jl")) this issue is solved. Thanks, I'm closing this issue.

@Thuener Thuener closed this as completed Sep 1, 2017
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

2 participants