Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Command not found problem in Terminal

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


    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,163 ✭✭✭ZENER


    Shouldn't it be "help play" ?

    Ken


  • Registered Users, Registered Users 2 Posts: 7,639 ✭✭✭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,639 ✭✭✭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,163 ✭✭✭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,639 ✭✭✭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,163 ✭✭✭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,639 ✭✭✭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,040 ✭✭✭Colonel Panic


    Try
    echo $PATH
    
    before you do anything else.


Advertisement