[Haskell-cafe] Error installing pkg 'HDBC-sqlite3'

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Fri Feb 20 22:32:38 EST 2009

On Fri, 2009-02-20 at 14:16 -0500, David wrote:
> I've encountered another problem while trying to install
> 'HDBC-sqlite3'. I did the install "manually", instead of using Cabal,
> and during the build phase, received the following error message:
> D:\Apps\ghc\ghc-6.10.1\HDBC-sqlite3->runghc Setup build
> Preprocessing library HDBC-sqlite3-
> Database\HDBC\Sqlite3\Statement.hsc:41:21: sqlite3.h: No such file or directory

I'd just like to note that as of Cabal- you'll get rather more
helpful error messages in this situation:

cabal: Missing dependency on a foreign library:
* Missing header file: sqlite3.h
* 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.

Hopefully this would be sufficiently clear.


More information about the Haskell-Cafe mailing list