install play-framework in Ubuntu 9.10

前端 未结 6 988
Happy的楠姐
Happy的楠姐 2021-02-05 19:28

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 s

6条回答
  •  不思量自难忘°
    2021-02-05 20:12

    You also need to tell the terminal that "play" is a bash script. You will need to either rename play to play.sh, or run it with "bash play." Additionally the script needs to have executable permissions.

    I set it up with the following steps:

    • extract to ~/opt/play-2.1-RC1
    • mv ~/opt/play-2.1-RC1/play ~/opt/play-2.1-RC1/play.sh
    • chmod +x ~/opt/play-2.1-RC1/play.sh
    • alias play="/home/rob/opt/play-2.1-RC1/play.sh"

    Note that the alias can be run in a terminal, but to persist you will need to copy it to ~/.bashrc

    With this setup, local user can type play from any location.

提交回复
热议问题