# Error adding Plots to v.1.11

**URL:** <https://discourse.julialang.org/t/error-adding-plots-to-v-1-11/124984>\
**Category:** New to Julia\
**Tags:** question, package\
**Created:** [January 20, 2025, 6:39pm UTC](https://discourse.julialang.org/t/error-adding-plots-to-v-1-11/124984 "2025-01-20T18:39:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mirandaholmes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mirandaholmes/32/52290_2.png) [@mirandaholmes](https://discourse.julialang.org/u/mirandaholmes)\
**Post date:** [January 20, 2025, 6:39pm UTC](https://discourse.julialang.org/t/error-adding-plots-to-v-1-11/124984/1 "2025-01-20T18:39:25Z")

</div>

I recently updated my version on Julia to the latest stable version, 1.11.2, using juliaup. Now I am trying to add the set of packages that I usually add. I was able to add a few pacakges with no problems, but now I am trying to add Plots.jl and I keep getting an error message. I am not sure how to proceed. I am reproducing the error message below.

I will also add: I have tried lots of things, including deleting all the packages I had previously added, and trying again; and starting a temporary environment and loading only Plots. Nothing works, I still get the same error message below, which seems to be a problem with UnitfulExt, however I do not know very much about how Julia manages packages so I can’t tell what the problem is. Any advice for how to proceed is appreciated.

(@v1.11) pkg\> add Plots  
Resolving package versions…  
No Changes to `~/.julia/environments/v1.11/Project.toml`  
No Changes to `~/.julia/environments/v1.11/Manifest.toml`  
Precompiling project…  
✗ Plots  
✗ Plots → UnitfulExt  
0 dependencies successfully precompiled in 55 seconds. 474 already precompiled.  
2 dependencies errored.  
For a report of the errors see `julia> err`. To retry use `pkg> precompile`

julia\> err  
PkgPrecompileError: The following 2 direct dependencies failed to precompile:

UnitfulExt

Failed to precompile UnitfulExt [0e51ec96-f580-5f12-a625-1297083d7970] to “/Users/mcholmes-cerfon/.julia/compiled/v1.11/UnitfulExt/jl\_HoQwkp”.  
[18916] signal 11 (2): Segmentation fault: 11  
in expression starting at none:0  
gks\_exit\_handler at /Users/mcholmes-cerfon/.julia/artifacts/3eeeb2e4ac7317a5dd5d1cbbf5fa2cf244e8833b/lib/libGR.dylib (unknown line)  
\_\_cxa\_finalize\_ranges at /usr/lib/system/libsystem\_c.dylib (unknown line)  
Allocations: 115843298 (Pool: 115839509; Big: 3789); GC: 44  
ERROR: LoadError: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to “/Users/mcholmes-cerfon/.julia/compiled/v1.11/Plots/jl\_1MSiIp”.  
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; flags::Cmd, cacheflags::Base.CacheFlags, reasons::Dict{String, Int64}, loadable\_exts::Nothing)  
@ Base ./loading.jl:3174  
[3] (::Base.var"#1110#1111"{Base.PkgId})()  
@ Base ./loading.jl:2579  
[4] mkpidlock(f::Base.var"#1110#1111"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale\_age::Int64, wait::Bool})  
@ FileWatching.Pidfile ~/.julia/juliaup/julia-1.11.2+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:95  
[5] #mkpidlock#6  
@ ~/.julia/juliaup/julia-1.11.2+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:90 [inlined]  
[6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale\_age::Int64})  
@ FileWatching.Pidfile ~/.julia/juliaup/julia-1.11.2+0.aarch64.apple.darwin14/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:116  
[7] #invokelatest#2  
@ ./essentials.jl:1057 [inlined]  
[8] invokelatest  
@ ./essentials.jl:1052 [inlined]  
[9] maybe\_cachefile\_lock(f::Base.var"#1110#1111"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale\_age::Int64)  
@ Base ./loading.jl:3698  
[10] maybe\_cachefile\_lock  
@ ./loading.jl:3695 [inlined]  
[11] \_require(pkg::Base.PkgId, env::String)  
@ Base ./loading.jl:2565  
[12] \_\_require\_prelocked(uuidkey::Base.PkgId, env::String)  
@ Base ./loading.jl:2388  
[13] #invoke\_in\_world#3  
@ ./essentials.jl:1089 [inlined]  
[14] invoke\_in\_world  
@ ./essentials.jl:1086 [inlined]  
[15] \_require\_prelocked(uuidkey::Base.PkgId, env::String)  
@ Base ./loading.jl:2375  
[16] macro expansion  
@ ./loading.jl:2314 [inlined]  
[17] macro expansion  
@ ./lock.jl:273 [inlined]  
[18] \_\_require(into::Module, mod::Symbol)  
@ Base ./loading.jl:2271  
[19] #invoke\_in\_world#3  
@ ./essentials.jl:1089 [inlined]  
[20] invoke\_in\_world  
@ ./essentials.jl:1086 [inlined]  
[21] require(into::Module, mod::Symbol)  
@ Base ./loading.jl:2260  
[22] include  
@ ./Base.jl:557 [inlined]  
[23] 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, UInt128}}, source::Nothing)  
@ Base ./loading.jl:2881  
[24] top-level scope  
@ stdin:6  
in expression starting at /Users/mcholmes-cerfon/.julia/packages/Plots/Ec1L1/ext/UnitfulExt.jl:4  
in expression starting at stdin:6  
Plots

Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to “/Users/mcholmes-cerfon/.julia/compiled/v1.11/Plots/jl\_DU1og8”.  
[18905] signal 11 (2): Segmentation fault: 11  
in expression starting at none:0  
gks\_exit\_handler at /Users/mcholmes-cerfon/.julia/artifacts/3eeeb2e4ac7317a5dd5d1cbbf5fa2cf244e8833b/lib/libGR.dylib (unknown line)  
\_\_cxa\_finalize\_ranges at /usr/lib/system/libsystem\_c.dylib (unknown line)  
Allocations: 115828888 (Pool: 115825098; Big: 3790); GC: 44

---

<div class="post-metadata">

**Author:** ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)\
**Post date:** [January 21, 2025, 5:59am UTC](https://discourse.julialang.org/t/error-adding-plots-to-v-1-11/124984/2 "2025-01-21T05:59:43Z")

</div>

The problem is fixed with GR 0.73.12.

---

<div class="post-metadata">

**Author:** ![mirandaholmes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mirandaholmes/32/52290_2.png) [@mirandaholmes](https://discourse.julialang.org/u/mirandaholmes)\
**Post date:** [January 21, 2025, 1:22pm UTC](https://discourse.julialang.org/t/error-adding-plots-to-v-1-11/124984/3 "2025-01-21T13:22:20Z")

</div>

Sorry I don’t understand this response. Should I be doing something different, instead of adding Plots using “add Plots” ?

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [January 21, 2025, 1:49pm UTC](https://discourse.julialang.org/t/error-adding-plots-to-v-1-11/124984/4 "2025-01-21T13:49:45Z")

</div>

```julia
using Pkg
Pkg.Registry.update()
Pkg.add("Plots")

```

---

<div class="post-metadata">

**Author:** ![mirandaholmes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mirandaholmes/32/52290_2.png) [@mirandaholmes](https://discourse.julialang.org/u/mirandaholmes)\
**Post date:** [January 21, 2025, 2:01pm UTC](https://discourse.julialang.org/t/error-adding-plots-to-v-1-11/124984/5 "2025-01-21T14:01:33Z")

</div>

Thank you. That didn’t work, I got the same error as above.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [January 21, 2025, 4:49pm UTC](https://discourse.julialang.org/t/error-adding-plots-to-v-1-11/124984/6 "2025-01-21T16:49:38Z")

</div>

Can you please also run

```julia
using Pkg
Pkg.status("GR_jll"; mode=Pkg.PKGMODE_MANIFEST)

```

You should see something like

```julia
Status `/tmp/Manifest.toml`
  [d2c73de3] GR_jll v0.73.12+0

```

Note the version `v0.73.12+0`. If you have `v0.73.11+0`, which is the bugged version, then also run

```julia
Pkg.update()

```

and make sure to see `GR_jll` being updated to `v0.73.12+0`.

---

<div class="post-metadata">

**Author:** ![mirandaholmes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mirandaholmes/32/52290_2.png) [@mirandaholmes](https://discourse.julialang.org/u/mirandaholmes)\
**Post date:** [January 22, 2025, 2:39pm UTC](https://discourse.julialang.org/t/error-adding-plots-to-v-1-11/124984/7 "2025-01-22T14:39:34Z")

</div>

That worked. Thank you.
