Cabal sqlite3 installation problems

Hok Shun Poon fushunpoon at googlemail.com
Sun May 23 19:51:20 EDT 2010


Hello,

This is a question about how cabal-install finds 'installed foreign
libraries' when trying to satisfy dependencies for packages like
hdbc-sqlite3 on Windows.
Sadly, the current setup means that I must use Windows 7 to develop code.

I've already followed steps on
http://wiki.github.com/jgoerzen/hdbc/frequentlyaskedquestions to place the
.dll and the .h files in the correct places; it's just that cabal never
seems to find it, despite being given --extra-lib-dirs= and
--extra-include-dirs= directives.

The message is as follows:

> cabal install hdbc-sqlite3 --extra-lib-dirs=D:\dev\libs\database\sqlite
Resolving dependencies...
Configuring HDBC-sqlite3-2.3.0.0...
cabal: Missing dependency on a foreign library:
* Missing C library: sqlite3
This problem can usually be solved by installing the system package
that provides this library (you may need the "-dev" version). If the library
is already installed but in a non-standard location then you can use
the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it
is.
cabal: Error: some packages failed to install:
HDBC-sqlite3-2.3.0.0 failed during the configure step. The exception was:
ExitFailure 1

The strangest thing is, I've successfully made cabal build this package
before (with a different version of Haskell Platform)... what's going on?

I'm using cabal-install version 0.8.2 and Cabal library version 1.8.0.2.

Hok
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/libraries/attachments/20100523/ea5d5569/attachment.html


More information about the Libraries mailing list