# Mosek install broken on osx

**URL:** <https://discourse.julialang.org/t/mosek-install-broken-on-osx/96226>\
**Category:** Optimization (Mathematical)\
**Created:** [March 17, 2023, 6:06am UTC](https://discourse.julialang.org/t/mosek-install-broken-on-osx/96226 "2023-03-17T06:06:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![richardrl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/richardrl/32/47804_2.png) [@richardrl](https://discourse.julialang.org/u/richardrl)\
**Post date:** [March 17, 2023, 6:06am UTC](https://discourse.julialang.org/t/mosek-install-broken-on-osx/96226/1 "2023-03-17T06:06:51Z")

</div>

```julia
**(@v1.8) pkg>** add MosekTools, Mosek, Convex, Images, DelimitedFiles, Gadfly

**Updating** registry at `~/.julia/registries/General.toml`

**Resolving** package versions...

**Installed** MosekTools ─ v0.13.2

**Installed** Mosek ────── v10.0.2

**Updating** `~/.julia/environments/v1.8/Project.toml`

[6405355b] + Mosek v10.0.2

**No Changes** to `~/.julia/environments/v1.8/Manifest.toml`

**Building** Mosek → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/4d639c16d45bd7962613ff984046c120915d82b2/build.log`

**ERROR:** Error building `Mosek`:

ERROR: LoadError: MethodError: no method matching hasregistrykey(::WinReg.RegKey, ::String, ::String)

Closest candidates are:

hasregistrykey(!Matched::UInt32, ::String, ::String) at ~/.julia/packages/Mosek/5QnPP/deps/build.jl:36

Stacktrace:

[1] top-level scope

@ ~/.julia/packages/Mosek/5QnPP/deps/build.jl:189

[2] include(fname::String)

@ Base.MainInclude ./client.jl:476

[3] top-level scope

@ none:5

in expression starting at /Users/richard/.julia/packages/Mosek/5QnPP/deps/build.jl:151

```

I keep getting this error on OSX 12.2.1. I verified mosek works (can run it in command line) but the mosek julia plugin just won’t install. Is it not supported for new osx?

---

<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:** [March 17, 2023, 7:00am UTC](https://discourse.julialang.org/t/mosek-install-broken-on-osx/96226/2 "2023-03-17T07:00:54Z")

</div>

See [Can't build on Windows "no method matching hasregistrykey" · Issue #223 · MOSEK/Mosek.jl · GitHub](https://github.com/MOSEK/Mosek.jl/issues/223#issuecomment-1469001985)

The work-around is

```julia
] add WinReg@0.3 MosekTools

```

---

<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:** [March 17, 2023, 7:03am UTC](https://discourse.julialang.org/t/mosek-install-broken-on-osx/96226/3 "2023-03-17T07:03:09Z")

</div>

I’ve opened a PR to patch this in the general registry

> <https://github.com/JuliaRegistries/General/pull/79760>
>
> See 
> 
> \* https://github.com/MOSEK/Mosek.jl/issues/223
> \* https://github.com/M…OSEK/Mosek.jl/pull/224
> \* https://discourse.julialang.org/t/mosek-install-broken-on-osx/96226/2
