Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I used PATH = /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/:$PATH

But still my programs refuse to search in the given dir first. Do I need to do something else?

share|improve this question
up vote 4 down vote accepted

Use: export PATH=..... to make the PATH variable available as an environment variable to programs started from shell. Make sure that your programs are started from the same shell in which you are exporting the PATH variable. Please note that there is no space before and after =.

In your case, use:

export PATH=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/:$PATH
share|improve this answer
Ok, will try. But just out of a unix newbie curiosity. What's the difference. echo $PATH shows me I have the right.. – Valentin Radu Sep 22 '11 at 22:11
if a variable is not exported it exists only in your shell and not in the programs you are starting from that shell. If you export it, it will be part of the environment variables and it will be inherited by all programs started from your shell. – Mircea Vutcovici Sep 22 '11 at 22:16
Awesome! Thanks! – Valentin Radu Sep 22 '11 at 22:20

Add it to ~/.profile for permanent (~ is your $HOME).

share|improve this answer

Your Answer


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.