# Problem to install JuMP 0.9 in Julia 1.2.0 : ERROR: failed to clone from “JuMP”,, error: GitError(Code:ERROR, Class:Net, unsupported URL protocol)

**URL:** <https://discourse.julialang.org/t/problem-to-install-jump-0-9-in-julia-1-2-0-error-failed-to-clone-from-jump-error-giterror-code-error-class-net-unsupported-url-protocol/28365>\
**Category:** General Usage\
**Created:** [September 4, 2019, 9:55am UTC](https://discourse.julialang.org/t/problem-to-install-jump-0-9-in-julia-1-2-0-error-failed-to-clone-from-jump-error-giterror-code-error-class-net-unsupported-url-protocol/28365 "2019-09-04T09:55:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayce\_ram](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jayce_ram/32/3977_2.png) [@jayce\_ram](https://discourse.julialang.org/u/jayce_ram)\
**Post date:** [September 4, 2019, 9:55am UTC](https://discourse.julialang.org/t/problem-to-install-jump-0-9-in-julia-1-2-0-error-failed-to-clone-from-jump-error-giterror-code-error-class-net-unsupported-url-protocol/28365/1 "2019-09-04T09:55:37Z")

</div>

I’m trying to migrate to Julia version \>1 but I’m struggling with packages versions. I have installed Julia 1.2.0 in Atom, I have added the pack JuMP but Clp is not working in the latest version of JuMP. So, I have tried to add an old version of JuMP (version 0.19) in order to be able to use Clp solver. But I got the following error:

```julia
(v1.2) pkg> add “JuMP”, version = “0.19.0”
  Updating registry at `C:\Users\jra\.julia\registries\General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
    Fetching: [=====>] 10.5 % Fetching: [=====>] 11.0 % Fetching: [=====>] 11.5 % Fetching: [=====>] 12.0 % Fetching: [======>] 12.6 % Fetching: [======>] 13.1 % Fetching: [======>] 13.6 % Fetching: [======>] 14.1 % Fetching: [======>] 14.7 % Fetching: [=======>] 15.2 % Fetching: [=======>] 15.7 % Fetching: [=======>] 16.2 % Fetching: [=======>] 16.8 % Fetching: [=======>] 17.3 % Fetching: [========>] 17.8 % Fetching: [========>] 18.3 % Fetching: [========>] 18.8 % Fetching: [========>] 19.4 % Fetching: [========>] 19.9 % Fetching: [=========>] 20.4 % Fetching: [=========>] 20.9 % Fetching: [=========>] 21.5 % Fetching: [=========>] 22.0 % Fetching: [==========>] 22.5 % Fetching: [==========>] 23.0 % Fetching: [==========>] 23.6 % Fetching: [==========>] 24.1 % Fetching: [==========>] 24.6 % Fetching: [===========>] 25.1 % Fetching: [===========>] 25.7 % Fetching: [===========>] 26.2 % Fetching: [===========>] 26.7 % Fetching: [===========>] 27.2 % Fetching: [============>] 27.7 % Fetching: [============>] 28.3 % Fetching: [============>] 28.8 % Fetching: [============>] 29.3 % Fetching: [============>] 29.8 % Fetching: [=============>] 30.4 % Fetching: [=============>] 30.9 % Fetching: [=============>] 31.4 % Fetching: [=============>] 31.9 % Fetching: [=============>] 32.5 % Fetching: [==============>] 33.0 % Fetching: [==============>] 33.5 % Fetching: [==============>] 34.0 % Fetching: [==============>] 34.6 % Fetching: [===============>] 35.1 % Fetching: [===============>] 35.6 % Fetching: [===============>] 36.1 % Fetching: [===============>] 36.6 % Fetching: [===============>] 37.2 % Fetching: [================>] 37.7 % Fetching: [================>] 38.2 % Fetching: [================>] 38.7 % Fetching: [================>] 39.3 % Fetching: [================>] 39.8 % Fetching: [=================>] 40.3 % Fetching: [=================>] 40.8 % Fetching: [=================>] 41.4 % Fetching: [=================>] 41.9 % Fetching: [=================>] 42.4 % Fetching: [==================>] 42.9 % Fetching: [==================>] 43.5 % Fetching: [==================>] 44.0 % Fetching: [==================>] 44.5 % Fetching: [===================>] 45.0 % Fetching: [===================>] 45.5 % Fetching: [===================>] 46.1 % Fetching: [===================>] 46.6 % Fetching: [===================>] 47.1 % Fetching: [====================>] 47.6 % Fetching: [====================>] 48.2 % Fetching: [====================>] 48.7 % Fetching: [====================>] 49.2 % Fetching: [====================>] 49.7 % Fetching: [=====================>] 50.3 % Fetching: [=====================>] 50.8 % Fetching: [=====================>] 51.3 % Fetching: [=====================>] 51.8 % Fetching: [=====================>] 52.4 % Fetching: [======================>] 52.9 % Fetching: [======================>] 53.4 % Fetching: [======================>] 53.9 % Fetching: [======================>] 54.5 % Fetching: [======================>] 55.0 % Fetching: [=======================>] 55.5 % Fetching: [=======================>] 56.0 % Fetching: [=======================>] 56.5 % Fetching: [=======================>] 57.1 % Fetching: [========================>] 57.6 % Fetching: [========================>] 58.1 % Fetching: [========================>] 58.6 % Fetching: [========================>] 59.2 % Fetching: [========================>] 59.7 % Fetching: [=========================>] 60.2 % Fetching: [=========================>] 60.7 % Fetching: [=========================>] 61.3 % Fetching: [=========================>] 61.8 % Fetching: [=========================>] 62.3 % Fetching: [==========================>] 62.8 % Fetching: [==========================>] 63.4 % Fetching: [==========================>] 63.9 % Fetching: [==========================>] 64.4 % Fetching: [==========================>] 64.9 % Fetching: [===========================>] 65.4 % Fetching: [===========================>] 66.0 % Fetching: [===========================>] 66.5 % Fetching: [===========================>] 67.0 % Fetching: [============================>] 67.5 % Fetching: [============================>] 68.1 % Fetching: [============================>] 68.6 % Fetching: [============================>] 69.1 % Fetching: [============================>] 69.6 % Fetching: [=============================>] 70.2 % Fetching: [=============================>] 70.7 % Fetching: [=============================>] 71.2 % Fetching: [=============================>] 71.7 % Fetching: [=============================>] 72.3 % Fetching: [==============================>] 72.8 % Fetching: [==============================>] 73.3 % Fetching: [==============================>] 73.8 % Fetching: [==============================>] 74.3 % Fetching: [==============================>] 74.9 % Fetching: [===============================>] 75.4 % Fetching: [===============================>] 75.9 % Fetching: [===============================>] 76.4 % Fetching: [===============================>] 77.0 % Fetching: [===============================>] 77.5 % Fetching: [================================>] 78.0 % Fetching: [================================>] 78.5 % Fetching: [================================>] 79.1 % Fetching: [================================>] 79.6 % Fetching: [=================================>] 80.1 % Fetching: [=================================>] 80.6 % Fetching: [=================================>] 81.2 % Fetching: [=================================>] 81.7 % Fetching: [=================================>] 82.2 % Fetching: [==================================>] 82.7 % Fetching: [==================================>] 83.2 % Fetching: [==================================>] 83.8 % Fetching: [==================================>] 84.3 % Fetching: [==================================>] 84.8 % Fetching: [===================================>] 85.3 % Fetching: [===================================>] 85.9 % Fetching: [===================================>] 86.4 % Fetching: [===================================>] 86.9 % Fetching: [===================================>] 87.4 % Fetching: [====================================>] 88.0 % Fetching: [====================================>] 88.5 % Fetching: [====================================>] 89.0 % Fetching: [====================================>] 89.5 % Fetching: [=====================================>] 90.1 % Fetching: [=====================================>] 90.6 % Fetching: [=====================================>] 91.1 % Fetching: [=====================================>] 91.6 % Fetching: [=====================================>] 92.1 % Fetching: [======================================>] 92.7 % Fetching: [======================================>] 93.2 % Fetching: [======================================>] 93.7 % Fetching: [======================================>] 94.2 % Fetching: [======================================>] 94.8 % Fetching: [=======================================>] 95.3 % Fetching: [=======================================>] 95.8 % Fetching: [=======================================>] 96.3 % Fetching: [=======================================>] 96.9 % Fetching: [=======================================>] 97.4 % Fetching: [========================================>] 97.9 % Fetching: [========================================>] 98.4 % Fetching: [========================================>] 99.0 % Fetching: [========================================>] 99.5 % Fetching: [========================================>] 100.0
   Cloning git-repo `“JuMP”,`
ERROR: failed to clone from “JuMP”,, error: GitError(Code:ERROR,
Class:Net, unsupported URL protocol)

```

Anyone got the same problem or have an idea about this?  
Thanks.

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [September 4, 2019, 10:02am UTC](https://discourse.julialang.org/t/problem-to-install-jump-0-9-in-julia-1-2-0-error-failed-to-clone-from-jump-error-giterror-code-error-class-net-unsupported-url-protocol/28365/2 "2019-09-04T10:02:47Z")

</div>

Thats not the syntax you use in the Pkg REPL. This is how you do it:

```julia
pkg> add JuMP@0.19

```

---

<div class="post-metadata">

**Author:** ![jayce\_ram](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jayce_ram/32/3977_2.png) [@jayce\_ram](https://discourse.julialang.org/u/jayce_ram)\
**Post date:** [September 4, 2019, 10:30am UTC](https://discourse.julialang.org/t/problem-to-install-jump-0-9-in-julia-1-2-0-error-failed-to-clone-from-jump-error-giterror-code-error-class-net-unsupported-url-protocol/28365/3 "2019-09-04T10:30:43Z")

</div>

Thanks! I followed your suggestion and the installation was completed with success

```julia
(v1.2) pkg> add JuMP@0.19
 Resolving package versions...
  Updating `C:\Users\jra\.julia\environments\v1.2\Project.toml`
  [4076af6c] + JuMP v0.19.2
  Updating `C:\Users\jra\.julia\environments\v1.2\Manifest.toml`
  [9e28174c] + BinDeps v0.8.10
  [49dc2e85] + Calculus v0.5.0
  [bbf7d656] + CommonSubexpressions v0.2.0
  [163ba53b] + DiffResults v0.0.4
  [b552c78f] + DiffRules v0.0.10
  [f6369f11] + ForwardDiff v0.10.3
  [4076af6c] + JuMP v0.19.2
  [b8f27783] + MathOptInterface v0.8.4
  [77ba4419] + NaNMath v0.3.2
  [276daf66] + SpecialFunctions v0.8.0
  [90137ffa] + StaticArrays v0.11.0

```

An then Clp pack:

```julia
(v1.2) pkg> add Clp
 Resolving package versions...
  Updating `C:\Users\jra\.julia\environments\v1.2\Project.toml`
  [e2554f3b] + Clp v0.6.2
  Updating `C:\Users\jra\.julia\environments\v1.2\Manifest.toml`
  [e2554f3b] + Clp v0.6.2
  [f8899e07] + LinQuadOptInterface v0.6.0
  [fdba3010] + MathProgBase v0.7.7

```

But when I have tried to create a model, I got the following error:

```julia
model = Model(with_optimizer(Clp.Optimizer))
ERROR: error compiling Type: error compiling empty!: could not load library "C:\Users\jra\.julia\packages\Clp\IBQzB\deps\usr\bin\libClp-1.dll"

Stacktrace:
 [1] (::OptimizerFactory)() at C:\Users\jra\.julia\packages\JuMP\iGamg\src\JuMP.jl:99
 [2] #set_optimizer#77(::Bool, ::typeof(set_optimizer), ::Model, ::OptimizerFactory) at C:\Users\jra\.julia\packages\JuMP\iGamg\src\optimizer_interface.jl:38
 [3] #Model#7 at .\none:0 [inlined]
 [4] Model(::OptimizerFactory) at C:\Users\jra\.julia\packages\JuMP\iGamg\src\JuMP.jl:193
 [5] top-level scope at none:0

```

I’m not sure it is the good syntax but I didn’t find the good way to create a model.  
#UPDATE! For this problem I already got the solution: it’s necessary to build Clp before using it:

```julia
build Clp

```
