bsddb environment lock failure -- resolved

Barry barrynyc at gmail.com
Sun Jul 10 20:10:06 CEST 2005


Upgrading db4 to db4-4.1.25-14.rpm seems to have take care of this. 



On 7/10/05, Barry <barrynyc at gmail.com> wrote:
> I have python2.4.1 installed on two machines:
> -- one is Fedora core 1, where the bsddb module works fine
> -- one is Redhat ES 3.0, and I installed mysql 4.1 (and
> mysql-python2.1) after putting the newer python on the machine.
> 
> python2.2, which came with Redhat ES, works fine, so I suppose I
> messed up the build.
> 
> I much appreciate any insight in how to fix this.
> 
> Barry
> 
> Here are some details:
> 
> When trying to open (or create) a db, I get this error
> 
>   File "/opt/Python-2.4.1/Lib/bsddb/__init__.py", line 285, in hashopen
>     e = _openDBEnv()
>   File "/opt/Python-2.4.1/Lib/bsddb/__init__.py", line 339, in _openDBEnv
>     e.open('.', db.DB_PRIVATE | db.DB_CREATE | db.DB_THREAD | db.DB_INIT_LOCK |
> db.DB_INIT_MPOOL)
> bsddb._db.DBError: (38, 'Function not implemented -- process-private: unable to
> initialize environment lock: Function not implemented')
> 
> I tried rebuilding python2.4.1, but 'make test' shows bsddb errors.
> 
>  First, there is:
> 
> test_bsddb3 skipped -- Use of the `bsddb' resource not enabled
> 
> test_whichdb shows the environment lock error
> 
> At the end, it's anydbm, bsddb, shelve, and whichdb failed.
> 
> I don't which of the differences in setup are important here, but both
> python.2.4.1 are installed in /opt
> 
> both have libdb-4.1, although slightly different:
> 
> The Fedora machine has libdb from db4-4.1.25-14.rpm
> The Redhat, from db4-4.1.25-8.1 -- this one also has libdb_cxx-3.1.so
> - libdb_cxx-3.3.so
>



More information about the Python-list mailing list