# Plots, InitError: UndefVarError: GR\_jll not defined

**URL:** https://discourse.julialang.org/t/plots-initerror-undefvarerror-gr-jll-not-defined/102448
**Category:** General Usage
**Tags:** plot
**Created:** [August 3, 2023, 1:43pm UTC](https://discourse.julialang.org/t/plots-initerror-undefvarerror-gr-jll-not-defined/102448 "2023-08-03T13:43:16Z")
**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 9, 2023, 8:31am UTC](https://discourse.julialang.org/t/plots-initerror-undefvarerror-gr-jll-not-defined/102448/5 "2023-08-09T08:31:44Z")

</div>

Interesting. So if ENV[“GRDIR”] is set to a local build, `import GR_jll` will throw an error? Is that still the case now that we are not automatically loading any shared libraries via GR\_jll due to using `dont_dlopen=true` in the recipe?

> <https://github.com/JuliaPackaging/Yggdrasil/blob/ebf13fc0f139af3085da65ed3ceba952acf4395b/G/GR/build_tarballs.jl#L81-L84>

@jheinen, could you test if we still need that `try` - `catch` block in your environment?

If `GR_jll` still throws an error on import, I wonder it would make sense to develop a placeholder GR\_jll that is just empty?

I still wonder if we can insert something under `if binary == "GR_jll"` where `GR_jll` is presumed to be loaded to catch the condition where `GR_jll` is still undefined and then recommend the compile cache fix above?

---

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