kkanungo17

Q: BSD System Calls and C Library Functions manual pages missing

Commands like man 2 socket or man 3 printf say that there is no such manual page. How do I install the corresponding man pages?

I am on macOS Sierra, and XCode 8.0 is installed.

I use zsh if the shell matters in some way.

MacBook (13-inch Mid 2010), macOS Sierra (10.12), ZSH shell

Posted on Sep 27, 2016 6:58 AM

Close

Q: BSD System Calls and C Library Functions manual pages missing

  • All replies
  • Helpful answers

  • by VikingOSX,

    VikingOSX VikingOSX Sep 27, 2016 9:34 AM in response to kkanungo17
    Level 7 (21,118 points)
    Mac OS X
    Sep 27, 2016 9:34 AM in response to kkanungo17

    You need your environment variable MANPATH set to .:/usr/share/man: in zsh if it is not. I have Xcode 8 and the command line tools installed, and have no issue with man pages, including those that you have mentioned. I use Bash, not zsh.

     

    You can optionally extend the MANPATH search order by adding /usr/local/share/man: and this let you see those pages added in that location by non-Apple software.

  • by kkanungo17,

    kkanungo17 kkanungo17 Sep 27, 2016 10:03 AM in response to VikingOSX
    Level 1 (4 points)
    Sep 27, 2016 10:03 AM in response to VikingOSX

    I checked my MANPATH, and /usr/share/man is included. But checking out that folder, turns out that man2 and man3 folders themselves are missing.

     

    Is there a way to get back or download those folders?

  • by dwbrecovery,Solvedanswer

    dwbrecovery dwbrecovery Sep 27, 2016 10:32 AM in response to kkanungo17
    Level 3 (596 points)
    Servers Enterprise
    Sep 27, 2016 10:32 AM in response to kkanungo17

    Those folders are installed via:  Command Line Tools (macOS Sierra version 10.12).pkg   which is available at the Apple Developer website.