dogecoin: Berkeley DB

 Berkeley DB - wiki


這是一個高效的 嵌入式資料庫.

官網: https://www.oracle.com/database/berkeley-db/

下載網頁: https://www.oracle.com/database/technologies/related/berkeleydb-downloads.html

參考: dogecoin 更新

如果要裝 berkeley db 5.1 的話, 

 % curl -o db-5.1.29.tar.gz http://download.oracle.com/berkeley-db/db-5.1.29.tar.gz

% 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 

export LDFLAGS=-L/usr/local/BerkeleyDB.5.1/lib 
export CPPFLAGS=-I/usr/local/BerkeleyDB.5.1/include

留言

熱門文章