Click here to get back home

env Config option and LockDetect option not working with Berkeley DB RPC

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
env Config option and LockDetect option not working with Berkeley DB RPC gdem 06-16-2006
Posted by gdem on June 16, 2006, 10:04 am
Please log in for more thread options


I am currently using Berkeley DB 4.4.20 with Berkeley DB perl module
0.28. I am running the client/server version of Berkeley DB. Here is
what my environment call looks like:

my $dbEnvHome = "geoTests";
my $server = "test.my.server.com";
# ErrFile used for debug purposes for now
my $errFile = *STDERR;
my $verbose = 1;
my $dbDataDir = "/tmp/geoTests/databases";
my $dbLogDir = "/tmp/geoTests/logs";
my $dbTmpDir = "/tmp/geoTests/tmp";
my $flags = DB_CREATE | DB_INIT_LOCK | DB_INIT_LOG | DB_INIT_MPOOL |
DB_INIT_TXN | DB_RECOVER;
my $lockDetect = DB_LOCK_DEFAULT;
my $env = new BerkeleyDB::Env(
-Home => $dbEnvHome,
-Server => $server,
# -Config => {DB_DATA_DIR => $dbDataDir,
DB_LOG_DIR => $dbLogDir, DB_TMP_DIR => $dbTmpDir},
-ErrFile => $errFile,
-Flags => $flags,
# -LockDetect => DB_LOCK_RANDOM,
-Verbose => $verbose,
);

When I attempt to uncomment the Config line, Env does not fail but I
get the following message:
Interface not supported by Berkeley DB RPC client environments

If I uncomment the LockDetect line I get an undef returned by Env.

Are these two options not supported in my scenario or am I doing
something wrong?

Thanks in advance.

George D.


Similar ThreadsPosted
How do I set the "+DAportable" option?? September 14, 2004, 9:57 am
ActivePerl and -P option June 6, 2005, 11:25 am
My option when a module is not available for my production OS. March 28, 2005, 2:53 pm
Alternate option to win32::ODBC July 19, 2007, 2:44 pm
Alternate option to win32::ODBC July 19, 2007, 3:17 pm
DBD:mysql doesn't read mysql option file /etc/my.cnf file January 27, 2005, 11:19 pm
[ANNOUNCE] Config::Model - Framework for semantic validation of config data March 20, 2006, 10:07 am
Getting started with Berkeley DB XML November 30, 2006, 11:10 pm
DBD::DBM and Berkeley Problem October 3, 2007, 2:23 am
make test failing on Berkeley DB 4.5/perl 5.8 (and 5.6) on BSD6/AMD64 November 29, 2006, 4:44 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap