Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

While trying to install pagekite on OS X Snow Leopard 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

echo $PATH
/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!

share|improve this question
4  
Are you including the $? The command starts after that(pagekite.py --signup). The $ is used to refer to the start of the prompt, but that does not mean you include it when you type commands. –  sameetandpotatoes Aug 16 '13 at 3:35
add comment

1 Answer 1

Your PATH looks fine. The PATH variable is a collection of folders/directories in which the shell looks for commands to execute. So if you install additional software like MacGPG there might get new parts added.

But I assume that the command you are calling is called pagekite.py and not actually $. So you should call it like

pagekite.py --signup

or (if it is in your current folder/directory)

./pagekite.py --signup

The $ is often used in documentation to represent the shell command prompt and should not be entered to run the command afterwards.

share|improve this answer
add comment

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.