Skip to content

Instantly share code, notes, and snippets.

@squiter
Created October 7, 2016 22:26
Show Gist options
  • Save squiter/c8d336b2c0b006f80024e3bc9bc56a65 to your computer and use it in GitHub Desktop.
Save squiter/c8d336b2c0b006f80024e3bc9bc56a65 to your computer and use it in GitHub Desktop.
How to install ruby with TCL and TK for Coursera Programming Languages Part C
#!/bin/bash
set -eou pipefail
version=8.6.4.1
patchinfo=299124-linux-x86_64-threaded
dir=ActiveTcl$version.$patchinfo
package=$dir.tar.gz
url=http://downloads.activestate.com/ActiveTcl/releases/$version/$package
echo "==> Installing $package $version"
echo "-> from: $url"
mkdir temp
cd temp
wget $url
tar -xvzf $package
cd $dir
sudo ./install.sh
echo "==> Cleaning..."
cd ../../
rm -rf temp
echo "==> ActiveTCL Installation finished"
echo "==> Installing 💎 2.2.5 with TCL and TK"
CONFIGURE_OPTS="--with-tcl --with-tk" rbenv install 2.2.5
echo "==> Installation finished 🐹"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment