GR.jl icon indicating copy to clipboard operation
GR.jl copied to clipboard

build.jl fails in a shared installation (rmdir: Permission denied)

Open AndersBlomdell opened this issue 4 years ago • 2 comments

I'm trying to install julia in a directory shared by multiple users (write protected), but GR/<slug>/deps/build.jl fails, due to the fact that build.jl does not test for existing versions of grdir in GR/<slug>/deps/gr, changing the line

for d in (homedir(), "/opt", "/usr/local", "/usr")

to:

for d in (homedir(), pwd(), "/opt", "/usr/local", "/usr")

but I don't know the pwd() is in the right place in the list, or if there is a better solution to my problem.

AndersBlomdell avatar Oct 12 '20 17:10 AndersBlomdell

You may use ENV["GRDIR"]=pwd() before installing GR.

jheinen avatar Oct 13 '20 00:10 jheinen

Yes, but it will not be the same location, since pwd() in build.jl will be the one given by the sandbox it's running in, i.e. matching grdir = joinpath(dirname(@__FILE__), "..", "deps", "gr") in GR.jl.

But the right solution is probably to make use of Artifacts.jl, since I expected the files to be in an artifacts directory

AndersBlomdell avatar Oct 13 '20 06:10 AndersBlomdell