[MacPorts] FAQ modified
MacPorts Wiki
noreply at macports.org
Tue Aug 11 01:58:43 UTC 2026
Page "FAQ" was changed by ryandesign
Diff URL: <https://trac.macports.org/wiki/FAQ?action=diff&version=204>
Revision 204
Comment: Add to usrlocal section
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: FAQ
=========================================================================
--- FAQ (version: 203)
+++ FAQ (version: 204)
@@ -90,6 +90,7 @@
=== Can I install software in /usr/local while using MacPorts? === #usrlocal
No. Even though MacPorts is installed elsewhere, software installed in `/usr/local` can still interfere with MacPorts.
+Some compilers automatically look for libraries in /usr/local/lib.
Some software (especially the GNU auto* tools and gcc) looks into `/usr/local` for external headers, libraries, and binaries. Certain ports might (and do) fail to build because during their build something incompatible is found and picked up
from `/usr/local`. Good ports avoid this by explicitly specifying `--with-libfoo=/opt/local/lib/` or explicitly disabling all such possible dependencies altogether with `--disable-foo` or `--without-bar` but not all ports are able to do that.
And even if all files that should be found in `/opt/local` are correctly used, headers and libraries provided by the operating system in `/usr` will still be overridden if files of the same name exist in `/usr/local`.
-------8<------8<------8<------8<------8<------8<------8<------8<--------
--
Page URL: <https://trac.macports.org/wiki/FAQ>
MacPorts <https://www.macports.org/>
Ports system for macOS
This is an automated message. Someone added your email address to be
notified of changes on 'FAQ' page.
If it was not you, please report to admin at macports.org.
More information about the macports-changes
mailing list