Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

santiagocarrion

macrumors newbie
Original poster
Aug 15, 2013
1
0
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

macrumors 65816
Mar 17, 2012
1,115
99
Belgium
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? 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.
 

Attachments

  • Picture 6.png
    Picture 6.png
    135.2 KB · Views: 99

dylanryan

macrumors member
Aug 21, 2011
57
2
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

macrumors 65816
Mar 17, 2012
1,115
99
Belgium
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.