Closed IgnacioRubioScola closed 2 years ago
Actually, the package is not really tested under Linux, as I'm mostly working on Windows. By the way, your command ]add CPLEX
is not useful for CPLEXCP.jl, as the two packages are completely unrelated (except the fact that they wrap parts of the CPLEX solver for MOI consumption, there is no reliance of one on the other).
What's in the log file? It should be ~/.julia/packages/CPLEXCP/jbgSe/deps/build.log
.
I think the issue is that you are setting the CPLEX_STUDIO_BINARIES
environment variable, while the package only looks for CPLEX_STUDIO_DIR
. That's a mistake in the README, I just fixed it as e6b1b84.
Inside ~/.julia/packages/CPLEXCP/If8ky/deps
I don't see the file build.log
, I just see the file build.jl
.
I change the environment variable to ENV["CPLEX_STUDIO_DIR"] = "/opt/ibm/ILOG/CPLEX_Studio201/cplex/bin/x86-64_linux/"
and I still got the error
ERROR: LoadError: Unable to locate CPLEX installation. Note this must be downloaded separately. See the CPLEXCP.jl README for further instructions.
when I execute locate ILOG.CP.jar
I have
/opt/ibm/ILOG/CPLEX_Studio201/cpoptimizer/lib/ILOG.CP.jar
I could build CPLEXCP using the following env. variable:
ENV["CPLEX_STUDIO_DIR"] = "/opt/ibm/ILOG/CPLEX_Studio201/"
Again, I was copy-pasting the docs from CPLEX.jl too quickly… CPLEX_STUDIO_DIR
should really have the value that is set by the installer, i.e. without the bin/x86-64_linux
at the end.
Thanks for your perseverance! I've updated the docs based on your feedback. Also, for the next release, the build process should output much more information (which could be helpful in debugging these issues).
Hi,
I have problems installing CPLEXCP, CPLEX.jl is correctly installed. To reproduce, under ubuntu 20.04 download julia 1.6.3, and then:
then I got this error:
thank you,
Ignacio