Macports 升级失败后如何修复 X11?

发布于 2024-10-03 04:43:41 字数 779 浏览 1 评论 0原文

最近,为了尝试xmonad(显然需要X11版本> = 1.4.6.1),我尝试通过Macports升级Snow Leopard的原生X11。然而,升级后,X11一直表现得很奇怪。例如,它不会自动启动quartz-wm(尽管它允许我通过xterm手动启动)。长时间不活动后它也会崩溃。检查控制台,我收到以下错误:[org.macports.startx:未指定协议]。此外,尽管升级到 X11 v1.9.2,xmonad 仍然无法工作,给出以下错误:


Configuring xmonad-0.9...
Setup.lhs: At least the following dependencies are missing:
X11 >=1.4.6.1 (!)
At this point, I decided to just give up on xmonad and use the native X11, but this is now giving me the exact same errors. In particular, the native X is telling me that it can't communicate with the display (:0.0) set in the DISPLAY variable (which apparently has been changed by macports' X11 install). Needless to say, this is very frustrating, and any help would be greatly appreciated. Thanks!

Recently, in an attempt to try xmonad (which apparently requires X11 version >= 1.4.6.1), I tried upgrading Snow Leopard's native X11 via Macports. However, after upgrading, X11 has been acting strangely. For example, it won't automatically start quartz-wm (though it lets me do so manually via xterm). It also crashes after being inactive for long periods of time. Checking the console, I get the following errors: [org.macports.startx: No protocol specified]. Further, despite upgrading to X11 v1.9.2, xmonad still doesn't work, giving me the following error:


Configuring xmonad-0.9...
Setup.lhs: At least the following dependencies are missing:
X11 >=1.4.6.1 (!)


At this point, I decided to just give up on xmonad and use the native X11, but this is now giving me the exact same errors. In particular, the native X is telling me that it can't communicate with the display (:0.0) set in the DISPLAY variable (which apparently has been changed by macports' X11 install). Needless to say, this is very frustrating, and any help would be greatly appreciated. Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

下壹個目標 2024-10-10 04:43:41

MacPorts 不会升级 Snow Leopards 的 X11,它会安装完全独立版本的 X11 客户端库以及您要求的任何其他软件包。这是 MacPorts 及其所有软件包经过深思熟虑的设计决定。默认情况下,一般情况下,MacPorts 将所有内容安装在 /opt/local 下。要不使用 MacPorts 版本,只需确保您的 shell 环境变量中不包含任何 /opt/local 目录 - 特别是 /opt/local/bin -特定的 PATH - 或可执行文件和库的任何绝对路径。如果您想完全删除 MacPorts,以下操作将删除几乎所有内容:

$ sudo rm -rf /opt/local

MacPorts does not upgrade Snow Leopards's X11, it installs a completely separate version of the X11 client libraries and whatever other packages you ask it to. This is a deliberate design decision with MacPorts and all its packages. By default and in general, MacPorts installs everything under /opt/local. To not use the MacPorts version, just make sure you do not include any /opt/local directories - particularly /opt/local/bin - in your shell environment variables - in particular PATH - or in any absolute paths to executables and libraries. If you want to totally remove MacPorts, the following will get rid of just about everything:

$ sudo rm -rf /opt/local
猫卆 2024-10-10 04:43:41

Xmonad 错误消息所指的 X11 是 Haskellhttp:// hackage.haskell.org/package/X11/,它似乎不需要 X 服务器的 X11 或 X 服务器的任何特定数字版本。换句话说,你找错了树。

The X11 to which the Xmonad error message refers is the Haskell package http://hackage.haskell.org/package/X11/, which doesn't appear to require any particular numerical version of X11 proper or of the X server. In other words, you were barking up the wrong tree.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文