-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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