Skip to content

Instantly share code, notes, and snippets.

@hdoverobinson
Last active October 21, 2018 17:58
Show Gist options
  • Save hdoverobinson/79b1c7b39aaed3ef279e834d9d568073 to your computer and use it in GitHub Desktop.
Save hdoverobinson/79b1c7b39aaed3ef279e834d9d568073 to your computer and use it in GitHub Desktop.
Installs RTKLIB on Debian/Ubuntu without prompt for deleting /usr/src/rtklib and ignores exit status
#!/bin/bash
RTKPACKAGES="automake build-essential checkinstall git libblas3 libblas-common libgfortran3 liblapack3"
RTKURL="https://github.com/tomojitakasu/RTKLIB.git -b rtklib_2.4.3"
###INSTALL RTKLIB PACKAGES###
apt-get update &&
apt-get install -y $RTKPACKAGES &&
###PREPARE RTKLIB SOURCE###
rm -rf /usr/src/rtklib/ &&
mkdir -p /usr/src/rtklib/ &&
cd /usr/src/rtklib/ &&
git clone $RTKURL &&
###COMPILE RTKLKIB SOURCE###
cd /usr/src/rtklib/RTKLIB/app/ &&
make -j4 &&
make install &&
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment