Trouble with Haskell Platform SlackBuild
Posted: 10. Dec 2012, 13:18
I recently installed haskell-platform from src and the script failed at the very end where it tries to do
I just did it by hand, and everything else had worked up to that point, so all was well. However, I was a bit surprised to find I needed root privileges. Does anyone know if this is normal?
I don't imagine that was what caused the problem with the SlackBuild. Looking at the script, I can't see where the variable $GHC_PKG is defined. So doinst.sh will just contain
and it should always fail like this.
EDIT Here:
http://slackbuilds.org/slackbuilds/14.0 ... SlackBuild
The reason I ask is because I'm struggling with a new version of the GHC package that builds the thing from source rather than just unpacking the GHC binary distribution. So maybe that's somehow causing trouble with haskell-platform.
Code: Select all
ghc-pkg recache
Code: Select all
mimosa[~]$ ghc-pkg recache
ghc-pkg: /usr/lib64/ghc-7.4.2/package.conf.d/package.cache: you don't have permission to modify this file
mimosa[~]$ ls -l /usr/bin | grep ghc
lrwxrwxrwx 1 root root 9 Dec 8 09:50 ghc -> ghc-7.4.2
-rwxr-xr-x 1 root root 238 Dec 7 23:44 ghc-7.4.2
lrwxrwxrwx 1 root root 13 Dec 8 09:50 ghc-pkg -> ghc-pkg-7.4.2
-rwxr-xr-x 1 root root 264 Dec 7 23:44 ghc-pkg-7.4.2
lrwxrwxrwx 1 root root 10 Dec 8 09:50 ghci -> ghci-7.4.2
-rwxr-xr-x 1 root root 60 Dec 7 23:44 ghci-7.4.2
lrwxrwxrwx 1 root root 17 Dec 8 09:50 haddock -> haddock-ghc-7.4.2
-rwxr-xr-x 1 root root 229 Dec 7 23:44 haddock-ghc-7.4.2
-rwxr-xr-x 1 root root 221 Dec 7 23:44 runghc
lrwxrwxrwx 1 root root 6 Dec 8 09:50 runhaskell -> runghc
Code: Select all
recache
EDIT Here:
http://slackbuilds.org/slackbuilds/14.0 ... SlackBuild
The reason I ask is because I'm struggling with a new version of the GHC package that builds the thing from source rather than just unpacking the GHC binary distribution. So maybe that's somehow causing trouble with haskell-platform.