Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Command not found problem in Terminal

  • 12-05-2013 11:24PM
    #1
    Registered Users, Registered Users 2 Posts: 7,638 ✭✭✭


    Hey,

    So I am trying to run 'play help' in command line after installing the play framework.

    Installation is simple enough just unzip the file and change the $PATH to include the directory the play.exec is in.

    So far so good.

    my path includes the directory but that didnt work and I wasnt sure so I edited it again with another path directly to the file not just the directory. I still get command not found.

    I checked file play and it says it was found and is executable.

    I put the directory in a folder in my dropbox directory might that be a problem?

    The instructions say something about adding it to your system path? I am not sure if that is the same thing as editing the path file I am fairly new to all this and just figuring it out for myself


Comments

  • Registered Users, Registered Users 2 Posts: 6,167 ✭✭✭ZENER


    Shouldn't it be "help play" ?

    Ken


  • Registered Users, Registered Users 2 Posts: 7,638 ✭✭✭PeakOutput


    ZENER wrote: »
    Shouldn't it be "help play" ?

    Ken

    No I am trying to run plays help file not the systems help file and the installation instructions are here

    http://www.playframework.com/documentation/2.1.1/Installing

    and they say play help


  • Registered Users, Registered Users 2 Posts: 7,638 ✭✭✭PeakOutput


    I just cosed the terminal window and reopened it and typed echo $PATH and the directory was not listed so I guess I did something wrong updating it.


  • Registered Users, Registered Users 2 Posts: 6,167 ✭✭✭ZENER


    If you visit the website http://www.playframework.com/ the screen shot shows:

    "Type Help Play for more information or license information"

    Ken


  • Registered Users, Registered Users 2 Posts: 7,638 ✭✭✭PeakOutput


    ZENER wrote: »
    If you visit the website http://www.playframework.com/ the screen shot shows:

    "Type Help Play for more information or license information"

    Ken

    Yeah You are right I just tried it and it dosn't work either. in the installation documentation though it says

    'Check that the play command is available
    From a shell, launch the play help command.

    $ play help
    If everything is properly installed, you should see the basic help:'

    edit; How do I open the path file to edit it directly? I just used this command last time export PATH=$PATH:/relativePath/to/play


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 6,167 ✭✭✭ZENER


    Have you read this ?

    https://discussions.apple.com/thread/2581349?start=0&tstart=0

    I don't have much experience in Terminal but the location of the Path may be important, i.e. your home directory ?

    Ken


  • Registered Users, Registered Users 2 Posts: 11,264 ✭✭✭✭jester77


    What shell are you using?

    If it's bash, make sure that the PATH is defined in your .bashrc file. i.e.
    export PATH=PATH/TO/PLAY:$PATH
    


  • Registered Users, Registered Users 2 Posts: 7,638 ✭✭✭PeakOutput


    jester77 wrote: »
    What shell are you using?

    If it's bash, make sure that the PATH is defined in your .bashrc file. i.e.
    export PATH=PATH/TO/PLAY:$PATH
    

    Thanks I believe it is bash, I will try that when I get home later.


  • Registered Users, Registered Users 2 Posts: 2,062 ✭✭✭Colonel Panic


    Try
    echo $PATH
    
    before you do anything else.


Advertisement