# \`using Plots\` errors (\`ERROR: LoadError: InitError: UndefVarError: \`GR\_jll\` not defined\`)

**URL:** https://discourse.julialang.org/t/using-plots-errors-error-loaderror-initerror-undefvarerror-gr-jll-not-defined/113742
**Category:** General Usage
**Tags:** plots
**Created:** [May 2, 2024, 2:16pm UTC](https://discourse.julialang.org/t/using-plots-errors-error-loaderror-initerror-undefvarerror-gr-jll-not-defined/113742 "2024-05-02T14:16:33Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [May 2, 2024, 2:26pm UTC](https://discourse.julialang.org/t/using-plots-errors-error-loaderror-initerror-undefvarerror-gr-jll-not-defined/113742/2 "2024-05-02T14:26:15Z")

</div>

Did you try these specific instructions that I posted yesterday?

> [@GR\_jll not compiling in Julia 1.10.3](https://discourse.julialang.org/t/gr-jll-not-compiling-in-julia-1-10-3/113693/13):
>
> Here’s workaround until the registry changes propagate. This includes force precompilation of GR. using Pkg # skip activation of a temp environment if you are trying to fix your environment Pkg.activate(; temp=true) # Add LERC\_jll version 3 Pkg.add([PackageSpec(name="GR"), PackageSpec(name="LERC\_jll", version="3")]) # Force GR to precompile Base.compilecache(Base.PkgId(Base.UUID("28b8d3ca-fb5f-59d9-8090-bfdbd6d07a71"), "GR"))

```julia
using Pkg
# skip activation of a temp environment if you are trying to fix your environment
Pkg.activate(; temp=true)
# Add LERC_jll version 3
Pkg.add([
    PackageSpec(name="GR"),
    PackageSpec(name="LERC_jll", version="3")
])
# Force GR to precompile
Base.compilecache(Base.PkgId(Base.UUID("28b8d3ca-fb5f-59d9-8090-bfdbd6d07a71"), "GR"))

```

There was package, `LERC_jll` which contained a binary neeed by libtiff which is need by GR which is needed by plots. A few days ago that library was updated to version 4 form version 3. It turns out libtiff is not compatible with version 4 which started the failure cascade.

I should also mention that perhaps Plots.jl should not be the first plotting package you reach for, although I understand why that might seem like the most obvious choice. As you can see above it has a a lot of external dependencies.

I generally reach for Makie.jl first, specifically the GLMakie.jl backend.

---

_[View the full topic](https://discourse.julialang.org/t/using-plots-errors-error-loaderror-initerror-undefvarerror-gr-jll-not-defined/113742)._
