Wandesson Silva
Wandesson Silva

Reputation: 11

Installation Play Framework on Ubuntu 14.04

I have a problem with installation of the play framework. I can't configure the play in path on Ubuntu 14.04.

Already run:

export PATH=$PATH:/home/me/Documentos/play
source ~/.bashrc
sudo chmod a+X /home/me/Documentos/play/play

But, when I restart the terminal and type 'play' the terminal shows: 'command not found: play'. What to do?

Upvotes: 1

Views: 5296

Answers (3)

user123123
user123123

Reputation: 23

the thing here u r doing sets the path for only current session.. u need 2 set the path permanently this is how i did it

gedit ~/.bashrc

add the following line on the very bottom

export ACTIVATOR_HOME=$PATH:/opt/activator-1.3.2

save it, it may prompt u for changes in other files as well .. save them also and restart

here i m using activator.. in ur case u can replace the /opt/activator-x.x.x .. with ur relative path 2 the play .. eg: /dir/play2.2.1 where ever u ve unzipped play

Upvotes: 0

Đạt Thành
Đạt Thành

Reputation: 73

My solution:

  • Step 1: login with root access
  • Step 2: make "app" folder in /
  • Step 3: download play zip file and unzip to /app

Then in a profile or environment script: export PATH=$PATH:/app/play-x.x.x

Good luck !

Upvotes: 0

i.am.michiel
i.am.michiel

Reputation: 10404

The export only works for current session. When you start a new session, it executes the ~/.bashrc instructions.

Try following :

echo "export PATH=$PATH:/home/me/Documentos/play" >> ~/.bashrc

After, that it should work.

Upvotes: 4

Related Questions