Create a gist now

Instantly share code, notes, and snippets.

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