Using the Berkeley DB

Jan malepatus at googlemail.com
Wed Sep 30 21:32:18 UTC 2009


Steve Flynn wrote:
> On Wed, Sep 30, 2009 at 6:02 PM, Jan <malepatus at googlemail.com> wrote:
>   
>> Steve Flynn wrote:
>>     
>>> On Wed, Sep 30, 2009 at 4:48 PM, Jan <malepatus at googlemail.com> wrote:
>>>
>>>       
>>>> ===
>>>> g++ main.cpp -o dbApp -ldb_cxx-4.7 -I /usr/local/BerkeleyDB.4.7/include/
>>>>
>>>>         
>>>       
>>>> main.cpp:2:20: error: db_cxx.h: No such file or directory
>>>>
>>>> Has anyone an Idea what goes wrong here?
>>>>
>>>>         
>>> Do you actually have the db_cxx.h file anywhere on your machine? I
>>> imagine it comes with the source for Berkeley, but not having it
>>> installed (or near a Linux machine) I can't say where it should come
>>> from.
>>>
>>>
>>>       
>> I've the db_cxx.h file on my machine. The file is located in the
>> directory "/usr/local/BerkeleyDB.4.8/include/"
>>     
>
> Typo? You say the file is in BerkeleyDB4.8 but your call to the
> compiler specifies BerkeleyDB4.7iInclude
>
> 4.7 vs 4.8
>
>   
This wasn't a typo, but a mistake from my side. Your answer brought me 
one step further. Now the program is compiled without an error.

But when I try to open the programm, using ./dbApp, following error occurs:

./dbApp: error while loading shared libraries: libdb_cxx-4.8.so: cannot 
open shared object file: No such file or directory


What does that mean?




More information about the ubuntu-users mailing list