Xmonad配置文件问题

时间:2010-09-25 11:17:13

标签: configuration xmonad

我很久以来一直在使用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正在使用最后的工作配置,也许我可以找到它并修改,我不知道我很困惑,提前谢谢

1 个答案:

答案 0 :(得分:1)

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

ghc-pkg hide --user unix-2.4.0.0