Skip to content

Instantly share code, notes, and snippets.

@VioletGiraffe
Forked from adduc/install.sh
Last active March 10, 2024 17:23
Show Gist options
  • Save VioletGiraffe/166b62c4e170174976ee7691431c25e6 to your computer and use it in GitHub Desktop.
Save VioletGiraffe/166b62c4e170174976ee7691431c25e6 to your computer and use it in GitHub Desktop.
My installation of tortoisehg on Ubuntu 20.04 and newer
#!/bin/bash
TARGET_DIR=~/Downloads/repos/third-parties
TORTOISEHG_VERSION=${5:-stable}
prepare() {
sudo apt-get -y update
sudo apt-get -y install \
curl \
gcc \
make \
mercurial \
python-is-python3 \
python3 \
python3-dev \
python3-distutils \
python3-docutils \
python3-dulwich \
python3-iniparse \
python3-pip \
libxcb-xinerama0
pip3 install PyQt5 QScintilla mercurial
mkdir -p ${TARGET_DIR}
}
install_tortoisehg() {
echo 'Starting install_tortoisehg'
cd ${TARGET_DIR}
rm -rf thg || true
rm /usr/local/bin/thg || true
hg clone -u ${TORTOISEHG_VERSION} https://foss.heptapod.net/mercurial/tortoisehg/thg
sudo mkdir /usr/local/bin/ || true
sudo ln -fs ${TARGET_DIR}/thg/thg /usr/local/bin/thg
}
main() {
set -xe
prepare
install_tortoisehg
}
main
@AndryRazanadrakoto
Copy link

I Use Ubuntu 22.04, Yes I try snap, apt, and it's the same error

@VioletGiraffe
Copy link
Author

sudo apt install tortoisehg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment