Ask Different is a question and answer site for power users of Apple hardware and software. 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

Just received my macbook air and discover that i can't run port command because of /opt directory not exists. Is it normal? (OS X 10.9)

share|improve this question
up vote 3 down vote accepted

Yes, OS X does not come with anything in /opt or even the directory itself. I presume you're looking for MacPorts, which is a 3rd-party package manager that installs port. MacPorts has to be installed separately.

Various other apps can place files in /opt though. For example, even though I've never had MacPorts, I have the /opt directory and it contains the X11 directory.

share|improve this answer
keep in mind that there are also other Projects like homebrew and fink. – konqui Jul 13 '14 at 5:26
@konqui Homebrew hasn't put anything in my /opt—have you used a custom prefix? – grgarside Jul 13 '14 at 8:20
No i have not but i saw soe tutorials where they show how one could do. Your right by default homebrew doean't use /opt. But one can make it to use it, thats why i mentioned it. – konqui Jul 13 '14 at 8:29

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.