How to install megatools on Ubuntu 16.04

# apt

sudo apt-get install -y autoconf build-essential libglib2.0-dev libssl-dev libcurl4-openssl-dev libgirepository1.0-dev asciidoc

# compile

if [[ -d "$HOME/tmp/git/megatools" ]]; then
  cd "$HOME/tmp/git/megatools"
  git pull
else
  mkdir -p "$HOME/tmp/git"
  cd "$HOME/tmp/git"
  git clone "https://github.com/megous/megatools.git"
  cd "$HOME/tmp/git/megatools"
fi
make clean
make distclean
./autogen.sh
./configure
make
if [[ $? -eq 2 ]]; then
  make clean
  make distclean
  ./autogen.sh
  ./configure --disable-docs
  make
fi

# install

sudo make install
sudo ldconfig

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.