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
@Dinsmoor
Copy link

On newer Debian based distribution, libsdl1.2-dev fails to fetch req dependencies from the repos.
Also libsodium isn't recognized to be installed. Had to go to the /tmp/tox-update/libsodium and configure, make, make install there to get it to install properly.

@cmcsun
Copy link

cmcsun commented Mar 18, 2014

Is the stupiddog website up? It always fails to connect to the website in the beginning. This script used to work perfectly prior.

@urras
Copy link

urras commented Mar 28, 2014

@GGMethos should be working now

@sudden6
Copy link

sudden6 commented Apr 13, 2014

on openSUSE the packages libopus-devel and libvpx-devel are missing for correct AV support

@arno01
Copy link

arno01 commented Apr 17, 2014

Hi guys, I've forked this and fixed so that it can compile on Debian 7 (wheezy) smoothly! Also I've removed useless "sudo" in some places ;)

Here you can get it https://gist.github.com/arno01/ebdc7fdbe683e732599c

These are the differences between the current and my version

(moved to http://p.pomf.se/3333 )

@lehitoskin
Copy link

If /etc/portage exists
install layman
install overlay
install from overlay

@notadecent
Copy link
Author

@arno01
I updated my script with yours.
Did it a while ago but forgot to mention.

@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