xmonad unable to compile config file

Bug #288273 reported by jan2ary
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xmonad (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: xmonad

Getting error while compiling xmonad config file:

andrey@pepelaz:~$ cat > .xmonad/xmonad.hs
import XMonad

main = xmonad defaultConfig
andrey@pepelaz:~$ ghci .xmonad/xmonad.hs
GHCi, version 6.8.2: http://www.haskell.org/ghc/ :? for help
Loading package base ... linking ... done.
[1 of 1] Compiling Main ( .xmonad/xmonad.hs, interpreted )
Failed to load interface for `Graphics.X11.Xlib.Extras':
  no package matching X11-1.4.1 was found
> Leaving GHCi.
andrey@pepelaz:~$
andrey@pepelaz:~$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10
andrey@pepelaz:~$ apt-cache policy xmonad
xmonad:
  Installed: 0.8-1
  Candidate: 0.8-1
  Version table:
 *** 0.8-1 0
        500 http://archive.ubuntu.com intrepid/universe Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 8.10
Package: xmonad 0.8-1
ProcEnviron:
 SHELL=/bin/bash
 PATH=/home/username/.oracle/client/instantclient_10_2:/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin:/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
SourcePackage: xmonad
Uname: Linux 2.6.27-7-generic i686

Tags: apport-bug
Revision history for this message
jan2ary (jan2ary) wrote :
Changed in xmonad:
status: New → Confirmed
Revision history for this message
Toni Ruottu (toni-ruottu) wrote :

The problem seems to be that Jaunty is shipping with libghc6-x11-dev version 1.4.2-1, while xmonad 0.8 requires version 1.4.1.

Revision history for this message
Toni Ruottu (toni-ruottu) wrote :

I was wrong. The problem is something that gets stored in user specific system state. I create a new user account. On that account compiling and using xmonad worked like a dream. Weird.

Revision history for this message
Iain Lane (laney) wrote :

Looks like user error - had xmonad 0.7 installed locally (per-user).

Changed in xmonad (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Toni Ruottu (toni-ruottu) wrote :

"ghc-pkg check" revealed some old manually installed xmonad stuff that caused the problems.

As a fix for this problem. First uninstall all xmonad Ubuntu packages. Then use ghc-pkg unregister to get rid of the manually installed packages. After this reinstall the Ubuntu packages. I got my package management all mixed up while I was fixing this problem, but I think you can avoid all that by uninstalling the relevant packages with apt-get before uninstalling them with ghc-pkg.

jan2ary, please post the output of "ghc-pkg check" as this may reveal the bug to be local to your system.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.