You are not logged in.

#1 2014-06-07 07:44:04

Mnk
Member
Registered: 2014-04-13
Posts: 10

[SOLVED]Xmonad can't load xmonad.hs | cannot find -lHSxmonad-0.12

Hi, I've been having some issues getting xmonad to run properly and because I'm new to xmonad I'm just going to go through what I've done so far. Perhaps my mistake was made early on.
After trying to get the packages from the offical rep to work with no success I removed everything and installed the darcs from the AUR, which after a little fiddling seemed to work (as in, I got no errors or warnings during the installation in the end). I restarted into xmonad to see if it worked and it all seemed fine. The default keybindings worked so I figured I was good to go, so in lack of a ~/.xmonad directory I made one along with an xmonad.hs file in said directory. I used the simple 6 line config from the xmonad page on wiki to test if everything worked but as I hit Alt+q I was greeted with the following message:

Error detected while loading xmonad configuration file: /home/sebastian/.xmonad/xmonad.hs

xmonad.hs:3:6: Warning:
    In the use of âdefaultConfigâ
    (imported from XMonad, but defined in XMonad.Config):
    Deprecated: "Use def (from Data.Default, and re-exported by XMonad and XMonad.Config) instead."
/usr/bin/ld: cannot find -lHSxmonad-0.12
collect2: error: ld returned 1 exit status

Please check the file for errors.

I replaced "defaultConfig" in xmonad.hs with "def" (no "'s of course) and ended up with this:

Error detected while loading xmonad configuration file: 
/home/sebastian/.xmonad/xmonad.hs
/usr/bin/ld: cannot find -lHSxmonad-0.12
collect2: error: ld returned 1 exit status

Please check the file for errors.

And from that point on, any config I've tried leaves me with that error and no changes to the system. And I'm all out of ideas by now. I don't know enough about this to say whether I'm an idiot or I have a problem with the compiler or some other part of the chain. So I'm hoping someone here knows what's up.

Last edited by Mnk (2014-06-09 09:15:20)

Offline

#2 2014-06-09 09:14:43

Mnk
Member
Registered: 2014-04-13
Posts: 10

Re: [SOLVED]Xmonad can't load xmonad.hs | cannot find -lHSxmonad-0.12

I gave up trying to figure out what the issue was with v. 0.12 so I removed xmonad-darcs and xmonad-contrib-darcs and installed xmonad 0.11 through cabal. Now it reads my configs. I'll mark it as solved even though I didn't really solve anything.

Offline

Board footer

Powered by FluxBB