我克隆了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上
您可以使用自制软件,而不是从源代码编译:
brew install berkeley-db