El Capitan XQuartz fails to open. Abnormal code 126
Solution 1:
I found that there was a hidden directory that contained extra logs. The path is /private/var/log/system.log
Within this log I found additional information.Jul 26 16:38:55 WAM-RMAES-01 org.macosforge.xquartz.startx[44581]: waiting for X server to begin accepting connections
Jul 26 16:39:11 --- last message repeated 8 times ---
Jul 26 16:39:11 WAM-RMASA-01 org.macosforge.xquartz.X11.stub[44680]: Xquartz: bootstrap_look_up(): Unknown service name
Jul 26 16:39:12 WAM-RMASA-01 org.macosforge.xquartz.startx[44581]: waiting for X server to begin accepting connections
Jul 26 16:39:12 WAM-RMASA-01 org.macosforge.xquartz.startx[44581]: /opt/X11/bin/xinit: giving up
Jul 26 16:39:12 WAM-RMASA-01 org.macosforge.xquartz.startx[44581]: /opt/X11/bin/xinit: unable to connect to X server: Operation timed out
Jul 26 16:39:12 WAM-RMASA-01 org.macosforge.xquartz.startx[44581]: waiting for X server to begin accepting connections /opt/X11/bin/xinit: server error
Jul 26 16:39:12 WAM-RMASA-01 org.macosforge.xquartz.startx[44581]: waiting for X server to begin accepting connections
Jul 26 16:39:12 WAM-RMASA-01 com.apple.xpc.launchd[1] (org.macosforge.xquartz.startx[44581]): FairPlay decryption failed on binary.
Jul 26 16:39:12 WAM-RMASA-01 org.macosforge.xquartz.startx[44736]: expr: syntax error
Jul 26 16:39:12 --- last message repeated 1 time ---
Jul 26 16:39:12 WAM-RMASA-01 org.macosforge.xquartz.startx[44736]: xauth: file /Users/rmaes/.serverauth.44737 does not exist
Jul 26 16:39:12 WAM-RMASA-01 org.macosforge.xquartz.X11.stub[44835]: Xquartz: Unable to locate waiting server: org.macosforge.xquartz.X11
Jul 26 16:39:12 WAM-RMASA-01 org.macosforge.xquartz.X11.stub[44843]: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
Jul 26 16:39:12 WAM-RMASA-01 org.macosforge.xquartz.startx[44736]: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11: line 12: /usr/local/bin/tcsh: No such file or directory
Jul 26 16:39:12 WAM-RMASA-01 org.macosforge.xquartz.startx[44736]: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11: line 12: exec: /usr/local/bin/tcsh: cannot execute: No such file or directory
Jul 26 16:39:14 WAM-RMASA-01 org.macosforge.xquartz.startx[44736]:
These logs reveal possible reasons for the failure to start. One is that the tcsh shell that is declared as my default shell came over from my linux account apparently. TCSH doesn't exist on the same path that was defined by default.
So for better or worse, I don't want to mess with the config in case IT has some clever link between what I change in my MAC profile and what my linux environment has, so I just make the following soft link.
sudo ln -s /bin/tcsh tcsh
A Bang! XQuartz starts right up!