zoukankan      html  css  js  c++  java
  • Unix: How to Install BerkeleyDB From Source

    http://www.masaokitamura.com/2010/07/23/unix-how-to-install-berkeleydb-from-source/

    This documentation is buried in the source as HTML, so I’m posting it here for convenience.

    Building for UNIX/POSIX

    The Berkeley DB distribution builds up to four separate libraries: the base C API Berkeley DB library and the optional C++, Java, and Tcl API libraries. For portability reasons, each library is standalone and contains the full Berkeley DB support necessary to build applications; that is, the C++ API Berkeley DB library does not require any other Berkeley DB libraries to build and run C++ applications.

    Building for Linux, Mac OS X and the QNX Neutrino release is the same as building for a conventional UNIX platform.

    The Berkeley DB distribution uses the Free Software Foundation’s autoconf and libtool tools to build on UNIX platforms. In general, the standard configuration and installation options for these tools apply to the Berkeley DB distribution.

    To perform a standard UNIX build of Berkeley DB, change to the build_unix directory and then enter the following two commands:

    ../dist/configure
    make

    This will build the Berkeley DB library.

    To install the Berkeley DB library, enter the following command:

    make install

    To rebuild Berkeley DB, enter:

    make clean
    make

    If you change your mind about how Berkeley DB is to be configured, you must start from scratch by entering the following command:

    make realclean
    ../dist/configure
    make

    To uninstall Berkeley DB, enter:

    make uninstall

    To build multiple UNIX versions of Berkeley DB in the same source tree, create a new directory at the same level as the build_unix directory, and then configure and build in that directory as described previously.

    Source: db-5.0.26.tar.gz

  • 相关阅读:
    mpstat 查看多核CPU负载状态
    redis pipeset发布订阅
    sqlalchemyorm学生签到 成绩记录查询系统
    ORM数据库命令操作包装实例对象学习
    Python Mysql数据库操作
    redis hash操作 list列表操作
    pymysqlsqlalchemyorm
    ss命令用来显示处于活动状态的套接字信息。
    8月20日学习日志
    8月22日学习日志
  • 原文地址:https://www.cnblogs.com/AloneSword/p/3183883.html
Copyright © 2011-2022 走看看