# Genie, Nettle and Nettle\_jll keep failing to precompile

**URL:** <https://discourse.julialang.org/t/genie-nettle-and-nettle-jll-keep-failing-to-precompile/69081>\
**Category:** Package Management\
**Tags:** precompilation, genie\
**Created:** [October 2, 2021, 12:33am UTC](https://discourse.julialang.org/t/genie-nettle-and-nettle-jll-keep-failing-to-precompile/69081 "2021-10-02T00:33:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![olijg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/olijg/32/25210_2.png) [@olijg](https://discourse.julialang.org/u/olijg)\
**Post date:** [October 2, 2021, 12:33am UTC](https://discourse.julialang.org/t/genie-nettle-and-nettle-jll-keep-failing-to-precompile/69081/1 "2021-10-02T00:33:17Z")

</div>

Hello everyone.

I’ve been struggling with Genie on my laptop running Fedora for a while now. It worked once upon a time, but now it seems to fail to precompile along with Nettle and Nettle\_jll. Is anybody else having this problem? I’ve uninstalled and reinstalled both Julia and the packages in question. I’ve searched for a solution on google, but I can’t see any evidence of anyone with the same problem. I’m a bit of a beginner so I’m sorry if the answer is something obvious.

I’ve posted the output below.

 ![Screenshot from 2021-10-02 01-14-45](https://global.discourse-cdn.com/julialang/original/3X/9/d/9d9684ea4ab1d09ca9f6a45d2540ee0ec13b47cf.png)

```julia
[Info: Precompiling Genie [c43c736e-a2d1-11e8-161f-af95117fbd1e]
ERROR: LoadError: 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.6/GMP_jll/src/GMP_jll.jl:36
 [2] top-level scope
   @ ~/.julia/packages/JLLWrappers/bkwIo/src/toplevel_generators.jl:170
 [3] top-level scope (repeats 2 times)
   @ none:1
during initialization of module GMP_jll
in expression starting at /home/oliver/.julia/packages/Nettle_jll/LjWzs/src/wrappers/x86_64-linux-gnu.jl:4
in expression starting at /home/oliver/.julia/packages/Nettle_jll/LjWzs/src/Nettle_jll.jl:2
ERROR: LoadError: Failed to precompile Nettle_jll [4c82536e-c426-54e4-b420-14f461c4ed8b] to /home/oliver/.julia/compiled/v1.6/Nettle_jll/jl_40qsXH.
Stacktrace:
 [1] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1385
 [2] top-level scope (repeats 2 times)
   @ none:1
in expression starting at /home/oliver/.julia/packages/Nettle/NhQ2s/src/Nettle.jl:1
ERROR: LoadError: LoadError: Failed to precompile Nettle [49dea1ee-f6fa-5aa6-9a11-8816cee7d4b9] to /home/oliver/.julia/compiled/v1.6/Nettle/jl_qlADqE.
Stacktrace:
 [1] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1385
 [2] include(x::String)
   @ Genie ~/.julia/packages/Genie/xDyfL/src/Genie.jl:4
 [3] top-level scope
   @ ~/.julia/packages/Genie/xDyfL/src/Genie.jl:32
 [4] top-level scope (repeats 2 times)
   @ none:1
in expression starting at /home/oliver/.julia/packages/Genie/xDyfL/src/Encryption.jl:1
in expression starting at /home/oliver/.julia/packages/Genie/xDyfL/src/Genie.jl:1
ERROR: Failed to precompile Genie [c43c736e-a2d1-11e8-161f-af95117fbd1e] to /home/oliver/.julia/compiled/v1.6/Genie/jl_CsvylH.
Stacktrace:
 [1] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1385

```

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [October 2, 2021, 11:12am UTC](https://discourse.julialang.org/t/genie-nettle-and-nettle-jll-keep-failing-to-precompile/69081/2 "2021-10-02T11:12:08Z")

</div>

Welcome! How did you install Julia? `libgmpxx.so.4` should be part of the Julia distribution. This is for example the case for the [official binaries](https://julialang.org/downloads/).

My educated guess is that you installed Julia from the repositories of a Linux distribution? If so, you should complain with the maintainer of the package, or switch to using the official binaries (which is a better option anyways).

Actually, since you mentioned this is Fedora, @nalimilan may be the one to ping.

---

<div class="post-metadata">

**Author:** ![olijg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/olijg/32/25210_2.png) [@olijg](https://discourse.julialang.org/u/olijg)\
**Post date:** [October 2, 2021, 11:48am UTC](https://discourse.julialang.org/t/genie-nettle-and-nettle-jll-keep-failing-to-precompile/69081/3 "2021-10-02T11:48:33Z")

</div>

Managed to fix the problem with the help of the helpful folks on the Humans of Julia Discord server.

Installing gmp-devel fixed the problem.

---

<div class="post-metadata">

**Author:** ![Eduardo\_Garbin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eduardo_garbin/32/37013_2.png) [@Eduardo\_Garbin](https://discourse.julialang.org/u/Eduardo_Garbin)\
**Post date:** [July 16, 2022, 7:40am UTC](https://discourse.julialang.org/t/genie-nettle-and-nettle-jll-keep-failing-to-precompile/69081/4 "2022-07-16T07:40:57Z")

</div>

Thank you so much. Facing the same problem here.
