Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

install play-framework in Ubuntu 9.10

I have copied zipped file from the playframework.org website and unzipped it at a location. I have inserted it in my .bashrc profile to set up as PATH environment.

But still, the play command is not accessible from anywhere.

And even in the installed directory of the framework, the play file is not running as it is.

I have to prefix python before any play command to run it.

Am i making a mistake somewhere?

Please help me.

like image 710
Shekhar Avatar asked Mar 22 '10 10:03

Shekhar


People also ask

How do I download a play framework?

Installation from the binary package In general, the installation instructions are as follows. Install Java. Download the latest Play binary package and extract the archive. Add the 'play' command to your system path and make sure it is executable.

What is play framework in Scala?

Play Framework makes it easy to build web applications with Java & Scala. Play is based on a lightweight, stateless, web-friendly architecture. Built on Akka, Play provides predictable and minimal resource consumption (CPU, memory, threads) for highly-scalable applications.


2 Answers

Suppose that the path of the play directory is /home/yourName/play

open the terminal and type the following

PATH=$PATH:/home/yourName/play
export PATH

then you will be able to access play command from anywhere

like image 74
Fanooos Avatar answered Oct 04 '22 03:10

Fanooos


Got the answer! Move the unzipped play folder into opt directory by typing

sudo mv play-1.0.1 /opt/play

and then give another command

source /etc/profile

And now one can run play command from anywhere in the shell..

like image 37
Shekhar Avatar answered Oct 04 '22 02:10

Shekhar