Tôi đã gặp vấn đề khi XQuartz hoạt động trên máy Mac 10.9 (hay còn gọi là Maverick). Tôi đã cài đặt và gỡ cài đặt XQuartz nhiều lần nhưng không có kết quả.
Các thông báo lỗi tôi nhận được từ Console.app là:
10/01/2014 15:01:21.148 org.macosforge.xquartz.X11.stub[4821]: Xquartz: bootstrap_look_up(): Unknown service name
10/01/2014 15:01:22.099 org.macosforge.xquartz.startx[4675]: waiting for X server to begin accepting connections
10/01/2014 15:01:22.099 org.macosforge.xquartz.startx[4675]: /opt/X11/bin/xinit: giving up
10/01/2014 15:01:22.099 org.macosforge.xquartz.startx[4675]: /opt/X11/bin/xinit: unable to connect to X server: Operation timed out
10/01/2014 15:01:22.099 org.macosforge.xquartz.startx[4675]: waiting for X server to begin accepting connections /opt/X11/bin/xinit: server error
10/01/2014 15:01:22.106 org.macosforge.xquartz.startx[4675]: waiting for X server to begin accepting connections
10/01/2014 15:01:22.392 org.macosforge.xquartz.startx[4829]: xauth: file /Users/chutsu/.serverauth.4830 does not exist
10/01/2014 15:01:22.854 org.macosforge.xquartz.X11.stub[4975]: Xquartz: Unable to locate waiting server: org.macosforge.xquartz.X11
10/01/2014 15:01:22.860 org.macosforge.xquartz.X11.stub[4976]: Xquartz: Starting X server: /Applications/Utilities/XQuartz.app/Contents/MacOS/X11 --listenonly
10/01/2014 15:01:22.894 org.macosforge.xquartz.startx[4829]: open terminal failed: not a terminal
10/01/2014 15:01:24.857 org.macosforge.xquartz.startx[4829]:
10/01/2014 15:01:26.859 org.macosforge.xquartz.startx[4829]: waiting for X server to begin accepting connections
10/01/2014 15:01:28.862 org.macosforge.xquartz.startx[4829]: waiting for X server to begin accepting connections
10/01/2014 15:01:30.864 org.macosforge.xquartz.startx[4829]: waiting for X server to begin accepting connections
10/01/2014 15:01:32.867 org.macosforge.xquartz.startx[4829]: waiting for X server to begin accepting connections
10/01/2014 15:01:34.870 org.macosforge.xquartz.startx[4829]: waiting for X server to begin accepting connections
10/01/2014 15:01:36.873 org.macosforge.xquartz.startx[4829]: waiting for X server to begin accepting connections
10/01/2014 15:01:38.876 org.macosforge.xquartz.startx[4829]: waiting for X server to begin accepting connections
10/01/2014 15:01:40.879 org.macosforge.xquartz.startx[4829]: waiting for X server to begin accepting connections
10/01/2014 15:01:42.883 org.macosforge.xquartz.startx[4829]: waiting for X server to begin accepting connections
Và nó cứ lặp đi lặp lại mãi mãi. Mã tôi đã sử dụng để xóa XQuartz như sau (trong thiết bị đầu cuối):
sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist
sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/XQuartz.app /etc/*paths.d/*XQuartz
sudo pkgutil --forget org.macosforge.xquartz.pkg