diff --git a/README.md b/README.md index 7ec8d1f..a819180 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ * fish shell * tmux, w3m * emacs-nox with ESS -* Julia 1.1.0 +* Julia 1.5.3 * R * .gitconfig * .ssh/config @@ -35,6 +35,11 @@ 3. Launch emacs and run `M-x package-install` to install `julia-mode`. +## Installing Julia locally + +If you just want to install Julia, and do not have root privileges, +run `./install_julia.sh`. + **Daniel Vedder** *10/7/2018* diff --git a/README.md b/README.md index 7ec8d1f..a819180 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ * fish shell * tmux, w3m * emacs-nox with ESS -* Julia 1.1.0 +* Julia 1.5.3 * R * .gitconfig * .ssh/config @@ -35,6 +35,11 @@ 3. Launch emacs and run `M-x package-install` to install `julia-mode`. +## Installing Julia locally + +If you just want to install Julia, and do not have root privileges, +run `./install_julia.sh`. + **Daniel Vedder** *10/7/2018* diff --git a/install_julia.sh b/install_julia.sh new file mode 100644 index 0000000..c8f312b --- /dev/null +++ b/install_julia.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# Install the newest version of Julia (1.5.3) for the local user. +# Automates the instructions found here: https://julialang.org/downloads/platform/#linux_and_freebsd +# +# Daniel Vedder, 2/1/2021 + +# === USAGE === +# +# 1. copy this script into your home directory +# 2. make it executable: `chmod +x install_julia.sh` +# 3. run it (from your home directory): `./install_julia.sh` +# + +mkdir .julia +cd .julia + +wget https://julialang-s3.julialang.org/bin/linux/x64/1.5/julia-1.5.3-linux-x86_64.tar.gz . +tar xzvf julia-1.5.3-linux-x86_64.tar.gz + +mv julia-1.5.3/* . +rmdir julia-1.5.3 + +echo "export PATH=\"$PATH:$HOME/.julia/bin\"" >> ~/.bashrc diff --git a/README.md b/README.md index 7ec8d1f..a819180 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ * fish shell * tmux, w3m * emacs-nox with ESS -* Julia 1.1.0 +* Julia 1.5.3 * R * .gitconfig * .ssh/config @@ -35,6 +35,11 @@ 3. Launch emacs and run `M-x package-install` to install `julia-mode`. +## Installing Julia locally + +If you just want to install Julia, and do not have root privileges, +run `./install_julia.sh`. + **Daniel Vedder** *10/7/2018* diff --git a/install_julia.sh b/install_julia.sh new file mode 100644 index 0000000..c8f312b --- /dev/null +++ b/install_julia.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# Install the newest version of Julia (1.5.3) for the local user. +# Automates the instructions found here: https://julialang.org/downloads/platform/#linux_and_freebsd +# +# Daniel Vedder, 2/1/2021 + +# === USAGE === +# +# 1. copy this script into your home directory +# 2. make it executable: `chmod +x install_julia.sh` +# 3. run it (from your home directory): `./install_julia.sh` +# + +mkdir .julia +cd .julia + +wget https://julialang-s3.julialang.org/bin/linux/x64/1.5/julia-1.5.3-linux-x86_64.tar.gz . +tar xzvf julia-1.5.3-linux-x86_64.tar.gz + +mv julia-1.5.3/* . +rmdir julia-1.5.3 + +echo "export PATH=\"$PATH:$HOME/.julia/bin\"" >> ~/.bashrc diff --git a/setup.sh b/setup.sh index e14e70b..8638cf2 100755 --- a/setup.sh +++ b/setup.sh @@ -22,12 +22,12 @@ chsh -s /usr/bin/fish echo "Installing Julia v1.1 to /usr/local/lib..." -wget https://julialang-s3.julialang.org/bin/linux/x64/1.1/julia-1.1.0-linux-x86_64.tar.gz -tar xzf julia-1.1.0-linux-x86_64.tar.gz +wget https://julialang-s3.julialang.org/bin/linux/x64/1.5/julia-1.5.3-linux-x86_64.tar.gz +tar xzf julia-1.5.3-linux-x86_64.tar.gz sudo mkdir /usr/local/lib/julia -sudo mv julia-1.1.0/* /usr/local/lib/julia -rmdir julia-1.1.0 -rm julia-1.1.0-linux-x86_64.tar.gz +sudo mv julia-1.5.3/* /usr/local/lib/julia +rmdir julia-1.5.3 +rm julia-1.5.3-linux-x86_64.tar.gz sudo ln -s /usr/local/lib/julia/bin/julia /usr/local/bin/julia echo "Don't forget to install julia-mode in emacs! (M-x package-install)"