Problem with Plots

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]:100:

I need help.

Thanks in advance.

Joan

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

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

add Plots

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

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

I did it and It doesn`t work.

Thanks for the answer

Joan

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