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

Writing to /usr/lib

Open trans opened this issue 8 years ago • 3 comments

When I run the script:

using BuildExecutable
build_executable("neapolitan", "src/neapolitan-command.jl", "bin", "native")

I get this error:

ERROR: LoadError: Unable to modify /usr/lib/x86_64-linux-gnu/libneapolitan.ji

So it is trying to write to /usr/lib! How to fix?

trans avatar Jan 16 '17 04:01 trans

I think the reason for this is that BuildExecutable requires write access to the path returned by: abspath(dirname(Libdl.dlpath("libjulia")))

dhoegh avatar Jan 29 '17 14:01 dhoegh

Why is that? I would think any generated files would be put into the folder specified by the third argument. I think this would prevent users of normal packaging systems from using BuildExecutable. I think this also applies to the final output file (which is currently set to go into /usr/bin).

alhirzel avatar Feb 07 '17 04:02 alhirzel

You might have figured this out by now but running Julia with admin privileges should fix it, i.e., sudo julia.

loicspace avatar Jun 22 '17 18:06 loicspace