PDA

View Full Version : Mac OS X Snow Leopard, fixing PATH




santiagocarrion
Aug 15, 2013, 10:32 PM
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!



kryten2
Aug 16, 2013, 08:22 AM
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!

What exactly did you do to install PageKite? Did you follow the instructions found here (http://pagekite.net/downloads/)? 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.

dylanryan
Aug 16, 2013, 11:45 PM
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' .

kryten2
Aug 17, 2013, 10:14 AM
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' .

You're absolutely right. My bad I missed the most common mistake made.