LoadError: ArgumentError: Package XXX not found in current path

Hello !

I work with Ubuntu 14.04 LTS.
I worked with Julia (Version 0.2.1) but suddenly encountered problems when I asked for a connection between Gurobi (newly installed) and Julia. The message is:

julia> import Pkg; Pkg.build(“Gurobi”)
ERROR: Pkg not found
in require at loading.jl:39

julia> import Pkg; Pkg.add(“Gurobi”)
ERROR: Pkg not found
in require at loading.jl:39

Formerly, I obtained:
julia> include(“ter_model.jl”)

ERROR: LoadError: ArgumentError: Package Gurobi not found in current
path:
- Run `import Pkg; Pkg.add("Gurobi")` to install the Gurobi package.

It is not I who installed the Julia package. It was working fine with Gurobi on the same machine, but with another login. When the academic Gurobi licence expired for this latter login (login1), I asked for a novel academic Gurobi licence for my own login (login2). Gurobi works fine under this login (login2). However, I cannot launch Gurobi from Julia if I am login2, because the command " import Pkg; Pkg.build(“Gurobi”)" fails.

I have absolutely no knowledge of Julia. Could you please

  1. either indicate me the series of instructions to install the current version of Julia properly, and tell me which Julia version I should install (Ubuntu 14.04 LTS, Gurobi Optimizer version 9.0.2 build v9.0.2rc0 (linux64))

  2. either indicate me the series of instructions to upgrade the current version of Julia, with compatibility between Julia, Gurobi 9.02 and Ubuntu 14.04 LTS.

I thank you in advance for your help.

Please do not post the same question twice, cf

1 Like