Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install man pages for C standard library functions in Mac OS X

Tags:

c

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?

like image 862
jsvisa Avatar asked Aug 22 '13 12:08

jsvisa


People also ask

How do I get man pages on my Mac?

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.

What command can be used to install the man pages?

To install man pages use the yum command or dnf command as follows on a CentOS 6/7/8/9.


1 Answers

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

like image 167
Henrik Avatar answered Sep 28 '22 07:09

Henrik