Skip to content

Instantly share code, notes, and snippets.

@J-Moravec
Created November 15, 2024 08:44
Show Gist options
  • Save J-Moravec/203a8a03f0ccffc45c5332257babee88 to your computer and use it in GitHub Desktop.
Save J-Moravec/203a8a03f0ccffc45c5332257babee88 to your computer and use it in GitHub Desktop.
Install unison with unison-fsmonitor
# unison-fsmonitor is not available in the repositories
# it is reported and discussed for like 8 years already
# there is no hope, only manual compile
#!/bin/bash
UNISON_VERSION=2.51.5 # version in Ubuntu repo
echo "Install Unison." \
&& apt install wget ocaml \
&& pushd /tmp \
&& wget https://github.com/bcpierce00/unison/archive/v$UNISON_VERSION.tar.gz \
&& tar -xzvf v$UNISON_VERSION.tar.gz \
&& rm v$UNISON_VERSION.tar.gz \
&& pushd unison-$UNISON_VERSION \
&& make \
&& cp -t /usr/local/bin ./src/unison ./src/unison-fsmonitor \
&& popd \
&& rm -rf unison-$UNISON_VERSION \
&& popd \
&& apt purge ocaml*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment