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
这并不要求使用自制软件。注意“来源”