Precompile errors on Ubuntu 18.04 LTS (AWS)

I installed the Generic x86 Linux Julia 1.4.0 binary from here, onto an Ubuntu instance on AWS. Julia works fine at the REPL, but some packages cause errors during precompilation. For example,

Julia> using Distributions
[ Info: Precompiling Distributions [31c24e10-a181-5473-b8eb-7969acd0382f]
ERROR: could not load library "/home/ubuntu/julia-1.4.0/lib/julia/sys.so"
/home/ubuntu/julia-1.4.0/lib/julia/sys.so: failed to map segment from shared object

Do I need to additionally setup some environment variables?

1 Like

Is /home mounted with “noexec”? You can check /etc/fstab to see what options are specified when home is mounted.

Here are the contents:

> cat /etc/fstab
LABEL=cloudimg-rootfs	/	 ext4	defaults,discard	0 0

I think “defaults” includes “exec”.

That shouldn’t be an issue, or julia won’t start at all.

Are you hitting any limit?
Anything in dmesg?
You checked that the path is there right?
Does starting one, or multiple new julia processes work?

I have also same issue, after check in dmesg…identified low memory Error,is any solution use precompiled one

[ 4464.550217] Out of memory: Kill process 2708 (julia) score 386 or sacrifice child
[ 4464.555547] Killed process 3014 (julia) total-vm:727572kB, anon-rss:167824kB, file-rss:
676kB, shmem-rss:0kB