Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ms-access/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C 如何在OSX上从源代码安装libDb_C_Automake - Fatal编程技术网

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

C 如何在OSX上从源代码安装libDb,c,automake,C,Automake,我克隆了,然后 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 T

我克隆了,然后

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

这并不要求使用自制软件。注意“来源”