安装HDBC-SQlite3 Haskell

gru*_*ber 4 sqlite haskell

我在安装过程中面临问题:

>>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.
Run Code Online (Sandbox Code Playgroud)

我该怎么办 ?

谢谢你的帮助

gru*_*ber 10

好,

我从源zip下载了sqlite3.dll和sqlite3.h.

然后我在system32目录中插入sqlite3.dll并在设置配置我使用

--extra-lib-dirs = ... --extra-include-dirs = ...具有正确的头和dll路径的参数.

  • 这非常容易.HDBC应该附带一些默认的sqlite3库,以便于安装. (2认同)

Tho*_*mas 9

您需要安装SQLite的C库实现和标头.

在Ubuntu和其他基于Debian的Linux发行版中,它很简单

sudo apt-get install sqlite3 libsqlite3-dev
Run Code Online (Sandbox Code Playgroud)

其他Linux发行版将具有类似命名的包.

在Windows上,您将不得不做更多的工作.

在OS X上,我不知道.