Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

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

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

    
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

3 Answers 3

up vote 7 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.

share|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

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.

share|improve this answer
    
does brew indicate what version of play is used? –  crockpotveggies May 10 '13 at 6:30
    
Update: looks like they're only offering the latest version 2.1.1 as of this post –  crockpotveggies May 10 '13 at 6:45

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

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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