I want to see the mag page of some c standard library functions in Mac os X, while I typed in man setsockopt
, it returns to No manual entry for setsockopt
. Is that means I haven't installed man pages for c standard? How should I to install it?
Try it on your Mac: Open Terminal, type man ls , then press Return. The ls command's man page is quite long, and you'll need to press the spacebar several times to get to the bottom. Sometimes, when you're viewing a man page, you need to go back up and look at something that's no longer visible.
To install man pages use the yum command or dnf command as follows on a CentOS 6/7/8/9.
macOS is not feature complete out of the box when it comes to development. Installing the Xcode command line tools will give you what you need, as well as a compiler etc.
For macOS and newer versions of Mac OS X, installing the Command Line Tools package is done with the command xcode-select --install
.
For older versions of Mac OS X you'll need to install Xcode (free in the Mac App Store) first. Then you can install the Command Line Tools module after you installed Xcode, by going into Xcode->Preferences->Downloads->Components
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With