Skip to content
Advertisement

Add the play script to your PATH in Mac

I’m not good with the terminal, so I have no idea what this means….

you should add the framework installation directory to your system PATH. On UNIX systems, this means doing something like:

export PATH=$PATH:/path/to/play20

On Windows you’ll need to set it in the global environment variables. This means update the PATH in the environment variables and don’t use a path with spaces.

If you’re on UNIX, make sure that the play script is executable (otherwise do a chmod a+x play).

Can someone guide me through these steps. I have the Play 2.0 Folder placed in my /Documents.

Advertisement

Answer

This is what I did:

Download the play framework, extracted it to my desktop, open up iterm and vi ~/.bash_profile add path: export PATH=$PATH:/Users/*your-username*/Desktop/play-2.2.0 save the file (that’s press esc and type :wq [save and quit]) reload your bash_profile, just type source ~/.bash_profile cd to your directory and type play and your done.

Hope that’s helpful.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement