Try to create /usr/local if it doesn't exist. New MacOSX comes with /usr/local/bin in the path, but not existing on disk.
oops. missing 'then'. thanks glasser.
explicitly set permissions