The problem of using network package in GHC
I have this simple code:
import Network
main = return ()
executing with runhaskell error:
> runhaskell test.hs test.hs: C: \ ghc \ ghc-6.10.4 \ network-2.2.1.2 \ HSnetwork-2.2.1.2.o: unknown symbol `_getnameinfo ' test.hs: test.hs: unable to load package `network-2.2.1.2 '
GHCi also gives simillar error message. What can I do about it?
I am using GHC 6.10.4 on Windows 2000.
+2
robson3.14
source
to share
2 answers
This most likely means that the GHC binary distribution you installed was built against a different C library than the one on your system. Try reinstalling GHC using the Haskell platform: http://hackage.haskell.org/platform/
+2
Don stewart
source
to share
You can use cabal to try and reinstall the package. I had similar behavior with CGI library and forced reinstallation fixed.
0
Shaun
source
to share