这个问题是别人帮助我解决的问题的精辟解决方案。讨论可以在本期和这个r/xmonad员额上找到。
我使用Artix主要和Pacman一起作为包管理器。今天,大约一周后,我升级了许多软件包,结果它破坏了XMonad。
这是我从xmonad --recompile -v收到的信息
XMonad is recompiling and replacing itself another XMonad process because the current process is called "xmonad" but the compiled configuration should be called "xmonad-x86_64-linux"
XMonad will use ghc to recompile, because "/home/philippe/.xmonad/build" does not exist.
XMonad skipping recompile because it is not forced (e.g. via --recompile), and neither xmonad.hs nor any *.hs / *.lhs / *.hsc files in lib/ have been changed.
/home/philippe/.xmonad/xmonad-x86_64-linux: error while loading shared libraries: libHSxmonad-contrib-0.16-KKfUmtIonstICqbgIKQKYh-ghc8.10.4.so: cannot open shared object file: No such file or directory我尝试了很多人们在互联网上提到的解决方案--到目前为止,我已经花了3个多小时来调试这个-,尤其是:
cabal install --lib xmonad-contrib,它解决了我过去和XMonad一起遇到的一些问题。~/.local/bin/xmonad --recompile -v。有谁知道怎么解决这个问题吗?我以前在XMonad的升级方面遇到过问题,但从来没有遇到过类似的问题--我喜欢Haskell作为一种语言,但它的包管理是我在10+编程生涯中体验过的最恶心、最复杂的软件之一。
如果我最终清理了我的系统并通过堆栈管理了所有的东西,我如何通过它编译XMonad呢?只使用Stack,然后使用xmonad --recompile,就会给出以下错误:
XMonad will use ghc to recompile, because "/home/philippe/.xmonad/build" does not exist.
xmonad: ghc: runProcess: runInteractiveProcess: exec: inappropriate type (Not a directory)(顺便说一句,我确实有一个~/.xmonad/build/文件夹.)
发布于 2021-05-26 17:42:40
我终于成功了。XMonad回购公司的人帮了大忙,你可以在本期上查看他们的帮助。
粗略地说,我所做的是:
find和单词haskell,堆栈,ghc,cabal等等。不要忘记使用pacman -Rns和pacman -Q卸载首先从那里来的所有东西。exec $HOME/.xmonad/xmonad-x86_64-linux添加到.xinitrc,以便运行以前用Stack编译的内容。https://stackoverflow.com/questions/67710115
复制相似问题