Mac OS X Snow Leopard, fixing PATH

Discussion in 'Mac OS X Server, Xserve, and Networking' started by santiagocarrion, Aug 15, 2013.

  1. macrumors newbie

    Joined:
    Aug 15, 2013
    #1
    Hello folks,

    While trying to install pagekite using the following command:

    $ pagekite.py --signup

    I got:

    -bash: $: command not found

    I am a noob with the terminal but after reading a bit I understand that it is a problem with my PATH, so after running echo $PATH

    I got the following answer:

    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/MacGPG2/bin:/usr/X11/bin


    Can anybody spot the problem? If you ask me -without knowing a thing about it- I suspect the MacGPG2 (MacGnuPrivcacyGuard2) is out of place?

    Thanks for your time!
     
  2. macrumors 6502a

    Joined:
    Mar 17, 2012
    Location:
    Belgium
    #2
    What exactly did you do to install PageKite? Did you follow the instructions found here? Have you run one of the two curl command lines or did you download the program yourself? The error you are seeing is that the bash shell doesn't know where the pagekite.py file is eg it can't find the file in any of the directories specified in the PATH variable.


    You can see from the example that pagekite.py has been installed to /usr/local/bin which is in your PATH so after that you can run pagekite.py --signup.
     

    Attached Files:

  3. macrumors member

    Joined:
    Aug 21, 2011
    #3
    Actually, the problem is that you are trying to run '$ pagekite.py --signup' as a command. The $ represents your prompt, you don't type it in. When you add it in, bash thinks that you are trying to execute a command named '$', which doesn't exist, hence the error message saying that '$' doesn't exist. Try just running 'pagekite.py --signup' .
     
  4. macrumors 6502a

    Joined:
    Mar 17, 2012
    Location:
    Belgium
    #4
    You're absolutely right. My bad I missed the most common mistake made.
     

Share This Page