gpt4 book ai didi

c - 如何在 OSX 上从源代码安装 libDb

转载 作者:行者123 更新时间:2023-11-30 18:11:19 26 4
gpt4 key购买 nike

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

关于c - 如何在 OSX 上从源代码安装 libDb,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48527832/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com