Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohitmanuja/b324fccfaa7d9050f9951c1ffbfac194 to your computer and use it in GitHub Desktop.
Save mohitmanuja/b324fccfaa7d9050f9951c1ffbfac194 to your computer and use it in GitHub Desktop.

Step by step to install Scala + Play Framework in Ubuntu 14.04 with Activator.

Install Scala

sudo apt-get remove scala-library scala
wget http://www.scala-lang.org/files/archive/scala-2.11.6.deb
sudo dpkg -i scala-2.11.6.deb
sudo apt-get update
sudo apt-get install scala

Download and Install Play (the folder should have permission to write)

cd /opt
wget http://downloads.typesafe.com/typesafe-activator/1.3.2/typesafe-activator-1.3.2-minimal.zip
unzip typesafe-activator-1.3.2-minimal.zip
mv activator-1.3.2-minimal activator

Add the activator script to your PATH and execute Activator

cd /opt/activator
export PATH=$PATH:/opt/activator
source ~/.bashrc
chmod a+x activator
./activator

After that, check if the activator command is available activator -help So then, create your project

activator new my-first-app play-scala
cd my-first-app

To create play with console:

activator

To create play with UI:

activator ui

References:

@mohitmanuja
Copy link
Author

export PATH=$PATH:/opt/activator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment