--
You received this message because you are subscribed to the Google Groups "julia-opt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to julia-opt+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/julia-opt.
For more options, visit https://groups.google.com/d/optout.
WARNING: Gurobi had build errors.
- packages with build errors remain installed in /home/prof_knetze/.julia/v0.5
- build the package(s) and all dependencies with `Pkg.build("Gurobi")`
- build a single package by running its `deps/build.jl` script
What are the build errors?
On Wed, Oct 26, 2016 at 2:03 PM, <varu...@gmail.com> wrote:
Hello,
I'm currently trying to solve a model using Gurobi rather than CPLEX and thus I installed the academic version of it.
I'm not sure if I modified the environment variables correctly but I appended the three lines to the end of bashrc file.
I'm still not able to fix the problem with build errors though. I tried entering const libGurobi= the path and saved it on
a deps.jl file but that didn't work too. I'd be glad if you guys could help me. Thanks
--
You received this message because you are subscribed to the Google Groups "julia-opt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to julia-opt+...@googlegroups.com.
Can you run Pkg.build("Gurobi")
and send the complete output? This should (hopefully) give a more informative error message.
To unsubscribe from this group and stop receiving emails from it, send an email to julia-opt+unsubscribe@googlegroups.com.
INFO: Building Gurobi
===============================[ ERROR: Gurobi
]================================
LoadError: Unable to locate Gurobi installation. Note that this
must be downloaded separately from gurobi.com
while loading /home/prof_knetze/.julia/v0.5/Gurobi/deps/build.jl,
in expression starting on line 44
================================================================================
================================[ BUILD ERRORS
]================================
WARNING: Gurobi had build errors.
- packages with build errors remain installed in
/home/prof_knetze/.julia/v0.5
- build the package(s) and all dependencies with
`Pkg.build("Gurobi")`
- build a single package by running its `deps/build.jl` script
================================================================================
Can you verify the contents of the GUROBI_HOME directory (i.e. output of ls $GUROBI_HOME
).
To unsubscribe from this group and stop receiving emails from it, send an email to julia-opt+unsubscribe@googlegroups.com.
Ah, if you’re trying to use Gurobi version 7.0 you may need to update the Gurobi.jl package (Pkg.update()
).
To unsubscribe from this group and stop receiving emails from it, send an email to julia-opt+unsubscribe@googlegroups.com.
Can you try Libdl.dlopen_e(joinpath(ENV["GUROBI_HOME"],"lib","libgurobi70.so"))
and see what this outputs?
To unsubscribe from this group and stop receiving emails from it, send an email to julia-opt+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to julia-opt+unsubscribe@googlegroups.com.
No problem. This indicates that the GUROBI_HOME environment variable is not being properly set. Looking back at your earlier message, you need to put export GUROBI_HOME="/opt/gurobi700/linux64"
in your .bashrc (note the export
).
To unsubscribe from this group and stop receiving emails from it, send an email to julia-opt+unsubscribe@googlegroups.com.
It’s unclear to me what “can’t use it in JuMP” means. What code are you running? Are there error messages? What do they say?
Can you provide the output from Libdl.dlopen_e(joinpath(ENV[“GUROBI_HOME”],”lib”,”libgurobi70.so”)) and then try Pkg.build("Gurobi")
again?
-Joey
To unsubscribe from this group and stop receiving emails from it, send an email to julia-opt+unsubscribe@googlegroups.com.
If you’re still getting the same key error, then the environment variable is still not being set properly, explaining the build error. From the screenshot, it appears you are using Juno? I’m not sure if that might explain the issue; I’d suggest opening an issue with the Juno repository, or on the julia-users mailing list.
(Not certain, but a quick-and-dirty fix might just be to do ENV["GUROBI_HOME"] = "/opt/gurobi700/linux64"; Pkg.build("Gurobi")
).
To unsubscribe from this group and stop receiving emails from it, send an email to julia-opt+unsubscribe@googlegroups.com.
This looks like a precompilation error with the Compat package; hopefully Pkg.update()
will fix this.
-Joey
To unsubscribe from this group and stop receiving emails from it, send an email to julia-opt+unsubscribe@googlegroups.com.