Comment 9 for bug 213775

Revision history for this message
Holden Karau (holden-pigscanfly) wrote :

I removed the ghc6 package and then went through and deleted everything that mentioned ghc and re-installed the ghc6 package and now:
if I run runghc --package Cabal Setup.lhs it says "bash: /usr/local/bin/runghc: No such file or directory" but "runghc6 Setup.lhs" works just fine.
Looking at both of them:
ls -al /usr/bin/runghc
lrwxrwxrwx 1 root root 24 2008-04-11 01:58 /usr/bin/runghc -> /etc/alternatives/runghc
ls -al /usr/bin/runghc6
lrwxrwxrwx 1 root root 27 2008-04-11 01:57 /usr/bin/runghc6 -> ../lib/ghc-6.8.2/bin/runghc
Which suggest that all that is needed is updating the symbolic link of rungh to ../lib/ghc-6.8.2/bin/runghc

Looking at ghc6_6.8.2-2ubuntu1.diff I'd suggest changing
"+ --slave $execdir/runghc runghc $bindir/runghc \" to "+ --slave $execdir/runghc runghc$execdir/runghc6 \"