# How to fix precompilation bug on NLsolve?

**URL:** <https://discourse.julialang.org/t/how-to-fix-precompilation-bug-on-nlsolve/6430>\
**Category:** General Usage\
**Created:** [October 13, 2017, 9:05pm UTC](https://discourse.julialang.org/t/how-to-fix-precompilation-bug-on-nlsolve/6430 "2017-10-13T21:05:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [October 13, 2017, 9:05pm UTC](https://discourse.julialang.org/t/how-to-fix-precompilation-bug-on-nlsolve/6430/1 "2017-10-13T21:05:39Z")

</div>

Getting the following error from `using NLsolve`:

```julia
INFO: Precompiling module NLsolve.
Failed to precompile NLsolve to /home/ubuntu/.julia/lib/v0.6/NLsolve.ji.

Stacktrace:
 [1] compilecache(::String) at ./loading.jl:703
 [2] _require(::Symbol) at ./loading.jl:490
 [3] require(::Symbol) at ./loading.jl:398
 [4] include_string(::String, ::String) at ./loading.jl:515

```

* * *

what’s going on here? there is no additional message.

// some context. this is on an ubuntu server in an ec2 instance

  
  

extra info:

```julia
> Pkg.build("NLsolve")

INFO: Building SpecialFunctions

```

* * *

```julia
> versioninfo()

Julia Version 0.6.0
Commit 9036443 (2017-06-19 13:05 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, haswell)

```

* * *

```julia
> Pkg.status()

6 required packages:
 - DataStructures 0.7.2
 - IJulia 1.6.2
 - Interact 0.6.2
 - Julz 0.0.2+ master
 - Plots 0.13.1
 - Tokamak 0.0.0- master
66 additional packages:
 - AxisAlgorithms 0.2.0
 - BaseTestNext 0.2.2
 - BinDeps 0.6.0
 - Calculus 0.2.2
 - Codecs 0.4.0
 - ColorTypes 0.6.4
 - Colors 0.8.1
 - CommonSubexpressions 0.0.1
 - Compat 0.33.0
 - Conda 0.7.0
 - Contour 0.4.0
 - DataArrays 0.6.2
 - DataFrames 0.10.1
 - DeepDiffs 1.0.1
 - DiffBase 0.3.2
 - DiffResults 0.0.1
 - DiffRules 0.0.1
 - Distances 0.5.0
 - DocOpt 0.2.1
 - DocStringExtensions 0.4.1
 - Documenter 0.12.0
 - DualNumbers 0.3.0
 - Elliptic 0.4.1
 - EnglishText 0.5.0
 - FileIO 0.5.2
 - FixedPointNumbers 0.4.2
 - ForwardDiff 0.6.0
 - GZip 0.3.0
 - Interpolations 0.7.0
 - JSON 0.15.1
 - LineSearches 2.2.1
 - MacroTools 0.3.7
 - MbedTLS 0.5.1
 - Measures 0.1.0
 - Memoize 0.2.0
 - Mustache 0.3.0
 - NLSolversBase 2.1.3
 - NLsolve 0.11.0
 - NaNMath 0.2.6
 - Parameters 0.8.0
 - PkgDev 0.1.6
 - PlotThemes 0.1.4
 - PlotUtils 0.4.4
 - Polynomials 0.1.6
 - PyCall 1.15.0
 - QuadGK 0.1.3
 - Ratios 0.2.0
 - Reactive 0.6.0
 - RecipesBase 0.2.3
 - Reexport 0.0.3
 - Requires 0.4.3
 - Revise 0.1.0
 - SHA 0.5.1
 - ShowItLikeYouBuildIt 0.2.0
 - Showoff 0.1.1
 - SortingAlgorithms 0.1.1
 - SpecialFunctions 0.3.4
 - StaticArrays 0.6.4
 - StatsBase 0.19.0
 - SymPy 0.5.3
 - TestSetExtensions 1.0.0
 - URIParser 0.2.0
 - Unitful 0.3.0
 - WoodburyMatrices 0.2.2
 - YAML 0.2.1
 - ZMQ 0.5.0

```

---

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [October 14, 2017, 12:08am UTC](https://discourse.julialang.org/t/how-to-fix-precompilation-bug-on-nlsolve/6430/2 "2017-10-14T00:08:28Z")

</div>

just messed around with it and it eventually started working

---

<div class="post-metadata">

**Author:** ![guillempuig1](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/guillempuig1/32/4294_2.png) [@guillempuig1](https://discourse.julialang.org/u/guillempuig1)\
**Post date:** [August 1, 2018, 10:03am UTC](https://discourse.julialang.org/t/how-to-fix-precompilation-bug-on-nlsolve/6430/3 "2018-08-01T10:03:38Z")

</div>

Hello djsegal!  
How have you solved the problem? Because I’m having the same issue with other packages and I think it is due to the julia version .  
Thanks
