cabal install gtk2hs-buildtools
before moving on.Another complain repetitively made by cabal is "can't load .so/.DLL for: readline (/usr/lib/libreadline.so: invalid ELF header)", easily reproducible by issuing "ghci -package readline". After some investigation, it turns out to be due to a Gentoo policy.
To work around the problem, I assumed root privilege to use the following script, which basically restores libraries under /usr/lib/ to be true ELF files instead of symbolic links.
#!/bin/env python import os cmd = "mv /usr/lib/lib%s.so{,.old};ln -s /lib/lib%s.so"%(i,i) for i in ["ncurses","ncursesw","readline","z"]:os.system (cmd)
No comments:
Post a Comment