Re: (OT) path_helper [was Re: Xterm not reading dotfiles]
Re: (OT) path_helper [was Re: Xterm not reading dotfiles]
- Subject: Re: (OT) path_helper [was Re: Xterm not reading dotfiles]
- From: Merton Campbell Crockett <email@hidden>
- Date: Sun, 18 Nov 2007 19:08:00 -0800
On 18 Nov 2007, at 17:59:46, Andrew J. Hesford wrote:
On Nov 18, 2007, at 7:51 PM, Merton Campbell Crockett wrote:
If I create a file MacPorts in /etc/paths.d, the paths listed in
MacPorts will not be included in the path. If I add them to the
existing X11 file, they will appear in the path.
This isn't the expected behavior. Are you sure the permissions are
set appropriately on the MacPorts files? What are the contents of
the file?
A Homer Simpson moment, doh! The contents of MacPorts were there but
not in the expected order.
With regard to search order, assume that I have built a version of
an application using MacPorts that I wish to run instead of the
version included in the Mac OS X 10.5 distribution. If /opt/local/
bin doesn't appear before /usr/bin or /bin, the Apple version of
the application will be run.
You can always override the system default path by putting it at the
front of /etc/paths. However, I think that is generally a bad idea.
Overriding the path to mask system executables can lead to problems
or confusion. That's why things like GCC in MacPorts call themselves
gcc-mp-4.2 and so on.
It doesn't appear that you can. The first four elements of PATH are
forced to be /usr/bin, /bin, /usr/sbin, and /sbin regardless of the
order in which they appear in /etc/paths.
I haven't updated MacPorts recently. The old recommendation
for .profile was to "export PATH=/opt/local/bin:/opt/local/sbin:
$PATH". Most of the applications rely on using the current Xcode
version of gcc. If the application required a specific version of
gcc, it had to be built and given a name other than gcc such as gcc-
mp-4.2.
Merton Campbell Crockett
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden