cd /usr/local # Change to the /usr/local directory sudo mkdir local/freeswitch src # Create the /usr/local/src directory FreeSWITCH™FreeSWITCH™ runtime and source isdirectories downloaded into sudo chown -R `id -u`:`id -g`g`freeswitch src # Change the owner of the /usr/local/src directorynew directories to yours
You will access /usr/local often so it should be placed in the Finder "FAVORITES" sidebar for quick access. Navigate to the /usr/local folder in the Finder, then drag the local folder under "FAVORITES".
Extra info: Even though macOS did not contain the /usr/local directory, /usr/local/bin is defined at the end of the default macOS path. The path is viewed by running "echo $PATH" in Terminal. If you don't understand this, don't worry, it doesn't affect anything.
NEVER delete the local directory in /usr after it's created! It's very difficult to recreate, it must be restored from a backup. This is due to System Integrity Protection (aka rootless) security starting with OS X 10.11.