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.
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.
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.
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
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..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With