[pylucene-dev] Re[2]: bsddb module

Andi Vajda vajda at osafoundation.org
Mon Dec 13 14:46:20 PST 2004


Are you sure that you're running the correct Berkeley DB library ?
Linux usually comes pre-installed with an older version.
Use 'ldd' to find out what your _bsddb extension is going to pull in.
Set LD_LIBRARY_PATH if the wrong things get pulled in, etc.., etc...

Andi..

On Tue, 14 Dec 2004, Yura Smolsky wrote:

> Hello, Andi.
>
> It does not affect. Same thing. Check attached file.
> I feel like I have missed something important about
> building/installing berkleyDB on Linux...
> Maybe I need to specify some of environments vars?...
>
> AV> I don't know, I've never used DB_PRIVATE, does it work without ?
> AV> Nor, have I ever used DB_HASH ?
>
> AV> Andi..
>
> AV> On Mon, 13 Dec 2004, Yura Smolsky wrote:
>
>>> Hello, Andi.
>>>
>>> Andi, have you ever seen this trouble on Linux boxes?..
>>>
>>> Traceback (most recent call last):
>>>  File "./IndexerEntry.py", line 46, in ?
>>>    db = DBHash()
>>>  File "./IndexerEntry.py", line 18, in __init__
>>>    e.open('index', db.DB_PRIVATE | db.DB_CREATE | db.DB_THREAD
>>> | db.DB_INIT_LOCK | db.DB_INIT_MPOOL)
>>> bsddb._db.DBInvalidArgError: (22, 'Invalid argument')
>>> Segmentation fault
>>>
>>> I suspect, I do something incorrectly when I initialize Env for DB.
>>> Google had not help me :(
>>>
>>> This script goes ok on windows, but fails on Linux Box with python
>>> 2.4, berkley db 4.2.52. All software on linux-box was built from
>>> sources.
>>>
>>> Thank you.
>>>
>>> Yura Smolsky,
>>>
>
>
>
>
> Yura Smolsky,
>


More information about the pylucene-dev mailing list