wget http://download.oracle.com/berkeley-db/db-6.2.32.tar.gz
-
解压到适当的文件夹
cd ./db-6.2.32/build_unix
../dist/configure --prefix =/usr/local/Cellar/berkeley-db/6.2.32
sudo make install
- 记住上面的
/usr/local/Cellar/berkeley-db/6.2.32
- 去bsddb3下载 python bsddb3包
-
wget https://files.pythonhosted.org/packages/f0/24/92034482656945fc6ceb10551222b43a0ff8d0c87e15839120487820067e/bsddb3-6.2.9.tar.gz
- 解压后,并
python setup.py install --berkeley-db=/usr/local/Cellar/berkeley-db/6.2.32
这后面的路径就是 刚刚上面相同的
然后就安装成功了