How to uninstall properly Julia under Unbuntu 14.04 LTS

Hello!

I encounter issues with Julia.
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> 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.

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

I have checked that Gurobi alone runs fine.

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.

Below are more details, if necessary.

I thank you in advance.
H.


system: Ubuntu 14.04 LTS


hardo-c@hp-hardo2014:~$ gedit .bashrc &

lines of .bashrc referring to gurobi:

export GUROBI_HOME=“/home/hardo-c/opt/gurobi902/linux64”
export PATH=“{PATH}:{GUROBI_HOME}/bin”
export LD_LIBRARY_PATH=“{LD_LIBRARY_PATH}:{GUROBI_HOME}/lib”

export LD_LIBRARY_PATH=“${GUROBI_HOME}/lib”


Gurobi was downloaded from: gurobi.com


Proof that Gurobi is running:

hardo-c@hp-hardo2014:~/recherche_bis/hamlet_gauche/ter_remi$ /home/hardo-c/opt/gurobi902/linux64/bin/gurobi_cl /home/hardo-c/opt/gurobi902/linux64/examples/data/coins.lp
Using license file /home/hardo-c/gurobi.lic
Set parameter LogFile to value gurobi.log
Academic license - for non-commercial use only

Gurobi Optimizer version 9.0.2 build v9.0.2rc0 (linux64)
Copyright (c) 2020, Gurobi Optimization, LLC

Read LP format model from file /home/hardo-c/opt/gurobi902/linux64/examples/data/coins.lp
Reading time = 0.08 seconds
: 4 rows, 9 columns, 16 nonzeros
Optimize a model with 4 rows, 9 columns and 16 nonzeros
Model fingerprint: 0x5ce1d538
Variable types: 4 continuous, 5 integer (0 binary)
Coefficient statistics:
Matrix range [6e-02, 7e+00]
Objective range [1e-02, 1e+00]
Bounds range [5e+01, 1e+03]
RHS range [0e+00, 0e+00]
Found heuristic solution: objective -0.0000000
Presolve removed 1 rows and 5 columns
Presolve time: 0.09s
Presolved: 3 rows, 4 columns, 9 nonzeros
Variable types: 0 continuous, 4 integer (0 binary)

Root relaxation: objective 1.134615e+02, 2 iterations, 0.00 seconds

Nodes    |    Current Node    |     Objective Bounds      |     Work

Expl Unexpl | Obj Depth IntInf | Incumbent BestBd Gap | It/Node Time

 0     0  113.46154    0    1   -0.00000  113.46154      -     -    0s

H 0 0 113.4500000 113.46154 0.01% - 0s
0 0 113.46154 0 1 113.45000 113.46154 0.01% - 0s

Explored 1 nodes (2 simplex iterations) in 0.29 seconds
Thread count was 8 (of 8 available processors)


Checking of ENV[“GUROBI_HOME”] (from Julia)

hardo-c@hp-hardo2014:~/recherche_bis/hamlet_gauche/ter_remi$ julia
_
_ _ ()_ | A fresh approach to technical computing
() | () () | Documentation: http://docs.julialang.org
_ _ | | __ _ | Type “help()” to list help topics
| | | | | | |/ ` | |
| | |
| | | | (
| | | Version 0.2.1 (2014-02-11 06:30 UTC)
/ |_|||_’_| |
|__/ | x86_64-linux-gnu

julia> ENV[“GUROBI_HOME”]
“/home/hardo-c/opt/gurobi902/linux64”


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


julia> versioninfo()
Julia Version 0.2.1
Commit e44b593* (2014-02-11 06:30 UTC)
Platform Info:
System: Linux (x86_64-linux-gnu)
WORD_SIZE: 64
BLAS: libblas.so.3
LAPACK: liblapack.so.3
LIBM: libopenlibm


You are still running Julia 0.2.1, which is ancient. It does not have Pkg.

I would recommend installing Julia 1.4.

(Incidentally, please quote code/output).

1 Like