GR doesn't work in Julia

Then this should work:

(@v1.8) pkg> build GR
julia> using Plots
julia> x = 1:10; y = rand(10);
julia> plot(x, y, title = "Two Lines", label = ["Line 1" "Line 2"], lw = 3)

If not, search for libGR in ~/.julia/artifacts, delete the corresponding ~/.julia/artifacts/<sha1>, then run

(@v1.8) pkg> instantiate
  Downloaded artifact: GR

it should download the GR artifact again, you can then retry.

Did you download the official binaries at Download Julia to setup julia ?

2 Likes