dogecoin: Berkeley DB
這是一個高效的 嵌入式資料庫.
官網: https://www.oracle.com/database/berkeley-db/
下載網頁: https://www.oracle.com/database/technologies/related/berkeleydb-downloads.html
參考: dogecoin 更新
如果要裝 berkeley db 5.1 的話,
% tar xvfz db-5.1.29.tar.gz
% cd db-5.1.29
-- patches
% cd src
% cd dbinc
% patch -b atomic.h <dogecoin path>/depends/patches/bdb-5.1.29-clang-osx/atomic.h.patch
% cd ../mp
% patch -b mp_fget.c <dogecoin path>/depends/patches/bdb-5.1.29-clang-osx/mp_fget.c.patch
% patch -b mp_mvcc.c <dogecoin path>/depends/patches/bdb-5.1.29-clang-osx/mp_mvcc.c.patch
% patch -b mp_region.c <dogecoin path>/depends/patches/bdb-5.1.29-clang-osx/mp_region.c.patch
% cd ../mutex
% patch -b mut_method.c <dogecoin path>/depends/patches/bdb-5.1.29-clang-osx/mut_method.c.patch
% patch -b mut_tas.c <dogecoin path>/depends/patches/bdb-5.1.29-clang-osx/mut_tas.c.patch
-- build
% cd ../../build_unix
% ../dist/configure CXX=clang++ CXXFLAGS="-DTARGET_OS_IPHONE=0" --enable-cxx
% make
% sudo mkdir /usr/local/BerkeleyDB.5.1
% sudo chown $(whoami):admin /usr/local/BerkeleyDB.5.1
% sudo make install
-- 設定加到 profile
#dogecoin - bdb
留言
張貼留言