Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

/usr/share/man/man3 missing on Ventura

I have noticed that /usr/share/man/man3 is missing in my MacOS Ventura installation. It used to be there in the earlier MacOS versions. The other man sections are there. Has anybody seen this issue? Is there a fix? Thanks for any hint.

MacBook Pro Apple Silicon

Posted on Dec 3, 2022 6:10 AM

Reply
Question marked as Best reply

Posted on Dec 3, 2022 7:30 AM

Any man sections related to development are not included in the Ventura installation. Worse, the CommandLineTools for Xcode 14.1 install their own man pages here, including sections 2, 3 and others:


/Library/Developer/CommandLineTools/SDKs/macOSX13.0.sdk/usr/share/man


These would only be available to you after that installation when you use the MANPATH environment variable to help man find those buried sections:


export MANPATH="/Library/Developer/CommandLineTools/SDKs/macOSX13.0.sdk/usr/share/man"


Once that is exported, you can verify where the man 3 section is located with this:


man -w 3 intro
/Library/Developer/CommandLineTools/SDKs/macOSX13.0.sdk/usr/share/man/man3/intro.3



The MANPATH just appends that path search to the existing default at /usr/share/man.


Those of us accustomed to development on UNIX systems past expect all of the man sections under /usr/share/man, and having to adjust MANPATH now is just plain annoying.

5 replies
Question marked as Best reply

Dec 3, 2022 7:30 AM in response to Trnfncb11

Any man sections related to development are not included in the Ventura installation. Worse, the CommandLineTools for Xcode 14.1 install their own man pages here, including sections 2, 3 and others:


/Library/Developer/CommandLineTools/SDKs/macOSX13.0.sdk/usr/share/man


These would only be available to you after that installation when you use the MANPATH environment variable to help man find those buried sections:


export MANPATH="/Library/Developer/CommandLineTools/SDKs/macOSX13.0.sdk/usr/share/man"


Once that is exported, you can verify where the man 3 section is located with this:


man -w 3 intro
/Library/Developer/CommandLineTools/SDKs/macOSX13.0.sdk/usr/share/man/man3/intro.3



The MANPATH just appends that path search to the existing default at /usr/share/man.


Those of us accustomed to development on UNIX systems past expect all of the man sections under /usr/share/man, and having to adjust MANPATH now is just plain annoying.

/usr/share/man/man3 missing on Ventura

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.