# Error when installing solvers for JuMP

**URL:** https://discourse.julialang.org/t/error-when-installing-solvers-for-jump/71114
**Category:** Optimization (Mathematical)
**Tags:** jump, installation
**Created:** [November 7, 2021, 10:27pm UTC](https://discourse.julialang.org/t/error-when-installing-solvers-for-jump/71114 "2021-11-07T22:27:43Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jyscao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jyscao/32/29181_2.png) [@jyscao](https://discourse.julialang.org/u/jyscao)
#### Post date: [November 7, 2021, 10:27pm UTC](https://discourse.julialang.org/t/error-when-installing-solvers-for-jump/71114/1 "2021-11-07T22:27:44Z")

</div>

When I try to install one of the commonly used solvers like Cbc, Cpl or GLPK, I’d get the error message: `dependencies errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the packages`. And when I try to load them in the REPL, I’d run into `LoadError` on all of them, with the library providing the interface to each underlying solver not being defined, for example with GLPK:

```julia
julia> using GLPK
[Info: Precompiling GLPK [60bf3e95-4087-53dc-ae20-288a0d20c6a6]
WARNING: could not import GLPK_jll.libglpk into GLPK
ERROR: LoadError: UndefVarError: libglpk not defined
Stacktrace:
 [1] glp_version()
   @ GLPK ~/.julia/packages/GLPK/JpN1q/src/gen/libglpk_api.jl:678
# more stacktrace below

```

Similarly for:

- Clp - `ERROR: LoadError: UndefVarError: libClp not defined`
- Cbc - `ERROR: LoadError: UndefVarError: libcbcsolver not defined`

I’m using `julia version 1.7.0-rc1`, on M1 Macbook Air, so originally I thought maybe it had something to do with the solvers being not supported on Apple silicon yet. But I checking their Homebrew formulae, all 3 are supported on Apple silicon for Big Sur, which is the macOS version I’m on too.

So any ideas for why I’m running into these installation issues?

---

<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: [November 7, 2021, 11:32pm UTC](https://discourse.julialang.org/t/error-when-installing-solvers-for-jump/71114/2 "2021-11-07T23:32:15Z")

</div>

We haven’t built any of the solvers for M1 yet. We don’t use homebrew.

---

<div class="post-metadata">

### Author: ![jyscao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jyscao/32/29181_2.png) [@jyscao](https://discourse.julialang.org/u/jyscao)
#### Post date: [November 8, 2021, 3:54am UTC](https://discourse.julialang.org/t/error-when-installing-solvers-for-jump/71114/3 "2021-11-08T03:54:58Z")

</div>

Okay thanks, so the CPU architecture is likely the problem then?

---

<div class="post-metadata">

### Author: ![tlorans](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tlorans/32/19849_2.png) [@tlorans](https://discourse.julialang.org/u/tlorans)
#### Post date: [November 8, 2021, 5:23am UTC](https://discourse.julialang.org/t/error-when-installing-solvers-for-jump/71114/4 "2021-11-08T05:23:23Z")

</div>

I have the same issue with my M1 mini. I finally use the [COSMO solver](https://oxfordcontrol.github.io/COSMO.jl/stable/).

---

<div class="post-metadata">

### Author: ![jyscao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jyscao/32/29181_2.png) [@jyscao](https://discourse.julialang.org/u/jyscao)
#### Post date: [November 14, 2021, 6:22pm UTC](https://discourse.julialang.org/t/error-when-installing-solvers-for-jump/71114/5 "2021-11-14T18:22:56Z")

</div>

COSMO doesn’t work for integer linear programming. I ended up getting Cbc.jl to work using their custom install instructions as suggested here: [Error when compiling linear integer programming problem - #3 by odow](https://discourse.julialang.org/t/error-when-compiling-linear-integer-programming-problem/71121/3)
