Berkeley DB

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
 
第1行: 第1行:
 
==安装 Berkeley DB 4.4.20==  
 
==安装 Berkeley DB 4.4.20==  
 
 
  
 
===Windows环境下安装===
 
===Windows环境下安装===
 
会自动加上环境变量并生成 dbvars.bat文件
 
会自动加上环境变量并生成 dbvars.bat文件
 
 
  
 
CLASSPATH:
 
CLASSPATH:
第13行: 第9行:
  
 
C:\DB-4.4.20\jar\db.jar;C:\DB-4.4.20\jar\dbexamples.jar;%CLASSPATH%
 
C:\DB-4.4.20\jar\db.jar;C:\DB-4.4.20\jar\dbexamples.jar;%CLASSPATH%
 
 
  
 
PATH:
 
PATH:
  
 
C:\DB-4.4.20\bin;C:\DB-4.4.20\bin\debug;%PATH%
 
C:\DB-4.4.20\bin;C:\DB-4.4.20\bin\debug;%PATH%
 
 
  
 
===Linux环境下安装===
 
===Linux环境下安装===
第34行: 第26行:
  
 
# make install
 
# make install
 
 
  
 
install to /usr/local/BerkeleyDB.4.4
 
install to /usr/local/BerkeleyDB.4.4
 
 
  
 
OK :)
 
OK :)
 
 
  
 
# make install  // install infomation
 
# make install  // install infomation
 
 
  
 
Installing DB include files: /usr/local/BerkeleyDB.4.4/include ...
 
Installing DB include files: /usr/local/BerkeleyDB.4.4/include ...
第70行: 第54行:
  
 
PATH="$PATH:/sbin" ldconfig -n /usr/local/BerkeleyDB.4.4/lib
 
PATH="$PATH:/sbin" ldconfig -n /usr/local/BerkeleyDB.4.4/lib
 
----------------------------------------------------------------------
 
  
 
Libraries have been installed in:
 
Libraries have been installed in:
  
  /usr/local/BerkeleyDB.4.4/lib
+
/usr/local/BerkeleyDB.4.4/lib
 
+
 
+
  
 
If you ever happen to want to link against installed libraries
 
If you ever happen to want to link against installed libraries
第96行: 第76行:
  
 
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
 
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
 
 
  
 
See any operating system documentation about shared libraries for
 
See any operating system documentation about shared libraries for
  
 
more information, such as the ld(1) and ld.so(8) manual pages.
 
more information, such as the ld(1) and ld.so(8) manual pages.
 
----------------------------------------------------------------------
 
  
 
Installing DB utilities: /usr/local/BerkeleyDB.4.4/bin ...
 
Installing DB utilities: /usr/local/BerkeleyDB.4.4/bin ...

2006年7月14日 (五) 15:01的版本

安装 Berkeley DB 4.4.20

Windows环境下安装

会自动加上环境变量并生成 dbvars.bat文件

CLASSPATH:

C:\DB-4.4.20\jar\debug\db.jar;C:\DB-4.4.20\jar\debug\dbexamples.jar;

C:\DB-4.4.20\jar\db.jar;C:\DB-4.4.20\jar\dbexamples.jar;%CLASSPATH%

PATH:

C:\DB-4.4.20\bin;C:\DB-4.4.20\bin\debug;%PATH%

Linux环境下安装

install on debian & redhat

http://www.sleepycat.com/docs/ref/build_unix/intro.html

cd build_unix

../dist/configure

$ make

  1. make install

install to /usr/local/BerkeleyDB.4.4

OK :)

  1. make install // install infomation

Installing DB include files: /usr/local/BerkeleyDB.4.4/include ...

Installing DB library: /usr/local/BerkeleyDB.4.4/lib ...

cp -p .libs/libdb-4.4.so /usr/local/BerkeleyDB.4.4/lib/libdb-4.4.so

cp -p .libs/libdb-4.4.lai /usr/local/BerkeleyDB.4.4/lib/libdb-4.4.la

cp -p .libs/libdb-4.4.a /usr/local/BerkeleyDB.4.4/lib/libdb-4.4.a

ranlib /usr/local/BerkeleyDB.4.4/lib/libdb-4.4.a

chmod 644 /usr/local/BerkeleyDB.4.4/lib/libdb-4.4.a

cp -p libdb.a /usr/local/BerkeleyDB.4.4/lib/libdb.a

ranlib /usr/local/BerkeleyDB.4.4/lib/libdb.a

chmod 644 /usr/local/BerkeleyDB.4.4/lib/libdb.a

PATH="$PATH:/sbin" ldconfig -n /usr/local/BerkeleyDB.4.4/lib

Libraries have been installed in:

/usr/local/BerkeleyDB.4.4/lib

If you ever happen to want to link against installed libraries

in a given directory, LIBDIR, you must either use libtool, and

specify the full pathname of the library, or use the `-LLIBDIR'

flag during linking and do at least one of the following:

  - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
    during execution
  - add LIBDIR to the `LD_RUN_PATH' environment variable
    during linking
  - use the `-Wl,--rpath -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for

more information, such as the ld(1) and ld.so(8) manual pages.

Installing DB utilities: /usr/local/BerkeleyDB.4.4/bin ...

cp -p .libs/db_archive /usr/local/BerkeleyDB.4.4/bin/db_archive

cp -p .libs/db_checkpoint /usr/local/BerkeleyDB.4.4/bin/db_checkpoint

cp -p .libs/db_deadlock /usr/local/BerkeleyDB.4.4/bin/db_deadlock

cp -p .libs/db_dump /usr/local/BerkeleyDB.4.4/bin/db_dump

cp -p .libs/db_hotbackup /usr/local/BerkeleyDB.4.4/bin/db_hotbackup

cp -p .libs/db_load /usr/local/BerkeleyDB.4.4/bin/db_load

cp -p .libs/db_printlog /usr/local/BerkeleyDB.4.4/bin/db_printlog

cp -p .libs/db_recover /usr/local/BerkeleyDB.4.4/bin/db_recover

cp -p .libs/db_stat /usr/local/BerkeleyDB.4.4/bin/db_stat

cp -p .libs/db_upgrade /usr/local/BerkeleyDB.4.4/bin/db_upgrade

cp -p .libs/db_verify /usr/local/BerkeleyDB.4.4/bin/db_verify

Installing documentation: /usr/local/BerkeleyDB.4.4/docs ...

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱