[Haskell-beginners] Installing HDBC

Kathleen Lynch kmandpjlynch at verizon.net
Wed Feb 2 19:35:16 CET 2011


Eureeka!

Your info helped...I can't thank you enough...
I can now connect to the database shown in "Real World Haskell" - I was just 
about ready to give up...

Now if I can only get GTK and my Mac to work...well we'll start that 
tomorrow...enuf to do today...

Thank you

Ps
If anyone want to get a task force started in regard to installing Sqlite3 
and GTK, I'll definitely participate...

----- Original Message ----- 
From: "Patrick LeBoutillier" <patrick.leboutillier at gmail.com>
To: "Kathleen Lynch" <kmandpjlynch at verizon.net>
Cc: <beginners at haskell.org>
Sent: Tuesday, February 01, 2011 9:49 PM
Subject: Re: [Haskell-beginners] Installing HDBC


Kathleen,

Grab this: http://www.sqlite.org/sqlite-dll-win32-x86-3070500.zip
Extract the sqlite3.dll file from inside, copy it to c:\users\user and
to c:\windows\system32

Grab: http://www.sqlite.org/sqlite-autoconf-3070500.tar.gz
Extract the sqlite3.h file from inside, copy it to c:\users\user

Then

> cabal install 
> HDBC-sqlite3 --extra-include-dirs=C:\Users\User --extra-lib-dirs=C:\Users\User

should work.

I have only installed it though, I didn't run it.

Patrick

On Tue, Feb 1, 2011 at 5:00 PM, Kathleen Lynch <kmandpjlynch at verizon.net> 
wrote:
> ...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...
>
> Bye
>
> ----- 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-2.3.1.0...
>> 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
> there.
>
>>
>> I then went to the link you provided:
>> http://hackage.haskell.org/package/HDBC-sqlite3
>> I extracted the tar file, HDBC-sqlite3-2.3.1.0.tar, 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
> doesn't.
>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>



-- 
=====================
Patrick LeBoutillier
Rosemère, Québec, Canada 





More information about the Beginners mailing list