I have installed play framework on Ubuntu 12.4 and I want to be able to just call play from terminal without specifying it's full path. I've tried exporting the path and so on, but it does not work because for some reason, another application called play starts instead. Problem is I cannot find that application's path in the paths file. What am I doing wrong?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
To find the thing that is in your path named play
run:
which play
回答2:
I had the same problem with ubuntu 14.01. Steps i followed to fix the issue:
- On the cli type
which play
. Result for my case was/usr/bin/play
which was not my play framework application. - Rename symbolic link to point to your play framework directory with the below commands.
sudo rm /usr/bin/play
sudo ln -s /opt/play-2.1.1/play/usr/bin/play