Skip to content

Instantly share code, notes, and snippets.

@gto76
Last active November 10, 2015 19:43
Show Gist options
  • Save gto76/f43cae8a88faf57dcfda to your computer and use it in GitHub Desktop.
Save gto76/f43cae8a88faf57dcfda to your computer and use it in GitHub Desktop.
Script that installs Scala
#!/bin/bash
#
# Installs Scala.
# Install Scala:
SCALA_VERSION="2.11.1";
wget http://downloads.typesafe.com/scala/$SCALA_VERSION/scala-$SCALA_VERSION.tgz
tar xvzf scala-$SCALA_VERSION.tgz
sudo sh -c 'echo "export SCALA_HOME=\"$PWD/scala-'$SCALA_VERSION'\"" >> /etc/profile; echo "export PATH=\"\$PATH:\$SCALA_HOME/bin\"" >> /etc/profile;'
sh /etc/profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment