Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installation HDBC-SQlite3 Haskell

Tags:

sqlite

haskell

Im facing the problem during installation :

>>setup configure

Configuring HDBC-sqlite3-2.3.0.0...
setup: 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.

what should I do ?

thanks for any help

like image 692
gruber Avatar asked Dec 01 '22 05:12

gruber


2 Answers

OK,

I downloaded sqlite3.dll and sqlite3.h from source zip.

then I inserted sqlite3.dll in system32 dir and in setup configure i used

--extra-lib-dirs=... --extra-include-dirs=... parameters with correct paths to header and dll.

like image 174
gruber Avatar answered Dec 04 '22 03:12

gruber


You need to install the C library implementation and headers of SQLite.

On Ubuntu and other Debian-based Linux distros, it's simply

sudo apt-get install sqlite3 libsqlite3-dev

Other Linux distros will have similarly named packages.

On Windows, you'll have to do some more work.

On OS X, I have no idea.

like image 35
Thomas Avatar answered Dec 04 '22 02:12

Thomas