problem loading package unix-2.3.2.0 while installing hackages on OpenSuse

I have OpenSuse 11.2 running on VMWare and I have recently installed ghc 6.10.4 from the RPM from OpenSuse. Now I want to install cabal. I have downloaded the required packages from hackage and I try to run: runhaskell Setup configure on any of these packages. With option -v I can see an error while linking unix-2.3.2.0. I am no expert on OpenSuse yet. Does anyone know what's happening here? linux-nrvh:/home/gmi/Download/cabal/zlib-0.5.2.0 # runhaskell -f /usr/bin/ghc -v Setup configure --with-compiler=ghc-6.10.4 ... Loading package filepath-1.1.0.2 ... linking ... done. Loading package unix-2.3.2.0 ... Setup: <command line>: can't load .so/.DLL for: dl (libdl.so: cannot open shared object file: No such file or directory) -- View this message in context: http://old.nabble.com/problem-loading-package-unix-2.3.2.0-while-installing-... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

Am Freitag 26 Februar 2010 12:52:36 schrieb gmi:
I have OpenSuse 11.2 running on VMWare and I have recently installed ghc 6.10.4 from the RPM from OpenSuse. Now I want to install cabal. I have downloaded the required packages from hackage and I try to run:
In principle, just unpacking the cabal-install package and running bootstrap.sh is far far easier.
runhaskell Setup configure on any of these packages. With option -v I can see an error while linking unix-2.3.2.0. I am no expert on OpenSuse yet. Does anyone know what's happening here?
linux-nrvh:/home/gmi/Download/cabal/zlib-0.5.2.0 # runhaskell -f /usr/bin/ghc -v Setup configure --with-compiler=ghc-6.10.4 ... Loading package filepath-1.1.0.2 ... linking ... done. Loading package unix-2.3.2.0 ... Setup: <command line>: can't load .so/.DLL for: dl (libdl.so: cannot open shared object file: No such file or directory)
You seem to not have libdl.so, which is needed by the unix package. Can you confirm this by running $ locate libdl (or $ ls /usr/lib | grep libdl $ ls /lib | grep libdl if you don't have [the rights to run] locate)? If that doesn't show something like /lib/libdl-2.9.so /lib/libdl.so.2 /usr/lib/libdl.a /usr/lib/libdl.so , you'll have to install glibc-devel, which provides /usr/lib/libdl.a and /usr/lib/libdl.so (the others are provided by glibc, but I can't imagine that you haven't that installed). And while you're in YaST, installing software, grab almost every *-devel package you see, unless you're sufficiently sure that you will not need that one - installing one more devel-package a week becomes annoying pretty soon.

Thanks a lot. It was all about installing *-devel things. -- View this message in context: http://old.nabble.com/problem-loading-package-unix-2.3.2.0-while-installing-... Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
participants (2)
-
Daniel Fischer
-
gmi