# How to install DSDP.jl

**URL:** https://discourse.julialang.org/t/how-to-install-dsdp-jl/33033
**Category:** Optimization (Mathematical)
**Tags:** optimization
**Created:** [January 6, 2020, 4:37pm UTC](https://discourse.julialang.org/t/how-to-install-dsdp-jl/33033 "2020-01-06T16:37:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tdp](https://avatars.discourse-cdn.com/v4/letter/t/50afbb/32.png) [@tdp](https://discourse.julialang.org/u/tdp)
#### Post date: [January 6, 2020, 4:37pm UTC](https://discourse.julialang.org/t/how-to-install-dsdp-jl/33033/1 "2020-01-06T16:37:18Z")

</div>

Hi,  
When trying to install [DSDP.jl](https://github.com/joehuchette/DSDP.jl) using the command below, I get the error below about incompatible versions for `MathOptInterface`. How would I resolve this?

I have version 0.99 of `MathOptInterface` and version `1.3.0` of Julia. Confusingly, [DSDP.jl seems to require](https://github.com/joehuchette/DSDP.jl/blob/bff9d1da8add7886fb727d65a1593f504b897bbd/REQUIRE) version 0.8 or 0.9 of `MathOptInterface` (in line with this issue [MathOptInterface installation? Is it a problem with JuMP 0.19.2 and Julia version 1.2.0? · Issue #61 · jump-dev/Clp.jl · GitHub](https://github.com/JuliaOpt/Clp.jl/issues/61)), so I don’t see what the problem might be…

## Command

```julia-auto
using Pkg
Pkg.add(PackageSpec(url="https://github.com/joehuchette/DSDP.jl.git"))

```

## Error

```julia-auto
julia> Pkg.add(PackageSpec(url="https://github.com/joehuchette/DSDP.jl.git"))
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Updating git-repo `https://github.com/joehuchette/DSDP.jl.git`
[ Info: Assigning UUID 91c74d97-168f-557e-8dc5-35017b1487d4 to DSDP
  Updating git-repo `https://github.com/joehuchette/DSDP.jl.git`
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package MathOptInterface [b8f27783]:
 MathOptInterface [b8f27783] log:
 ├─possible versions are: 0.9.9 or uninstalled
 ├─MathOptInterface [b8f27783] is fixed to version 0.9.9
 └─restricted to versions 0.8 by DSDP [91c74d97] — no versions left
   └─DSDP [91c74d97] log:
     ├─possible versions are: 0.0.0 or uninstalled
     └─DSDP [91c74d97] is fixed to version 0.0.0
Stacktrace:
 [1] check_constraints(::Pkg.GraphType.Graph) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/GraphType.jl:937
 [2] Pkg.GraphType.Graph(::Dict{Base.UUID,Set{VersionNumber}}, ::Dict{Base.UUID,Dict{Pkg.Types.VersionRange,Dict{String,Base.UUID}}}, ::Dict{Base.UUID,Dict{Pkg.Types.VersionRange,Dict{String,Pkg.Types.VersionSpec}}}, ::Dict{Base.UUID,String}, ::Dict{Base.UUID,Pkg.Types.VersionSpec}, ::Dict{Base.UUID,Pkg.Types.Fixed}, ::Bool) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/GraphType.jl:364
 [3] deps_graph(::Pkg.Types.Context, ::Dict{Base.UUID,String}, ::Dict{Base.UUID,Pkg.Types.VersionSpec}, ::Dict{Base.UUID,Pkg.Types.Fixed}) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/Operations.jl:437
 [4] resolve_versions!(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/Operations.jl:320
 [5] #add#112(::Bool, ::Pkg.BinaryPlatforms.MacOS, ::typeof(Pkg.Operations.add), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}, ::Array{Base.UUID,1}) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/Operations.jl:1010
 [6] #add at ./none:0 [inlined]
 [7] #add#25(::Bool, ::Pkg.BinaryPlatforms.MacOS, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Pkg.API.add), ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:102
 [8] add(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:72
 [9] #add#20 at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:69 [inlined]
 [10] add(::Pkg.Types.PackageSpec) at /Users/sabae/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.3/Pkg/src/API.jl:66
 [11] top-level scope at REPL[5]:1

```

---

<div class="post-metadata">

### Author: ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)
#### Post date: [January 6, 2020, 4:46pm UTC](https://discourse.julialang.org/t/how-to-install-dsdp-jl/33033/2 "2020-01-06T16:46:32Z")

</div>

[This line](https://github.com/joehuchette/DSDP.jl/blob/bff9d1da8add7886fb727d65a1593f504b897bbd/REQUIRE#L3) actually means that it supports MOI version [0.8, 0.9), so it _doesn’t_ support the latest release of MOI. DSDP.jl will need to be updated.

---

<div class="post-metadata">

### Author: ![tdp](https://avatars.discourse-cdn.com/v4/letter/t/50afbb/32.png) [@tdp](https://discourse.julialang.org/u/tdp)
#### Post date: [January 6, 2020, 5:14pm UTC](https://discourse.julialang.org/t/how-to-install-dsdp-jl/33033/3 "2020-01-06T17:14:03Z")

</div>

Thank you for your help. I pinged the open issue thread [here](https://github.com/JuliaOpt/MathOptInterface.jl/issues/736) about transitioning DSDP.jl to MOI v0.9.

---

<div class="post-metadata">

### Author: ![blegat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/blegat/32/217090_2.png) [@blegat](https://discourse.julialang.org/u/blegat)
#### Post date: [March 26, 2025, 1:30pm UTC](https://discourse.julialang.org/t/how-to-install-dsdp-jl/33033/4 "2025-03-26T13:30:47Z")

</div>

For future reference, this fixed now and the latest version of DSDP supports the latest version of JuMP
