Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Activator: command not found

I am trying to install activator in my linux system.

so first I install java

 sudo add-apt-repository ppa:webupd8team/java
 sudo apt-get update
 sudo apt-get install oracle-java8-installer

downloaded succefully

then I downloaded activator

sudo wget downloads.typesafe.com/typesafe-activator/1.3.4/ypesafe-activator-1.3.4.zip

then added path

export PATH=$PATH:/home/govind/activator-1.3.4/

then reloaded bash by

source ~/.bashrc

then I try to start activator

govind@LINUXSERVER:~$ sudo activator
sudo: activator: command not found

I tried to print path

govind@LINUXSERVER:~$ $PATH
-bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/govind/activator-1.3.4/: No such file or directory

but

govind@LINUXSERVER:~$ ls /home/govind/activator-1.3.4/
activator      activator-launch-1.3.4.jar  README.html  templates
activator.bat  LICENSE.html                repository

but not successfull!! what am I missing??

like image 298
Govind Singh Avatar asked Jun 03 '15 10:06

Govind Singh


2 Answers

Create a symbolic link to activator:

sudo ln -s /home/govind/activator-1.3.4/activator /usr/bin/activator

You do not need to edit bashrc profile.

like image 116
Mon Calamari Avatar answered Oct 05 '22 22:10

Mon Calamari


I think the documentation should be fixed.The path still works in earlier versions of activator, but the recent versions don't have executable activator in the mentioned directory. Instead, you can find this inside bin folder.

So for earlier versions of activator

export PATH=/home/<user>/activator-dist-1.3.2:$PATH

should do, and for recent versions,

export PATH=/home/<user>/activator-dist-x.x.x/bin:$PATH

/bin is not mentioned in the play documentation

like image 37
prit4fun Avatar answered Oct 05 '22 20:10

prit4fun