# DifferentialEquations not compiling

**URL:** <https://discourse.julialang.org/t/differentialequations-not-compiling/77764>\
**Category:** General Usage\
**Tags:** question, package, diffeq\
**Created:** [March 11, 2022, 5:17pm UTC](https://discourse.julialang.org/t/differentialequations-not-compiling/77764 "2022-03-11T17:17:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Veenty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/veenty/32/50940_2.png) [@Veenty](https://discourse.julialang.org/u/Veenty)\
**Post date:** [March 11, 2022, 5:17pm UTC](https://discourse.julialang.org/t/differentialequations-not-compiling/77764/1 "2022-03-11T17:17:10Z")

</div>

I’m using Juno and DifferentialEquations is failing to compile.

```julia
LoadError: LoadError: LoadError: LoadError: UndefVarError: StatisticalModel not defined
in expression starting at /Users/Veenty/.julia/packages/StatsBase/pJqvO/src/StatsBase.jl:23
in expression starting at /Users/Veenty/.julia/packages/Distributions/t65ji/src/Distributions.jl:3
in expression starting at /Users/Veenty/.julia/packages/DiffEqNoiseProcess/RRLKB/src/DiffEqNoiseProcess.jl:14
in expression starting at /Users/Veenty/.julia/packages/DifferentialEquations/el96s/src/DifferentialEquations.jl:6
include(::Module, ::String) at Base.jl:377
_require(::Base.PkgId) at loading.jl:1058
require(::Base.PkgId) at loading.jl:927
require(::Module, ::Symbol) at loading.jl:922
include(::Module, ::String) at Base.jl:377
_require(::Base.PkgId) at loading.jl:1058
require(::Base.PkgId) at loading.jl:927
require(::Module, ::Symbol) at loading.jl:922
include(::Module, ::String) at Base.jl:377
_require(::Base.PkgId) at loading.jl:1058
require(::Base.PkgId) at loading.jl:927
require(::Module, ::Symbol) at loading.jl:922
include(::Module, ::String) at Base.jl:377
_require(::Base.PkgId) at loading.jl:1058
require(::Base.PkgId) at loading.jl:927
require(::Module, ::Symbol) at loading.jl:922

```

---

<div class="post-metadata">

**Author:** ![goerch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/goerch/32/29122_2.png) [@goerch](https://discourse.julialang.org/u/goerch)\
**Post date:** [March 11, 2022, 5:31pm UTC](https://discourse.julialang.org/t/differentialequations-not-compiling/77764/2 "2022-03-11T17:31:51Z")

</div>

Unusual. Do you have any hints about the versions (of Julia and DifferentialEquations) you are using?

---

<div class="post-metadata">

**Author:** ![spcogg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/spcogg/32/16943_2.png) [@spcogg](https://discourse.julialang.org/u/spcogg)\
**Post date:** [July 11, 2022, 12:42pm UTC](https://discourse.julialang.org/t/differentialequations-not-compiling/77764/3 "2022-07-11T12:42:46Z")

</div>

Got the same compile error from a different package (Meshes.jl) that also depends on statsbase - have raised a ticket with them here [0.33.18 broken build · Issue #811 · JuliaStats/StatsBase.jl · GitHub](https://github.com/JuliaStats/StatsBase.jl/issues/811)

Not sure if you were using the same version as me, since for my use case the compile is working as long as it’s not the latest release (as of July 2022)

---

<div class="post-metadata">

**Author:** ![Salmon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/salmon/32/22968_2.png) [@Salmon](https://discourse.julialang.org/u/Salmon)\
**Post date:** [July 11, 2022, 1:38pm UTC](https://discourse.julialang.org/t/differentialequations-not-compiling/77764/4 "2022-07-11T13:38:16Z")

</div>

Im often encountering difficulties when precompiling due to some dependencies of DifferentialEquations. Have you tried to update your environment usually that fixes the problem for me at least. Strangely, sometimes I also need to reboot my system…

---

<div class="post-metadata">

**Author:** ![matyaspayn](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@matyaspayn](https://discourse.julialang.org/u/matyaspayn)\
**Post date:** [March 3, 2025, 12:39pm UTC](https://discourse.julialang.org/t/differentialequations-not-compiling/77764/5 "2025-03-03T12:39:12Z")

</div>

Do you reboot your computer or just the julia environment?

---

<div class="post-metadata">

**Author:** ![Veenty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/veenty/32/50940_2.png) [@Veenty](https://discourse.julialang.org/u/Veenty)\
**Post date:** [March 11, 2025, 8:41pm UTC](https://discourse.julialang.org/t/differentialequations-not-compiling/77764/6 "2025-03-11T20:41:13Z")

</div>

Back then I updated Julia and reestarted it, that made it work
