# Cannot save plots

**URL:** <https://discourse.julialang.org/t/cannot-save-plots/121009>\
**Category:** Visualization\
**Tags:** plots\
**Created:** [October 7, 2024, 1:36pm UTC](https://discourse.julialang.org/t/cannot-save-plots/121009 "2024-10-07T13:36:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brandonlivio](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@brandonlivio](https://discourse.julialang.org/u/brandonlivio)\
**Post date:** [October 7, 2024, 1:36pm UTC](https://discourse.julialang.org/t/cannot-save-plots/121009/1 "2024-10-07T13:36:14Z")

</div>

I cannot save a plot on Julia. The following code

```julia
using Plots
plot(1:10)
savefig("test.png")

```

returns

```julia
GKS: dlopen(/Users/brandonlivio/.julia/artifacts/4cab0d575711b60d292e4bd3088c55d27752a8ea/lib/cairoplugin.so, 1): Library not loaded: @rpath/libcairo.2.dylib
  Referenced from: /Users/brandonlivio/.julia/artifacts/4cab0d575711b60d292e4bd3088c55d27752a8ea/lib/cairoplugin.so
  Reason: Incompatible library version: cairoplugin.so requires version 11603.0.0 or later, but libcairo.2.dylib provides version 2.0.0
"/Users/brandonlivio/test.png"

```

I have reinstalled julia from scratch, installed only the pakage plots, and the problem persists. I am running on Mac 11.7.10 and using Julia 1.10.5 (the latest stable release)

---

<div class="post-metadata">

**Author:** ![TZ.Neumann](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tz.neumann/32/34438_2.png) [@TZ.Neumann](https://discourse.julialang.org/u/TZ.Neumann)\
**Post date:** [October 7, 2024, 7:03pm UTC](https://discourse.julialang.org/t/cannot-save-plots/121009/2 "2024-10-07T19:03:19Z")

</div>

That would help solving your problem. Remove the current GR Package and add older version GR v0.55.0. [https://github.com/JuliaPlots/Plots.jl/issues/3800](https://github.com/JuliaPlots/Plots.jl/issues/3800)

---

<div class="post-metadata">

**Author:** ![brandonlivio](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@brandonlivio](https://discourse.julialang.org/u/brandonlivio)\
**Post date:** [October 8, 2024, 7:40am UTC](https://discourse.julialang.org/t/cannot-save-plots/121009/3 "2024-10-08T07:40:15Z")

</div>

Indeed by downgrading it works, however I am now running a pretty old version of GR (current stabble release is 0.73.0)
