Using the Berkeley DB
Jan
malepatus at googlemail.com
Wed Sep 30 15:48:51 UTC 2009
Hello Ubuntuusers,
this is the first time I participate using a mailing list. Hopefully I
didn't make any mistakes writing this Mail.
I'm a student in Business Informatics and would like to start a project,
using the berkeley db.
I installed the berkeley DB using this Tutorial:
http://worstcase.cc/index.php/2009/06/oracle-berkeley-db-unter-ubuntu/
I'm sorry, but I only found a german page.
When I compile the source-code from the website above, the compiler
shows up several errors:
===
g++ main.cpp -o dbApp -ldb_cxx-4.7 -I /usr/local/BerkeleyDB.4.7/include/
-L /usr/local/BerkeleyDB.4.7/lib/
main.cpp:2:20: error: db_cxx.h: No such file or directory
main.cpp: In function ‘int main()’:
main.cpp:8: error: ‘Db’ was not declared in this scope
main.cpp:8: error: expected `;' before ‘db’
main.cpp:9: error: ‘db’ was not declared in this scope
main.cpp:12: error: ‘DB_BTREE’ was not declared in this scope
main.cpp:13: error: ‘DB_CREATE’ was not declared in this scope
main.cpp:21: error: ‘Dbt’ was not declared in this scope
main.cpp:21: error: expected `;' before ‘key’
main.cpp:22: error: expected `;' before ‘data’
main.cpp:25: error: ‘key’ was not declared in this scope
main.cpp:25: error: ‘data’ was not declared in this scope
main.cpp:25: error: ‘DB_NOOVERWRITE’ was not declared in this scope
main.cpp:26: error: ‘DB_KEYEXIST’ was not declared in this scope
main.cpp:28: error: ‘cout’ is not a member of ‘std’
main.cpp:28: error: ‘endl’ is not a member of ‘std’
main.cpp:34: error: expected `;' before ‘searchKey’
main.cpp:39: error: ‘searchKey’ was not declared in this scope
main.cpp:45: error: ‘searchData’ was not declared in this scope
main.cpp:47: error: ‘DB_DBT_USERMEM’ was not declared in this scope
main.cpp:52: error: ‘DB_NOTFOUND’ was not declared in this scope
main.cpp:54: error: ‘cout’ is not a member of ‘std’
main.cpp:54: error: ‘endl’ is not a member of ‘std’
main.cpp:58: error: ‘cout’ is not a member of ‘std’
main.cpp:58: error: ‘endl’ is not a member of ‘std’
===
My /etc/ld.so.conf looks like that:
===
include /etc/ld.so.conf.d/*.conf
include /usr/local/BerkeleyDB.4.8
===
Has anyone an Idea what goes wrong here?
Thank you very much!
Greetings from Germany
Jan
More information about the ubuntu-users
mailing list