How Do You Install Scala on a RHEL Instance of AWS?

Problem scenario
You want to install Scala to a Red Hat Enterprise Linux instance of AWS.  How do you do this?

Solution
1.  Install Java:  sudo yum -y install java-1.8*

2.  Log off and log back on.

3.  Run these three commands:
curl https://bintray.com/sbt/rpm/rpm | sudo tee /etc/yum.repos.d/bintray-sbt-rpm.repo
sudo yum -y install sbt
sbt new scala/hello-world.g8

4.  Verify Scala has been installed with this command:  scala about

Leave a comment

Your email address will not be published. Required fields are marked *