我克隆了this repo然后......
cd build_unix
../dist/configure
make
sudo make install
然后我转到项目我正在尝试编译并运行stack install
我得到以下内容......
Configuring BerkeleyDB-0.8.7...
Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2: Missing dependency on a foreign
library:
* Missing C library: db
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.
这是在OSX上
答案 0 :(得分:-1)
您可以使用homebrew:
,而不是从源代码编译brew install berkeley-db