/usr/local doesn't exist in fresh install Yosemite

I am trying to install ssh-copy-id, and it wants to be placed in

/usr/local/bin/

but when I do

cd /usr/local/

it responds with

-bash: cd: /usr/local/: No such file or directory

Is this because I have a fresh install of Yosemite and the changed the location of /usr/local/?


Solution 1:

/usr/local does not exist on a standard plain OS X install

You need to create it by

sudo mkdir /usr/local

In some odd cases e.g. for Homebrew you need to change permissions