Skip to content

Instantly share code, notes, and snippets.

@notadecent
Last active June 17, 2019 15:55
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save notadecent/f3e65d6ab603703b1a0a to your computer and use it in GitHub Desktop.
Save notadecent/f3e65d6ab603703b1a0a to your computer and use it in GitHub Desktop.
toxcore installer script, for Gentoo, Arch, Red Hat, SuSE, Fedora, Debian, Mint, Ubuntu and their derivativesInstalls dependencies and toxic, venom and nurupo's Qt GUI
#!/bin/bash
## wget -O tox.sh waa.ai/iqt && chmod +x ./tox.sh && ./tox.sh
## ./tox.sh -sl to skip libsodium (they don't update that often)
## ./tox.sh -sd to skip libsodium and all the other dependencies
## If libraries are missing, remove /etc/ld.so.conf.d/locallib.conf and
## try running again. Else, try messing around with the prefix paths.
## Suggestions, comments and the alike are welcome on http://waa.ai/4xtC
## or send me a mail, to notadecent AT tox DOT im
#upd=2014/06/25 # Date this script was updated
#com="update toxic build instructions, could be slightly unstable"
# Check if script is being ran as root
test "$(whoami)" == 'root' && (echo "Please don't run this script as root"; exit 1)
# Check for arguments
nolibsm=0
nodep=0
[ "$1" == '-sl' ] && nolibsm=1
[ "$1" == '-sd' ] && nodep=1
[ "$nodep" == "1" ] && nolibsm=1
# As of 2014/08/10, we have moved to
# https://raw.githubusercontent.com/Tox/tox-scripts/master/tox.sh
# You will be redirected
link=https://raw.githubusercontent.com/Tox/tox-scripts/master/tox.sh
rm tox.sh && wget $link && chmod +x ./tox.sh && ./tox.sh $1
@thomastoye
Copy link

My builds failed because I didn't have /usr/local/lib/ in /etc/ld.so.conf.d/locallib.conf.
https://gist.github.com/doublet/68041f615a7cb3129d1e

I added this in exportlibpath():

grep --quiet "^/usr/local/lib/$" /etc/ld.so.conf.d/locallib.conf || echo "Make sure you have /usr/local/lib/ in /etc/ld.so.conf.d/locallib.conf, otherwise builds may fail"

My gist is at https://gist.github.com/doublet/68041f615a7cb3129d1e

@notadecent
Copy link
Author

@doublet
Fixed it, please update and try again.

@notadecent
Copy link
Author

Sorry for the inconvenience, but for consistency reasons, I've moved this script to http://waa.ai/4xtV
If possible, please open up an issue in that repository instead of commenting here, thank you.

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