# How to uninstall properly Julia under Unbuntu 14.04 LTS

**URL:** <https://discourse.julialang.org/t/how-to-uninstall-properly-julia-under-unbuntu-14-04-lts/41888>\
**Category:** General Usage\
**Created:** [June 22, 2020, 7:54pm UTC](https://discourse.julialang.org/t/how-to-uninstall-properly-julia-under-unbuntu-14-04-lts/41888 "2020-06-22T19:54:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eichhoernchen](https://avatars.discourse-cdn.com/v4/letter/e/aeb1de/32.png) [@eichhoernchen](https://discourse.julialang.org/u/eichhoernchen)\
**Post date:** [June 22, 2020, 7:54pm UTC](https://discourse.julialang.org/t/how-to-uninstall-properly-julia-under-unbuntu-14-04-lts/41888/1 "2020-06-22T19:54:02Z")

</div>

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](http://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](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

* * *

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [June 23, 2020, 7:26am UTC](https://discourse.julialang.org/t/how-to-uninstall-properly-julia-under-unbuntu-14-04-lts/41888/2 "2020-06-23T07:26:49Z")

</div>

> [@eichhoernchen](#):
>
> I worked with Julia (Version 0.2.1) but suddenly encountered problems when I asked for a connection between Gurobi (newly installed) and Julia

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](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757/)).
