Re: x11 won't start up; keeps trying
Re: x11 won't start up; keeps trying
- Subject: Re: x11 won't start up; keeps trying
- From: Will Mortensen <email@hidden>
- Date: Sat, 14 Aug 2010 00:49:10 -0700
Oops, your PATH isn't missing /usr/sbin, but the order still indicates you are doing something strange.
On Aug 14, 2010, at 12:47 AM, Will Mortensen wrote:
> See below....
>
>
> On Aug 13, 2010, at 11:12 PM, Tom Grace wrote:
>
>> On 14.08.2010, at 01.21, Jeremy Huddleston wrote:
>>
>>>> Hello,
>>>> I am having problems starting x11 on 10.6.4, and I can't figure it out on my own, and cannot find the answer elsewhere.
>>>>
>>>> First, a really quick question: does installing X11 create a path by default to startx from my home directory? I kept getting 'startx: Command not found', and had to add /usr/X11/bin to .bash_profile
>>>
>>> 1) Yes, you should have /usr/X11/bin in your path because it is added by /etc/profile which uses /usr/libexec/path_helper to setup PATH
>>
>> This isn't in /etc/profile; I wonder how it got lost.
>
> You're not supposed to see that in /etc/profile. That PATH component (among others) is a *consequence* of /etc/profile, because it runs path_helper. Your /etc/profile on 10.6.4 should be simply as follows:
>
>
> # System-wide .profile for sh(1)
>
> if [ -x /usr/libexec/path_helper ]; then
> eval `/usr/libexec/path_helper -s`
> fi
>
> if [ "${BASH-no}" != "no" ]; then
> [ -r /etc/bashrc ] && . /etc/bashrc
> fi
>
>
>> PATH=/usr/X11/bin:/Users/tg/GMT4.5.3/bin:/bin:/sbin:/usr/bin:/usr/local/bin:/usr/sbin:/work/design-type/utilities:/Users/tg/bin/FDK/Tools/osx
>
> You are setting your PATH wholesale somewhere, rather than appending/prepending to it. This is bad. (That's why it was missing /usr/X11/bin.) I can tell because the default PATH includes /usr/bin:/bin:/usr/sbin:/sbin in that order, while you are missing /usr/sbin and the order is wrong. Check your shell startup files as well as ~/.MacOSX/environment.plist.
>
> You might be doing some other, similarly strange thing that is causing or contributing to your remaining X11 problems, although I have no idea what. I leave that to the expert (Jeremy). :-)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden