# Errors precompiling HomotopyContinuation.jl

**URL:** <https://discourse.julialang.org/t/errors-precompiling-homotopycontinuation-jl/110774>\
**Category:** New to Julia\
**Tags:** precompilation\
**Created:** [February 26, 2024, 12:23pm UTC](https://discourse.julialang.org/t/errors-precompiling-homotopycontinuation-jl/110774 "2024-02-26T12:23:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon238](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simon238/32/207297_2.png) [@Simon238](https://discourse.julialang.org/u/Simon238)\
**Post date:** [February 26, 2024, 12:23pm UTC](https://discourse.julialang.org/t/errors-precompiling-homotopycontinuation-jl/110774/1 "2024-02-26T12:23:41Z")

</div>

I am trying to install the `HomotopyContinuation.jl` package, but I get an error when I try to precompile this package. This is because the following packages throw an error when precomiling:  
✗ MPFR\_jll  
✗ FLINT\_jll  
✗ MPC\_jll  
✗ Arb\_jll  
✗ SymEngine\_jll  
✗ Arblib  
I installed julia on fedora using dnf. The entire error log is given below. What would you guys recommend I try next?

```bash
julia> import Pkg; Pkg.precompile()
Precompiling project...
  ✗ MPFR_jll
  ✗ FLINT_jll
  ✗ MPC_jll
  ✗ Arb_jll
  ✗ SymEngine_jll
  ✗ Arblib
  ✗ HomotopyContinuation
  0 dependencies successfully precompiled in 8 seconds. 153 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

HomotopyContinuation [f213a82b-91d6-5c5d-acf7-10f1c761b327]

Failed to precompile HomotopyContinuation [f213a82b-91d6-5c5d-acf7-10f1c761b327] to "/home/simon/.julia/compiled/v1.9/HomotopyContinuation/jl_ci4Dwi".
ERROR: LoadError: InitError: could not load library "libgmpxx.so.4"
libgmpxx.so.4: cannot open shared object file: No such file or directory
Stacktrace:
 [1] __init__ ()
   @ GMP_jll /usr/share/julia/stdlib/v1.9/GMP_jll/src/GMP_jll.jl:36
 [2] top-level scope
   @ ~/.julia/packages/JLLWrappers/pG9bm/src/toplevel_generators.jl:192
 [3] top-level scope
   @ stdin:3
during initialization of module GMP_jll
in expression starting at /home/simon/.julia/packages/FLINT_jll/qlrkP/src/wrappers/x86_64-linux-gnu.jl:4
in expression starting at /home/simon/.julia/packages/FLINT_jll/qlrkP/src/FLINT_jll.jl:2
in expression starting at stdin:3
ERROR: LoadError: Failed to precompile FLINT_jll [e134572f-a0d5-539d-bddf-3cad8db41a82] to "/home/simon/.julia/compiled/v1.9/FLINT_jll/jl_1xhfMi".
Stacktrace:
 [1] top-level scope
   @ ~/.julia/packages/JLLWrappers/pG9bm/src/toplevel_generators.jl:192
 [2] top-level scope
   @ stdin:3
in expression starting at /home/simon/.julia/packages/Arb_jll/vmAQc/src/wrappers/x86_64-linux-gnu.jl:4
in expression starting at /home/simon/.julia/packages/Arb_jll/vmAQc/src/Arb_jll.jl:2
in expression starting at stdin:3
ERROR: LoadError: Failed to precompile Arb_jll [d9960996-1013-53c9-9ba4-74a4155039c3] to "/home/simon/.julia/compiled/v1.9/Arb_jll/jl_cYZiCA".
Stacktrace:
 [1] top-level scope
   @ stdin:3
in expression starting at /home/simon/.julia/packages/Arblib/ZnCj1/src/Arblib.jl:1
in expression starting at stdin:3
ERROR: LoadError: Failed to precompile Arblib [fb37089c-8514-4489-9461-98f9c8763369] to "/home/simon/.julia/compiled/v1.9/Arblib/jl_VQIaSt".
Stacktrace:
 [1] top-level scope
   @ stdin:3
in expression starting at /home/simon/.julia/packages/HomotopyContinuation/zGEDd/src/HomotopyContinuation.jl:1
in expression starting at stdin:3
Stacktrace:
 [1] top-level scope
   @ REPL[1]:1

```

---

<div class="post-metadata">

**Author:** ![abraemer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abraemer/32/51403_2.png) [@abraemer](https://discourse.julialang.org/u/abraemer)\
**Post date:** [February 26, 2024, 1:17pm UTC](https://discourse.julialang.org/t/errors-precompiling-homotopycontinuation-jl/110774/2 "2024-02-26T13:17:51Z")

</div>

> [@Simon238](#):
>
> I installed julia on fedora using dnf. The entire error log is given below. What would you guys recommend I try next?

I’d recommend uninstalling Julia and reinstalling it using either one of [the official binaries](https://julialang.org/downloads/#supported_platforms) or perhaps better using [juliaup](https://julialang.org/downloads/#install_julia) by copying this incantation into a terminal of your choice:

```shell
$ curl -fsSL https://install.julialang.org | sh

```

Usually package maintainer replace shared libraries used by Julia with the standard ones of their distribution which will cause compilation failures like the one you are seeing.
