Skip to content

Instantly share code, notes, and snippets.

@gbaptista
Forked from squiter/install_ruby
Created October 9, 2016 19:29
Show Gist options
  • Save gbaptista/d0545f6a480e39f883d1204b01e12c2e to your computer and use it in GitHub Desktop.
Save gbaptista/d0545f6a480e39f883d1204b01e12c2e 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" rvm reinstall 2.2.5 --enable-pthread
echo "==> Installation finished 🐹"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment