# Cannot Precompile Plots.jl due to GR

**URL:** https://discourse.julialang.org/t/cannot-precompile-plots-jl-due-to-gr/88230
**Category:** General Usage
**Created:** [October 4, 2022, 1:27pm UTC](https://discourse.julialang.org/t/cannot-precompile-plots-jl-due-to-gr/88230 "2022-10-04T13:27:25Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![t-bltg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/t-bltg/32/25526_2.png) [@t-bltg](https://discourse.julialang.org/u/t-bltg)
#### Post date: [October 4, 2022, 2:47pm UTC](https://discourse.julialang.org/t/cannot-precompile-plots-jl-due-to-gr/88230/7 "2022-10-04T14:47:20Z")

</div>

Thanks, now can set the environment variable `JULIA_DEBUG` to `GR` before starting julia ?

```bash
$ JULIA_DEBUG=GR julia
julia> using Plots
┌ Debug: import GR_jll failed
│ err = [...]
└ @ GR.GRPreferences [...]/GR.jl/src/preferences.jl:7

```

and post the output ?

Alternatively you can do this from within julia:

```julia
julia> ENV["JULIA_DEBUG"] = "GR";
julia> using Plots
[...]

```

It should trigger [GR.jl/preferences.jl at ce153a2626413668d0387d6ff62008e2dc3fbf55 · jheinen/GR.jl · GitHub](https://github.com/jheinen/GR.jl/blob/ce153a2626413668d0387d6ff62008e2dc3fbf55/src/preferences.jl#L6).

---

_[View the full topic](https://discourse.julialang.org/t/cannot-precompile-plots-jl-due-to-gr/88230)._
