I'm trying to install the xmonad. So firstly, I install the ghc complier using the following comands:
zypper ar http://download.opensuse.org/repositories/devel:/languages:/haskell/openSUSE_12.1/devel:languages:haskell.repo
zypper in ghc
After that, I try to install the cabal-install-0.14.0 using the following commands:
wget http://hackage.haskell.org/packages/archive/cabal-install/0.14.0/cabal-install-0.14.0.tar.gz
tar zxfv cabal-install-0.10.2.tar.gz
cd cabal-install-0.10.2
sh bootstrap.sh
But when I run the last command, it got the error:
Setup: The program hsc2hs is required but it could not be found
Error during cabal-install bootstrap:
Building the network package failed.
Obviously, I need the hsc2hs program and I can see it in the directory "/usr/lib/ghc-7.4.2/hsc2hs", so I add this directory in the PATH. But it still doesn't work.
Is there anyone could give me some advice? Thanks.
PS: My OS is openSUSE 12.1