vote up 0 vote down star

new mac mini with snow leopard.

entering the following into the terminal: cd /usr/local

get the following message: -bash: cd: /usr/local: No such file or directory

not sure why?

flag
The directory does not exist. Why don't you believe the error message? If you need it, create it. sudo mkdir /usr/local – EmmEff Dec 17 at 18:03
Why do you expect it to exist? – Raphink Dec 17 at 20:00

2 Answers

vote up 4 vote down

You're getting this error because the directory /usr/local does not exist. I don't have a Snow Leopard install in front of me right now, but it's entirely possible that this directory doesn't exist by default -- nothing would be installed there in a stock install.

link|flag
1  
/usr/local doesn't exist by default on OS X. – mipadi Dec 17 at 20:28
vote up 0 vote down

Try this command in the terminal instead: ls /usr

This lists the contents of the /usr directory.

Do you see "local" is in the list of directories in /usr? If not, it doesn't exist and that's why you can't cd to /usr/local.

link|flag

Your Answer

Get an OpenID
or
never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.