Changes between Version 122 and Version 123 of FAQ
- Timestamp:
- Apr 12, 2012, 8:49:22 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FAQ
v122 v123 54 54 55 55 Traditionally, the place to install third party software on many UNIX systems is `/usr/local`. 56 However, having macports under `/usr/local` would be error-prone for precisely that reason.56 However, having MacPorts under `/usr/local` would be error-prone for precisely that reason. 57 57 Many other software packages and packaging systems install into `/usr/local`, 58 and could accidentaly overwrite what macports has installed, or vice versa.58 and could accidentaly overwrite what MacPorts has installed, or vice versa. 59 59 60 60 While this could be dismissed as the user's own error, it is a fact that 61 61 people click through installers blindly, and consequently collisions under 62 62 `/usr/local` (and other prominent directories) happen very often. 63 Mac ports doesn't want to be a victim of that, and `/opt/local` provides63 MacPorts doesn't want to be a victim of that, and `/opt/local` provides 64 64 the splendid isolation (as would any other dedicated directory, of course). 65 65 66 66 Also, `/usr/local` traditionally contains the given system's local admin tools; 67 macports doesn't want to stomp on that either.67 MacPorts doesn't want to stomp on that either. 68 68 69 69 (For the same reasons, fink uses `/sw` as its prefix.) 70 70 71 === So with macports under /opt/local I can use /usr/local freely? === #usrlocal71 === So with MacPorts under /opt/local I can use /usr/local freely? === #usrlocal 72 72 73 No, not entirely. Even with macports living elsewhere, `/usr/local` can still interfere.73 No, not entirely. Even with MacPorts living elsewhere, `/usr/local` can still interfere. 74 74 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 75 75 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. 76 76 77 If you ask on a macports mailing list about a port failing to build because it chokes on something78 that it found and picked up in `/usr/local` you will probably be advi ced to temporarily rename77 If you ask on a MacPorts mailing list about a port failing to build because it chokes on something 78 that it found and picked up in `/usr/local` you will probably be advised to temporarily rename 79 79 `/usr/local` to make it disappear entirely for the duration of the build. 80 Obviously, this wouldn't be possible to do if macports itself lived under `/usr/local`.80 Obviously, this wouldn't be possible to do if MacPorts itself lived under `/usr/local`. 81 81 82 82 === How do I remove or uninstall MacPorts? === #uninstall