Problem installing Haskell platform on Ubuntu Karmic

Hello List, I can't compile the haskell platform. I followed this guide http://davidsiegel.org/haskell-platform-in-karmic-koala/ and downloaded http://hackage.haskell.org/platform/2010.1.0.0/haskell-platform-2010.1.0.0.t... as suggested in comment 5. configure runs fine, but when I try to "make" it, it fails to compile the network package. Preprocessing library network-2.2.1.7... Building network-2.2.1.7... [1 of 5] Compiling Network.URI ( Network/URI.hs, dist/build/Network/URI.o ) [2 of 5] Compiling Network.Socket.Internal ( dist/build/Network/Socket/Internal.hs, dist/build/Network/Socket/Internal.o ) [3 of 5] Compiling Network.Socket ( dist/build/Network/Socket.hs, dist/build/Network/Socket.o ) [4 of 5] Compiling Network.BSD ( dist/build/Network/BSD.hs, dist/build/Network/BSD.o ) [5 of 5] Compiling Network ( Network.hs, dist/build/Network.o ) Network.hs:274:15: Warning: Pattern match(es) are overlapped In a case alternative: a -> ... Network/URI.hs:108:7: Could not find module `Text.ParserCombinators.Parsec': Perhaps you haven't installed the profiling libraries for package `parsec-2.1.0.1'? Use -v to see a list of the files searched for. Error: Building the network-2.2.1.7 package failed make: *** [build.stamp] Error 2 I'd really appreciate any help.

Try to download and install the GHC binary [1] directly, do a "make clean" and then "make". Ubuntu does not really maintain the latest versions of Haskell libraries or the GHC compiler so try not to use apt-get to install them. It is much better to install GHC manually and Haskell Platform manually and then install everything you need using "cabal-install". -deech [1] http://www.haskell.org/ghc/download_ghc_6_12_1.html#binaries

Try: "ghc-pkg unregister parsec". I think this will cause parsec to get
recompiled. I had a similar problem and recall having to do this with a few
libraries, although this was during compilation of cabal.
On Sun, Apr 4, 2010 at 2:20 AM, Kim Stebel
Hello List,
I can't compile the haskell platform. I followed this guide http://davidsiegel.org/haskell-platform-in-karmic-koala/ and downloaded http://hackage.haskell.org/platform/2010.1.0.0/haskell-platform-2010.1.0.0.t... suggested in comment 5. configure runs fine, but when I try to "make" it, it fails to compile the network package.
Preprocessing library network-2.2.1.7... Building network-2.2.1.7... [1 of 5] Compiling Network.URI ( Network/URI.hs, dist/build/Network/URI.o ) [2 of 5] Compiling Network.Socket.Internal ( dist/build/Network/Socket/Internal.hs, dist/build/Network/Socket/Internal.o ) [3 of 5] Compiling Network.Socket ( dist/build/Network/Socket.hs, dist/build/Network/Socket.o ) [4 of 5] Compiling Network.BSD ( dist/build/Network/BSD.hs, dist/build/Network/BSD.o ) [5 of 5] Compiling Network ( Network.hs, dist/build/Network.o )
Network.hs:274:15: Warning: Pattern match(es) are overlapped In a case alternative: a -> ...
Network/URI.hs:108:7: Could not find module `Text.ParserCombinators.Parsec': Perhaps you haven't installed the profiling libraries for package `parsec-2.1.0.1'? Use -v to see a list of the files searched for.
Error: Building the network-2.2.1.7 package failed make: *** [build.stamp] Error 2
I'd really appreciate any help.
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
participants (3)
-
aditya siram
-
Ashish Agarwal
-
Kim Stebel