[Haskell-beginners] Installing HDBC

Kathleen Lynch kmandpjlynch at verizon.net
Tue Feb 1 23:00:31 CET 2011

...I put it in my PATH [C:\users\user] and put the file Sqlite3 in that 
folder [C:\users\user] where I'm running Cabal and extended the Cabal 
command as follows - nothing helps...
    cabal install 
HDBC-sqlite3 --extra-include-dirs=C:\Users\User --extra-lib-dirs=C:\Users\User

...At this point, I'm unable to install Sqlite3 and GTK...

...I know this is 'open source' but it really shouldn't be this hard to do 
these installations...

...I'll go back to my Monads and see if I can figure them out and then take 
a look at F# - I might have better luck there...


----- Original Message ----- 
From: "Daniel Fischer" <daniel.is.fischer at googlemail.com>
To: "Kathleen Lynch" <kmandpjlynch at verizon.net>
Cc: <beginners at haskell.org>
Sent: Tuesday, February 01, 2011 3:07 PM
Subject: Re: [Haskell-beginners] Installing HDBC

On Tuesday 01 February 2011 20:20:22, Kathleen Lynch wrote:
> I entered the command you gave me: cabal install HDBC-sqlite3
> It returned the following error:
> Resolving dependencies...
> Configuring HDBC-sqlite3-
> cabal: Missing dependency on a foreign library:
> * Missing C library: sqlite3

That means you don't have the C library installed, or at least that cabal
can't find it. You have to install it otherwise or put it in a directory in
your %PATH%. I'm not familiar with Windows, so I can't tell you how to do
that. You could search on the haskellwiki, perhaps there are instructions

> I then went to the link you provided:
> http://hackage.haskell.org/package/HDBC-sqlite3
> I extracted the tar file, HDBC-sqlite3-, and tried to un-tar
> it but get the following message:
> "Error reading header after processing 0 entries"

If cabal complains about a missing foreign dependency, trying a manual
install won't help, runhaskell ./Setup configure won't look anywhere cabal

More information about the Beginners mailing list