BuildExecutable.jl
BuildExecutable.jl copied to clipboard
Writing to /usr/lib
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?
I think the reason for this is that BuildExecutable
requires write access to the path returned by: abspath(dirname(Libdl.dlpath("libjulia")))
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
).
You might have figured this out by now but running Julia with admin privileges should fix it, i.e., sudo julia.