-
Notifications
You must be signed in to change notification settings - Fork 63
Closed
Description
I am trying to install CPLEX on my ubuntu distrobox installation (I am running Fedora on host so I needed distrobox to run cplex).
I have the academic license of CPLEX and able to run the IDE and use it with Python.
I set
julia> ENV["CPLEX_STUDIO_BINARIES"] = "/home/USER/.local/opt/ibm/ILOG/CPLEX_Studio2211/cplex/bin/x86-64_linux/"
julia> using Pkg; Pkg.add("CPLEX")
But I get the error:
julia> Pkg.add("CPLEX")
Resolving package versions...
No Changes to `~/.julia/environments/v1.11/Project.toml`
No Changes to `~/.julia/environments/v1.11/Manifest.toml`
Precompiling project...
✗ CPLEX
0 dependencies successfully precompiled in 1 seconds. 54 already precompiled.
1 dependency errored.
For a report of the errors see `julia> err`. To retry use `pkg> precompile`
julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:
CPLEX
Failed to precompile CPLEX [a076750e-1247-5638-91d2-ce28b192dca0] to "/home/USER/.julia/compiled/v1.11/CPLEX/jl_Add2DY".
ERROR: LoadError: CPLEX not properly installed. Please run Pkg.build("CPLEX")
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] top-level scope
@ ~/.julia/packages/CPLEX/5jmjD/src/CPLEX.jl:12
[3] include
@ ./Base.jl:557 [inlined]
[4] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
@ Base ./loading.jl:2881
[5] top-level scope
@ stdin:6
in expression starting at /home/USER/.julia/packages/CPLEX/5jmjD/src/CPLEX.jl:6
in expression starting at stdin:
Environment:
OS: Fedora Host, Ubuntu 24.04 Distrobox
Julia version: julia version 1.11.5
CPLEX Version: 22.1.1 Academic License
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels