# Problem with Plots

**URL:** https://discourse.julialang.org/t/problem-with-plots/78040
**Category:** New to Julia
**Created:** [March 17, 2022, 5:32pm UTC](https://discourse.julialang.org/t/problem-with-plots/78040 "2022-03-17T17:32:46Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Joan\_Flores](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joan_flores/32/34643_2.png) [@Joan\_Flores](https://discourse.julialang.org/u/Joan_Flores)
#### Post date: [March 17, 2022, 5:32pm UTC](https://discourse.julialang.org/t/problem-with-plots/78040/1 "2022-03-17T17:32:47Z")

</div>

Hello,

I have a problem with Plots, I can’t use it. I try to use for plottinf time series from seismology, but it doesn’t work.

\*\ ***I use Fedora 35 and julia 1.7.1.**  
when… using Plots… this is the results:

julia\> using Plots  
[Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]  
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for Xorg\_libX11\_jll [4f6342f7-b3d2-589e-9d20-edeb45f2b2bc]  
│ exception = Required dependency XSLT\_jll [aed1982a-8fda-507f-9586-7b0439959a61] failed to load from a cache file.  
└ @ Base loading.jl:1132  
┌ Warning: The call to compilecache failed to create a usable precompiled cache file for Xorg\_libXext\_jll [1082639a-0dae-5f34-9b06-72781eeb8cb3]  
│ exception = Required dependency XSLT\_jll [aed1982a-8fda-507f-9586-7b0439959a61] failed to load from a cache file.

**and it continues to do so and still does not work properly.**

**I try this:**

julia\> Pkg.free(“Plots”)  
ERROR: expected package `Plots [91a5bcdd]` to be pinned, tracking a path, or tracking a repository  
Stacktrace:  
[1] pkgerror(::String, ::Vararg{String})  
@ Pkg.Types /usr/share/julia/stdlib/v1.7/Pkg/src/Types.jl:68  
[2] update\_package\_free!(registries::Vector{Pkg.Registry.RegistryInstance}, pkg::Pkg.Types.PackageSpec,  
entry::Pkg.Types.PackageEntry)  
@ Pkg.Operations /usr/share/julia/stdlib/v1.7/Pkg/src/Operations.jl:1331  
[3] (::Pkg.Operations.var"#90#93"{Pkg.Types.Context})(pkg::Pkg.Types.PackageSpec)  
@ Pkg.Operations /usr/share/julia/stdlib/v1.7/Pkg/src/Operations.jl:1338  
[4] foreach  
@ ./abstractarray.jl:2694 [inlined]  
[5] free(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})  
@ Pkg.Operations /usr/share/julia/stdlib/v1.7/Pkg/src/Operations.jl:1338  
[6] free(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; all\_pkgs::Bool, kwargs::Base.Pair  
s{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})  
@ Pkg.API /usr/share/julia/stdlib/v1.7/Pkg/src/API.jl:396  
[7] free(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}  
, NamedTuple{(), Tuple{}}})  
@ Pkg.API /usr/share/julia/stdlib/v1.7/Pkg/src/API.jl:149  
[8] free(pkgs::Vector{Pkg.Types.PackageSpec})  
@ Pkg.API /usr/share/julia/stdlib/v1.7/Pkg/src/API.jl:144  
[9] #free#75  
@ /usr/share/julia/stdlib/v1.7/Pkg/src/API.jl:142 [inlined]  
[10] free  
@ /usr/share/julia/stdlib/v1.7/Pkg/src/API.jl:142 [inlined]  
[11] #free#74  
@ /usr/share/julia/stdlib/v1.7/Pkg/src/API.jl:141 [inlined]  
[12] free(pkg::String)  
@ Pkg.API /usr/share/julia/stdlib/v1.7/Pkg/src/API.jl:141  
[13] top-level scope  
@ REPL[4]💯

I need help.

Thanks in advance.

Joan

---

<div class="post-metadata">

### Author: ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)
#### Post date: [March 17, 2022, 7:36pm UTC](https://discourse.julialang.org/t/problem-with-plots/78040/2 "2022-03-17T19:36:48Z")

</div>

You can use triple backticks to format code, as described here:

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

<div class="post-metadata">

### Author: ![BetaQ](https://avatars.discourse-cdn.com/v4/letter/b/13edae/32.png) [@BetaQ](https://discourse.julialang.org/u/BetaQ)
#### Post date: [March 18, 2022, 10:12am UTC](https://discourse.julialang.org/t/problem-with-plots/78040/3 "2022-03-18T10:12:26Z")

</div>

Maybe you can try this:  
Press " ] " first and the `julia>` in terminal will become ` (@1.7) pkg>`  
Then type

```julia
add Plots

```

Then the Plots package will be installed or updated. I can draw figures using Plots after that.

---

<div class="post-metadata">

### Author: ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)
#### Post date: [March 18, 2022, 11:53am UTC](https://discourse.julialang.org/t/problem-with-plots/78040/4 "2022-03-18T11:53:36Z")

</div>

I tested on Fedora 34 / Julia 1.8 beta and it works fine.  
Please have a look at this thread and check your .bashrc file

> [@LoadError while precompiling Plots.jl on Ubuntu 18.04](https://discourse.julialang.org/t/loaderror-while-precompiling-plots-jl-on-ubuntu-18-04/58784/4):
>
> I had a similar problem in Fedora. Somehow I had an old export LD\_LIBRARY\_PATH=/usr/lib64 in my .bashrc, causing a similar problem. Before that I tried to delete the entire .julia directory, with no luck.

---

<div class="post-metadata">

### Author: ![Joan\_Flores](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joan_flores/32/34643_2.png) [@Joan\_Flores](https://discourse.julialang.org/u/Joan_Flores)
#### Post date: [March 20, 2022, 2:35pm UTC](https://discourse.julialang.org/t/problem-with-plots/78040/5 "2022-03-20T14:35:33Z")

</div>

I did it and It doesn`t work.

Thanks for the answer

Joan

---

<div class="post-metadata">

### Author: ![Joan\_Flores](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joan_flores/32/34643_2.png) [@Joan\_Flores](https://discourse.julialang.org/u/Joan_Flores)
#### Post date: [March 20, 2022, 2:43pm UTC](https://discourse.julialang.org/t/problem-with-plots/78040/6 "2022-03-20T14:43:53Z")

</div>

I don`t have

export LD\_LIBRARY\_PATH=/usr/lib64

in the .bashrc file. I don`t know what else to do in that case.

Thanks for the answer

Joan
