So I did:
julia ~/.julia/packages/PackageCompiler/5u3Km/juliac.jl -vae hello.jl
Then these three files are generated under builddir/
hello hello.a hello.so
Then I tried to execute hello, but got errors:
$ ./hello
ERROR: could not load library "/home/user/Software/julia-0.7.0/bin/hello.so"
/home/user/Software/julia-0.7.0/bin/hello.so: cannot open shared object file: No such file or directory
To run it, I had to set JULIA_BINDIR=.
But I don’t want to change JULIA_BINDIR. What else can I do?