# Installation of Mosek.jl fails on Julia v0.5.2

**URL:** <https://discourse.julialang.org/t/installation-of-mosek-jl-fails-on-julia-v0-5-2/4498>\
**Category:** Optimization (Mathematical)\
**Created:** [June 27, 2017, 4:55pm UTC](https://discourse.julialang.org/t/installation-of-mosek-jl-fails-on-julia-v0-5-2/4498 "2017-06-27T16:55:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mzaffalon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mzaffalon/32/214168_2.png) [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Post date:** [June 27, 2017, 4:55pm UTC](https://discourse.julialang.org/t/installation-of-mosek-jl-fails-on-julia-v0-5-2/4498/1 "2017-06-27T16:55:47Z")

</div>

I cannot install `Mosek.jl` on a Windows 7 64 bit under Julia v0.5.2. I have downloaded and installed Mosek 8.0, mosek.exe is on the `PATH` and `ENV` contains the following keys:

```julia
"MOSEK_8_0_BINDIR" => "C:\\Program Files\\Mosek\\8\\tools\\platform\\win64x86\\bin"
"MOSEK_8_0_EXE" => "C:\\Program Files\\Mosek\\8\\tools\\platform\\win64x86\\bin\\mosek.exe"
"MOSEK_8_0_INSTALLDIR" => "C:\\Program Files\\Mosek\\8"

```

`Pkg.build` instead attemps to download and install Mosek 8.1.0 and fails:

```julia
julia> Pkg.build("Mosek")                                                                                      
INFO: Building Mosek                                                                                           
INFO: Get latest MOSEK version (http://download.mosek.com/stable/version)                                      
INFO: Latest MOSEK version = 8.1.0.12, currently installed = nothing                                           
INFO: Download MOSEK distro (http://download.mosek.com/stable/8.1.0.12/mosektoolswin64x86.zip)                 
INFO: Unpack MOSEK distro (C:\Users\michele.zaffalon\.julia\v0.5\Mosek\deps\downloads/mosektoolswin64x86.zip ->
C:\Users\michele.zaffalon\.julia\v0.5\Mosek\deps\src)                                                          
================================================[ERROR: Mosek]===============================================
                                                                                                               
                                                                                                               
LoadError: Failed to find any usable MOSEK libraries                                                           
while loading C:\Users\michele.zaffalon\.julia\v0.5\Mosek\deps\build.jl, in expression starting on line 165                                                                                                                

```

The installation is flawless on 0.6 and uses the system-wide version of Mosek.

---

<div class="post-metadata">

**Author:** ![iamed2](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iamed2/32/215082_2.png) [@iamed2](https://discourse.julialang.org/u/iamed2)\
**Post date:** [June 27, 2017, 6:19pm UTC](https://discourse.julialang.org/t/installation-of-mosek-jl-fails-on-julia-v0-5-2/4498/2 "2017-06-27T18:19:28Z")

</div>

It looks like this is probably a bug with the way installation is handled in older versions of Mosek.jl. Unfortunately, it looks like they stopped supporting Julia 0.5 as of about a week ago. I think your best bet is filing an issue there; maybe they would backport the build fix to a 0.5-compatible tag.

If you are okay upgrading to 0.6, now is a good time, but I understand there are reasons why that might not be possible in your case.

---

<div class="post-metadata">

**Author:** ![mzaffalon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mzaffalon/32/214168_2.png) [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Post date:** [June 28, 2017, 11:13am UTC](https://discourse.julialang.org/t/installation-of-mosek-jl-fails-on-julia-v0-5-2/4498/3 "2017-06-28T11:13:06Z")

</div>

[https://github.com/JuliaOpt/Mosek.jl/issues/114](https://github.com/JuliaOpt/Mosek.jl/issues/114)
