# Plots and GR\_jll is not working and fails to precompile

**URL:** <https://discourse.julialang.org/t/plots-and-gr-jll-is-not-working-and-fails-to-precompile/89657>\
**Category:** New to Julia\
**Tags:** plotting\
**Created:** [November 2, 2022, 12:54pm UTC](https://discourse.julialang.org/t/plots-and-gr-jll-is-not-working-and-fails-to-precompile/89657 "2022-11-02T12:54:01Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [August 3, 2023, 3:06pm UTC](https://discourse.julialang.org/t/plots-and-gr-jll-is-not-working-and-fails-to-precompile/89657/5 "2023-08-03T15:06:50Z")

</div>

Try the solution I found here:

> [@Plots, InitError: UndefVarError: GR\_jll not defined](https://discourse.julialang.org/t/plots-initerror-undefvarerror-gr-jll-not-defined/102448):
>
> In some circumstances, a user may encounter the following error. Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to "~/.julia/compiled/v1.9/Plots/jl\_crbDAx". ERROR: LoadError: InitError: UndefVarError: `GR_jll` not defined Stacktrace: [1] \_\_init\_\_() @ GR.GRPreferences ~/.julia/packages/GR/jehu0/src/preferences.jl:64

Basically, execute the following and then restart Julia:

```julia
Base.compilecache(Base.identify_package("GR"))

```

---

_[View the full topic](https://discourse.julialang.org/t/plots-and-gr-jll-is-not-working-and-fails-to-precompile/89657)._
