Julia-1.4.2

Creating custom julia environment on NextJournal. Set JULIA_VERSION, JULIA_PATH, PATH environment variables and run the codes

tarArch="x86_64"
dirArch="x64"
BASEURL="https://julialang-s3.julialang.org/bin"
tarfile="julia-${JULIA_VERSION}-linux-${tarArch}.tar.gz"
dir="${dirArch}/${JULIA_VERSION%[.-]*}"
tarurl="${BASEURL}/linux/${dir}/${tarfile}"
sigfile="${tarfile}.asc"
sigurl="${tarurl}.asc"
shafile="julia-${JULIA_VERSION}.sha256"
shaurl="${BASEURL}/checksums/${shafile}"
keyfile="juliareleases.asc"
keyurl="https://julialang.org/${keyfile}"
wget -q --show-progress --progress=bar:force \
  $tarurl $sigurl $shaurl $keyurl
sha256sum -c --ignore-missing $shafile
export GNUPGHOME="$(mktemp -d)"
gpg --import $keyfile
gpg --batch --verify $sigfile $tarfile
gpgconf --kill all
cp $tarfile /results/
rm -rf "$GNUPGHOME" $tarfile $sigfile $shafile $keyfile
7.6s
Julia-1.4.2 (Bash)
julia-1.4.2-linux-x86_64.tar.gz
mkdir -p "$JULIA_PATH"
tar -xzf 
julia-1.4.2-linux-x86_64.tar.gz
-C "$JULIA_PATH" --strip-components 1
6.1s
Julia-1.4.2 (Bash)
julia -v
2.3s
Julia-1.4.2 (Bash)
julia -e 'using Pkg; pkg"up; add JSON; precompile; test JSON"'
71.0s
Julia-1.4.2 (Bash)
Runtimes (1)