Does usr / local / src exist on mac?

I am new to computers and use a terminal. Most of the tutorials that I look at for download will tell me to go to usr / local / src. However, I do not find this on mac. Should I just create a directory called src?

Or is it something specific only for Linux users?

If someone can tell me what difference does it make for this directory to exist or not, that would be great. Can I complete my installation in usr / local?

thanks

+6
source share
2 answers

Using Finder, you can press Cmd-Shift-G and type /usr to display this folder. The /local folder is by default, but not in the /src subfolder. Finder, of course, can easily create one for you.

enter image description here

As mentioned in @ cricket_007, you need to be sure what you are doing in this area of ​​the system - why OS X does not show these folders by default. If you understand the risk and want to see everything in Finder, you can issue the following terminal command:

 defaults write com.apple.finder AppleShowAllFiles YES 

... then enter:

 killall Finder 

and it will look like this. Hidden folders have a slightly faded appearance, but you can navigate to them as desired: enter image description here

+8
source

It depends on what you do. If you mess around, just create it in your home directory:

 $ cd ~ $ mkdir src 

If you create material via configure , etc., and you want to install it in /usr/local (the default installation prefix), just do this:

 $ cd ~/src/packagename $ ./configure ... options ... $ make $ sudo make install 
0
source

All Articles