GHCI Problem
Sven Panne
Sven.Panne at aedion.de
Mon Sep 5 02:22:51 EDT 2005
Am Sonntag, 4. September 2005 16:26 schrieb Dominic Steinitz:
> Can anyone tell me why ghci has this problem whereas ghc itself doesn't and
> how I fix it.
>
> Thanks, Dominic.
>
> [dom at tility LAMH]$ ghci -package hsql-mysql
> ___ ___ _
> / _ \ /\ /\/ __(_)
> / /_\// /_/ / / | | GHC Interactive, version 6.4, for Haskell 98.
> / /_\\/ __ / /___| | http://www.haskell.org/ghc/
> \____/\/ /_/\____/|_| Type :? for help.
>
> Loading package base-1.0 ... linking ... done.
> Loading package hsql-1.6 ... linking ... done.
> Loading package hsql-mysql-1.6 ... ghc-6.4: can't load .so/.DLL for: c
> (/usr/lib/libc.so: invalid ELF header)
> [...]
It looks like the package description of hsql-mysql explicitly mentions "-lc"
for linking (or something like that). Simply removing that superfluous flag
should fix the problem, but I'm only guessing here, as I've never used that
package.
Cheers,
S.
More information about the Glasgow-haskell-users
mailing list