Xmonad配置文件问题

发布于 2024-09-25 05:23:26 字数 7744 浏览 2 评论 0原文

我已经使用Xmonad很长时间了,它运行得很好,除了我无法修改配置文件xmonad.hs,因为即使是基本配置也会出现一些奇怪的错误; 我的实际文件是:

import XMonad
main = xmonad $ defaultConfig
    {borderWidth =1
    , terminal = "urxvt"
    , normalBorderColor = "#cccccc"
    , focusedBorderColor = "#cd8b00" }

当我检查文件时,我得到这个:

HsUnix.c:(.text+0x0): multiple definition of `__hsunix_wifexited'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x0): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hsunix_wexitstatus':
HsUnix.c:(.text+0x10): multiple definition of `__hsunix_wexitstatus'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x10): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hsunix_wifsignaled':
HsUnix.c:(.text+0x20): multiple definition of `__hsunix_wifsignaled'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x20): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hsunix_wtermsig':
HsUnix.c:(.text+0x40): multiple definition of `__hsunix_wtermsig'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-    2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x40): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In     function `__hsunix_wifstopped':
HsUnix.c:(.text+0x50): multiple definition of `__hsunix_wifstopped'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-  2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x50): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hsunix_wstopsig':
HsUnix.c:(.text+0x60): multiple definition of `__hsunix_wstopsig'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x60): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hsunix_SIGWINCH':
HsUnix.c:(.text+0x70): multiple definition of `__hsunix_SIGWINCH'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x70): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hsunix_push_module':
HsUnix.c:(.text+0x80): multiple definition of `__hsunix_push_module'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-   2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x80): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hsunix_long_path_size':
HsUnix.c:(.text+0x90): multiple definition of `__hsunix_long_path_size'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x90): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hsunix_unsetenv':
HsUnix.c:(.text+0xa0): multiple definition of `__hsunix_unsetenv'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-    2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0xa0): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hscore_setrlimit':
HsUnix.c:(.text+0xb0): multiple definition of `__hscore_setrlimit'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-  2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0xb0): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In   function `__hscore_getrlimit':
HsUnix.c:(.text+0xc0): multiple definition of `__hscore_getrlimit'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-  2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0xc0): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In   function `__hscore_mkstemp':
HsUnix.c:(.text+0xd0): multiple definition of `__hscore_mkstemp'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-  2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0xd0): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In   function `__hsunix_unlockpt':
HsUnix.c:(.text+0xe0): multiple definition of `__hsunix_unlockpt'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-  2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0xe0): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hsunix_grantpt':
HsUnix.c:(.text+0xf0): multiple definition of `__hsunix_grantpt'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-  2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0xf0): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In  function `__hsunix_ptsname':
HsUnix.c:(.text+0x100): multiple definition of `__hsunix_ptsname'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-    2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x100): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In   function `__hsunix_mknod':
HsUnix.c:(.text+0x180): multiple definition of `__hsunix_mknod'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-    2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x110): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In     function `__hsunix_lstat':
HsUnix.c:(.text+0x1c0): multiple definition of `__hsunix_lstat'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x150): first defined here
/usr/local/lib/ghc-6.10.3/base-4.1.0.0/libHSbase-4.1.0.0.a(PrelIOUtils.o): In function   `__hscore_d_name':
PrelIOUtils.c:(.text+0x1c0): multiple definition of `__hscore_d_name'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-  2.4.0.0.a(dirUtils.o):dirUtils.c:(.text+0x0): first defined here
/usr/local/lib/ghc-6.10.3/base-4.1.0.0/libHSbase-4.1.0.0.a(PrelIOUtils.o): In function `__hscore_free_dirent':
PrelIOUtils.c:(.text+0x580): multiple definition of `__hscore_free_dirent'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-  2.4.0.0.a(dirUtils.o):dirUtils.c:(.text+0x10): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(IO.o): In function   `slqz_info':
(.text+0x227f): undefined reference to `fcntl_read'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(IO.o): In function `slqz_info':
(.text+0x22ab): undefined reference to `fcntl_read'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(IO.o): In function     `skA0_info':
(.text+0x2358): undefined reference to `fcntl_write'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(IO.o): In function         `skAq_info':
(.text+0x240f): undefined reference to `fcntl_write'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(IO.o): In function     `slwb_info':
(.text+0x2703): undefined reference to `fcntl_read'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(IO.o): In function     `slwb_info':
(.text+0x272f): undefined reference to `fcntl_read'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(IO.o): In function     `slzG_info':
(.text+0x29a3): undefined reference to `fcntl_lock'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(IO.o): In function     `slCa_info':
(.text+0x2b73): undefined reference to `fcntl_lock'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(IO.o): In function     `slFq_info':
(.text+0x2dff): undefined reference to `fcntl_lock'
collect2: ld returned 1 exit status

Please check the file for errors.

有人可以帮助我吗?我想配置 xmonad 使用 xmobar,但是如果连最简单的配置都不起作用,我不知道该怎么做,我知道 xmonad 正在使用最后的工作配置,也许我可以找到它并修改,我不知道我很困惑,提前谢谢

I am using Xmonad since long time now and it works well, execept I can not modify the configuration file xmonad.hs because there are some strange errors even with the basic configuration;
my actual file is :

import XMonad
main = xmonad $ defaultConfig
    {borderWidth =1
    , terminal = "urxvt"
    , normalBorderColor = "#cccccc"
    , focusedBorderColor = "#cd8b00" }

when I check the file I get this:

HsUnix.c:(.text+0x0): multiple definition of `__hsunix_wifexited'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x0): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hsunix_wexitstatus':
HsUnix.c:(.text+0x10): multiple definition of `__hsunix_wexitstatus'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x10): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hsunix_wifsignaled':
HsUnix.c:(.text+0x20): multiple definition of `__hsunix_wifsignaled'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x20): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hsunix_wtermsig':
HsUnix.c:(.text+0x40): multiple definition of `__hsunix_wtermsig'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-    2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x40): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In     function `__hsunix_wifstopped':
HsUnix.c:(.text+0x50): multiple definition of `__hsunix_wifstopped'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-  2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x50): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hsunix_wstopsig':
HsUnix.c:(.text+0x60): multiple definition of `__hsunix_wstopsig'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x60): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hsunix_SIGWINCH':
HsUnix.c:(.text+0x70): multiple definition of `__hsunix_SIGWINCH'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x70): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hsunix_push_module':
HsUnix.c:(.text+0x80): multiple definition of `__hsunix_push_module'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-   2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x80): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hsunix_long_path_size':
HsUnix.c:(.text+0x90): multiple definition of `__hsunix_long_path_size'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x90): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hsunix_unsetenv':
HsUnix.c:(.text+0xa0): multiple definition of `__hsunix_unsetenv'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-    2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0xa0): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hscore_setrlimit':
HsUnix.c:(.text+0xb0): multiple definition of `__hscore_setrlimit'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-  2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0xb0): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In   function `__hscore_getrlimit':
HsUnix.c:(.text+0xc0): multiple definition of `__hscore_getrlimit'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-  2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0xc0): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In   function `__hscore_mkstemp':
HsUnix.c:(.text+0xd0): multiple definition of `__hscore_mkstemp'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-  2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0xd0): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In   function `__hsunix_unlockpt':
HsUnix.c:(.text+0xe0): multiple definition of `__hsunix_unlockpt'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-  2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0xe0): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In function `__hsunix_grantpt':
HsUnix.c:(.text+0xf0): multiple definition of `__hsunix_grantpt'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-  2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0xf0): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In  function `__hsunix_ptsname':
HsUnix.c:(.text+0x100): multiple definition of `__hsunix_ptsname'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-    2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x100): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In   function `__hsunix_mknod':
HsUnix.c:(.text+0x180): multiple definition of `__hsunix_mknod'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-    2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x110): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(HsUnix.o): In     function `__hsunix_lstat':
HsUnix.c:(.text+0x1c0): multiple definition of `__hsunix_lstat'
/usr/local/lib/ghc-6.10.3/unix-2.3.2.0/libHSunix-2.3.2.0.a(HsUnix.o):HsUnix.c:(.text+0x150): first defined here
/usr/local/lib/ghc-6.10.3/base-4.1.0.0/libHSbase-4.1.0.0.a(PrelIOUtils.o): In function   `__hscore_d_name':
PrelIOUtils.c:(.text+0x1c0): multiple definition of `__hscore_d_name'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-  2.4.0.0.a(dirUtils.o):dirUtils.c:(.text+0x0): first defined here
/usr/local/lib/ghc-6.10.3/base-4.1.0.0/libHSbase-4.1.0.0.a(PrelIOUtils.o): In function `__hscore_free_dirent':
PrelIOUtils.c:(.text+0x580): multiple definition of `__hscore_free_dirent'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-  2.4.0.0.a(dirUtils.o):dirUtils.c:(.text+0x10): first defined here
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(IO.o): In function   `slqz_info':
(.text+0x227f): undefined reference to `fcntl_read'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(IO.o): In function `slqz_info':
(.text+0x22ab): undefined reference to `fcntl_read'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(IO.o): In function     `skA0_info':
(.text+0x2358): undefined reference to `fcntl_write'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(IO.o): In function         `skAq_info':
(.text+0x240f): undefined reference to `fcntl_write'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(IO.o): In function     `slwb_info':
(.text+0x2703): undefined reference to `fcntl_read'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(IO.o): In function     `slwb_info':
(.text+0x272f): undefined reference to `fcntl_read'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(IO.o): In function     `slzG_info':
(.text+0x29a3): undefined reference to `fcntl_lock'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(IO.o): In function     `slCa_info':
(.text+0x2b73): undefined reference to `fcntl_lock'
/home/giuseppe/.cabal/lib/unix-2.4.0.0/ghc-6.10.3/libHSunix-2.4.0.0.a(IO.o): In function     `slFq_info':
(.text+0x2dff): undefined reference to `fcntl_lock'
collect2: ld returned 1 exit status

Please check the file for errors.

can somebody help me? I would like configure xmonad to use xmobar, but If not even the simplest configuration works, iI do not know how to do it, I know that xmonad is using the last working configuration, maybe I can find it and modify, I do not know I am confused, thanks in advance

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

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

发布评论

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

评论(1

淡忘如思 2024-10-02 05:23:26

您有 2 个版本的“unix”haskell 库:系统一和本地用户 Giuseppe。您可以尝试隐藏最后一个,只是为了重新编译 xmonad 配置,稍后再取消隐藏。

ghc-pkg hide --user unix-2.4.0.0

You have 2 versions of "unix" haskell library: system one and for your local user giuseppe. You can try hiding the last one just for recompiling the xmonad config, unhide it later.

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