Install berkeley-db and pythonbinding in debian. download the source code www.2cto. com1shell & gt; wgethttp: // descridebian 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 ")
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