Install berkeley-db and python binding In debian

Source: Internet
Author: User

Debian berkeley-db and python binding installation 1, download the source code www.2cto.com 1 shell> wget http://download.oracle.com/berkeley-db/db-5.3.21.tar.gz2shell> wget http://pypi.python.org/packages/source/ B /bsddb3/bsddb3-5.3.0.tar.gz#md5=d5aa4f293c4ea755e84383537f74be82 2, extract, enter the directory 3, install berkeley-db 1 shell> cd build_unix/2 shell> .. /dist/configure # Install python binding1shell> sudo python setup in/usr/local/BerkeleyDB.5.3 by default. py -- lflags = "/usr/local/BerkeleyDB.5.3/lib/libdb-5.3.so" install 5, simple use of www.2cto.com 1 import bsddb2 3 dB = bsddb. btopen ("text. db "," c ") # The hashopen data structure can also be used for different 4db. setdefault ("actberw", 1) 5 print db. get ("actberw ")

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.