
HI, I am learning haskell by writing small programs. In this instance I want to write a program using the haskell binding of the NCurses library. Here is the (rather simple) code: import UI.NCurses main = do putStrLn "Hello World" When I try to run it: $ runhaskell cursesprog.hs cursesprog.hs: <command line>: can't load .so/.DLL for: ncursesw (/usr/lib/libncursesw.so: file too short) The file certainly exists but is only 32 bytes. I installed from Ubuntu's package manager. I am working on a 64 bit machine (if that helps). Can someone help me fix this? Thanks, Aditya.

It appears that this is a problem related to ghc:
https://bugzilla.redhat.com/show_bug.cgi?id=578509
I am using ghc 7.0.3 which comes with the latest Ubuntu (11.10). Would
installing the latest ghc release help?
On 10 March 2012 12:50, Aditya Manthramurthy
HI,
I am learning haskell by writing small programs. In this instance I want to write a program using the haskell binding of the NCurses library.
Here is the (rather simple) code:
import UI.NCurses
main = do putStrLn "Hello World"
When I try to run it:
$ runhaskell cursesprog.hs cursesprog.hs: <command line>: can't load .so/.DLL for: ncursesw (/usr/lib/libncursesw.so: file too short)
The file certainly exists but is only 32 bytes. I installed from Ubuntu's package manager. I am working on a 64 bit machine (if that helps).
Can someone help me fix this?
Thanks, Aditya.

I am using ghc 7.0.3 which comes with the latest Ubuntu (11.10). Would installing the latest ghc release help?
As they say it has been fixed in ghc upstream, I suppose that yes, upgrading ghc should definitely help. Alessandro -- If God had intended for email to be written in HTML, then the traditional signoff of prayers would be </amen> -- Tom Liston
participants (2)
-
Aditya Manthramurthy
-
Alessandro Pezzoni