I had no problem installing the Play! framework on Windows but can't troubleshoot why it's not working on OS X.

I grabbed the latest version and unzipped it to a directory. I run the Unix executable file and get the Play terminal. At the end of the terminal it says:

[Process Completed]

I can't type in the terminal as well.

link|improve this question
This isn't a programming, question. This should get moved pretty quickly, but in the future, try Super User for non-programming, computer-related questions :) – Cam Jackson Jul 25 '11 at 6:17
feedback

migrated from stackoverflow.com Jul 25 '11 at 16:03

This question came from our site for professional and enthusiast programmers.

3 Answers

up vote 4 down vote accepted

You can not run the play executable from the desktop. You must run it from an open terminal window. Go to Applications -> Utilities and start Terminal.

Furthermore you need to add play to your PATH:

mkdir ~/bin
ln -s <path to your play home>/play ~/bin
echo "export PATH=~/bin:$PATH" >> ~/.bashrc
. ~/.bashrc

Now you can run

play new appname

from the Terminal window.

link|improve this answer
Hi Andre. I tried what you wrote above and the Play command from the terminal window is not recognized. – chopps Jul 25 '11 at 17:39
Ok..i got it to work. I used X11 and it worked. Not really sure what X11 is compared to the regular terminal though. – chopps Jul 25 '11 at 18:34
feedback

If you are used to Linux and its package managers checkout http://www.macports.org/ You could then simply install play (or loads of other stuff) from the terminal

link|improve this answer
Once you have MacPorts installed, the command to install Play Framework is: sudo port install play – AWhitford Nov 27 '11 at 9:25
feedback

The easiest way is to use MacPorts or Brew. If you have brew installed, you can just run:

brew install play

Creating a bin folder, containing a symlink, which is on your path is also a good idea - as Andre suggested. It involves a few steps, but you will likely want to easily add more applications to your path in future.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.