Re: Weird Looping Crash
Re: Weird Looping Crash
- Subject: Re: Weird Looping Crash
- From: Jeremy Huddleston <email@hidden>
- Date: Mon, 01 Feb 2010 15:13:26 -0800
Well... for some reason, /usr/bin doesn't seem to be in your $PATH when startx is launched from launchd.
Try putting in an "echo PATH is: $PATH" lines in /usr/X11/bin/startx to see what it's set to (it'll be printed with the rest of those error messages in /var/log/system.log).
On Feb 1, 2010, at 15:04, Nathan wrote:
> On Mon, Feb 1, 2010 at 3:48 PM, Jeremy Huddleston <email@hidden> wrote:
>>
>> On Feb 1, 2010, at 13:04, Nathan wrote:
>>
>>> /usr/X11R6/bin/Xephyr -screen 1024x768 -query 10.1.2.51 -once
>>>
>>> ...which never came up. I finally went and looked in console and
>>> found this block of errors which keeps looping over and over and over:
>>
>> ...
>>
>>> 2/1/10 1:21:16 PM org.x.startx[58137] /usr/X11/bin/startx: line 78:
>>> defaults: command not found
>>
>> You should look into this. Why is the startup script not finding /usr/bin/defaults ?
>>
>
> I don't see anything wrong (???)
>
> $ which defaults
> /usr/bin/defaults
> $ ls -l /usr/bin/defaults
> -rwxr-xr-x 1 root wheel 106848 Oct 16 03:55 /usr/bin/defaults
> $ defaults
> Command line interface to a user's defaults.
> Syntax:
> [snip]
> -dict-add <key1> <value1> ...
> $ md5 /usr/bin/defaults
> MD5 (/usr/bin/defaults) = 371267c43bb037f3e5ad3a2025a1ddd0
>
>
>>> 2/1/10 1:21:16 PM org.x.startx[58137] /Applications/Utilities/X11.app/Contents/MacOS/X11:
>>> line 3: dirname: command not found
>>
>> Or /usr/bin/dirname ... ?
>
> $ which dirname
> /usr/bin/dirname
> $ ls -l /usr/bin/dirname
> -r-xr-xr-x 1 root wheel 50688 May 18 2009 /usr/bin/dirname
> $ dirname
> usage: dirname path
> $ md5 /usr/bin/dirname
> MD5 (/usr/bin/dirname) = 299d8f94662fba71c6a6e870d3e98ad8
>
>
>>> line 14: exec: /X11.bin: cannot execute: No such file or directory
>>
>> This is certainly fallout from you not having dirname.
>>
>> You probably have unset $PATH somewhere (more likely) or trashed system files (unlikely).
>
> $ echo $PATH
> /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Developer/Tools/Panda3D:/Users/nathan/bin:/usr/local/bin:/usr/X11R6/bin/:/opt/local/lib/pgsql8/bin/:/opt/local/bin:/opt/local/sbin:/opt/local/lib/postgresql82/bin
>
> I don't get it. PATH is there. /usr/bin is right there at the start
> of it. (???)
>
> ~ Nathan
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> X11-users mailing list (email@hidden)
>
> This email sent to 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