# 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:** 3

<div class="post-metadata">

**Author:** ![Engineering\_Science](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/engineering_science/32/44030_2.png) [@Engineering\_Science](https://discourse.julialang.org/u/Engineering_Science)\
**Post date:** [November 4, 2022, 1:57pm UTC](https://discourse.julialang.org/t/plots-and-gr-jll-is-not-working-and-fails-to-precompile/89657/3 "2022-11-04T13:57:40Z")

</div>

Hello

It did not work. Please see below.

**CODE**  
I updated the code as follows:

"import Pkg;

Pkg.add(“Plots”);

Pkg.add(“GR\_jll”);

using GR\_jll;

using Plots;

Pkg.status()

f(x) = sin(x);

plot(f,0,2\*pi,title=“First Graph”,xlabe = “x”, ylabel = “y”);

g(x) = cos(x);

# list of two functions f and g included in the plot

plot([f,g],0,2\*pi,title=“First Graph”,xlabe = “x”, ylabel = “y”);

savefig(“firstgraph.pdf”);"

_ **ERROR MESSAGE** _  
The error message is as follows:

" Updating registry at `C:\Users\Tshepho\.julia\registries\General.toml`  
Resolving package versions…  
No Changes to `C:\Users\Tshepho\.julia\environments\v1.8\Project.toml`  
No Changes to `C:\Users\Tshepho\.julia\environments\v1.8\Manifest.toml`  
Resolving package versions…  
No Changes to `C:\Users\Tshepho\.julia\environments\v1.8\Project.toml`  
No Changes to `C:\Users\Tshepho\.julia\environments\v1.8\Manifest.toml`  
ERROR: LoadError: InitError: could not load library “C:\Users\Tshepho.julia\artifacts\c3712e14d6f387fa0a6d1509acbdd4b8976e87d1\bin\Qt5Concurrent.dll”  
The specified module could not be found.  
Stacktrace:  
[1] dlopen(s::String, flags::UInt32; throw\_error::Bool)  
@ Base.Libc.Libdl .\libdl.jl:117  
[2] dlopen(s::String, flags::UInt32)  
@ Base.Libc.Libdl .\libdl.jl:116  
[3] macro expansion  
@ C:\Users\Tshepho.julia\packages\JLLWrappers\QpMQW\src\products\library\_generators.jl:54 [inlined]  
[4] **init** ()  
@ Qt5Base\_jll C:\Users\Tshepho.julia\packages\Qt5Base\_jll\lpIK6\src\wrappers\x86\_64-w64-mingw32-cxx11.jl:31  
[5] \_include\_from\_serialized(pkg::Base.PkgId, path::String, depmods::Vector{Any})  
@ Base .\loading.jl:831  
[6] \_require\_search\_from\_serialized(pkg::Base.PkgId, sourcepath::String, build\_id::UInt64)  
@ Base .\loading.jl:1039  
[7] \_require(pkg::Base.PkgId)  
@ Base .\loading.jl:1315  
[8] \_require\_prelocked(uuidkey::Base.PkgId)  
@ Base .\loading.jl:1200  
[9] macro expansion  
@ .\loading.jl:1180 [inlined]  
[10] macro expansion  
@ .\lock.jl:223 [inlined]  
[11] require(into::Module, mod::Symbol)  
@ Base .\loading.jl:1144  
[12] include(mod::Module, \_path::String)  
@ Base .\Base.jl:419  
[13] top-level scope  
@ C:\Users\Tshepho.julia\packages\JLLWrappers\QpMQW\src\toplevel\_generators.jl:188  
[14] include  
@ .\Base.jl:419 [inlined]  
[15] include\_package\_for\_output(pkg::Base.PkgId, input::String, depot\_path::Vector{String}, dl\_load\_path::Vector{String}, load\_path::Vector{String}, concrete\_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)  
@ Base .\loading.jl:1554  
[16] top-level scope  
@ stdin:1  
during initialization of module Qt5Base\_jll  
in expression starting at C:\Users\Tshepho.julia\packages\GR\_jll\48Bah\src\wrappers\x86\_64-w64-mingw32-cxx11.jl:13  
in expression starting at C:\Users\Tshepho.julia\packages\GR\_jll\48Bah\src\GR\_jll.jl:2  
in expression starting at stdin:1  
ERROR: LoadError: Failed to precompile GR\_jll [d2c73de3-f751-5644-a686-071e5b155ba9] to C:\Users\Tshepho.julia\compiled\v1.8\GR\_jll\jl\_FCD7.tmp.  
Stacktrace:  
[1] error(s::String)  
@ Base .\error.jl:35  
[2] compilecache(pkg::Base.PkgId, path::String, internal\_stderr::IO, internal\_stdout::IO, keep\_loaded\_modules::Bool)  
@ Base .\loading.jl:1707  
[3] compilecache  
@ .\loading.jl:1651 [inlined]  
[4] \_require(pkg::Base.PkgId)  
@ Base .\loading.jl:1337  
[5] \_require\_prelocked(uuidkey::Base.PkgId)  
@ Base .\loading.jl:1200  
[6] macro expansion  
@ .\loading.jl:1180 [inlined]  
[7] macro expansion  
@ .\lock.jl:223 [inlined]  
[8] require(into::Module, mod::Symbol)  
@ Base .\loading.jl:1144  
in expression starting at c:\Users\Tshepho\Documents\4. Computational Methods\Math Computer Languages\Julia-Workshop\graphing.jl:4"

---

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