Created
December 5, 2016 20:23
-
-
Save christopher-baek/0ef2560a124559441ac5099d6eae727c to your computer and use it in GitHub Desktop.
Notes on Installing Unison
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set the Unison version | |
unison_ver=2.48.3 | |
# Download Unison | |
wget http://www.seas.upenn.edu/~bcpierce/unison//download/releases/unison-${unison_ver}/unison-${unison_ver}.tar.gz | |
# Download OCaml | |
wget http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02.3.tar.gz | |
# Extract both downloads | |
tar xvf unison-${unison_ver}.tar.gz | |
tar xvf ocaml-4.02.3.tar.gz | |
# Compile OCaml | |
cd ocaml-4.02.3 | |
./configure -prefix ~/.local | |
gmake world && gmake opt && gmake install | |
# Compile Unison | |
cd ../unison-${unison_ver} | |
gmake | |
# Link compiled Unison binaries to PATH | |
cd ~/.local/bin | |
ln -s ../src/unison-${unison_ver}/unison | |
ln -s ../src/unison-fsmonitor | |
#sudo chown root ./unison-fsmonitor | |
#mv ./unison-fsmonitor ~/bin | |
#sudo ln -s /home/$USER/bin/unison /usr/bin/unison | |
#sudo ln -s /home/$USER/bin/unison-fsmonitor /usr/bin/unison-fsmonitor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment