如何在OSX上从源安装libDb

问题描述 投票:0回答:1

我克隆了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上

c automake
1个回答
-1
投票

您可以使用自制软件,而不是从源代码编译:

brew install berkeley-db
© www.soinside.com 2019 - 2024. All rights reserved.