I have been trying to install the BerkeleyDB CPAN module on my Windows 7 (x86_64) PC without any luck (BerkeleyDB::Hash is what I need). I have 64 bit ActivePerl and Oracle Berkeley DB 11gR2 5.3.15 installed. First I tried installing using the command :
cpan install BerkeleyDB
This came back with the error:
It looks like the installation of dmake and MinGW has failed. You wil
+l not be
able to run Makefile commands or compile C extension code. Please che
internet connection and your proxy settings!
So I installed Microsoft Windows SDK for Windows 7 and .NET Framework 4.
Then I installed cpanm
And when I tried running:
I got the error:
<code>Note (probably harmless): No library found for -llibdb
Note (probably harmless): No library found for bufferoverflowU.lib
So I edited the config.in file and changed the lib and include paths to:
INCLUDE = C:\PROGRA~2\Oracle\BERKEL~1.15\include
LIB = C:\PROGRA~2\Oracle\BERKEL~1.15\lib
Now when I ran perl makefile.pl, the warning about -llibdb went away.
When I tried running:
I got errors:
Creating library blib\arch\auto\BerkeleyDB\BerkeleyDB.lib and object b
BerkeleyDB.obj : error LNK2001: unresolved external symbol __heap_exis
BerkeleyDB.obj : error LNK2001: unresolved external symbol db_version
BerkeleyDB.obj : error LNK2001: unresolved external symbol db_strerror
BerkeleyDB.obj : error LNK2001: unresolved external symbol db_env_crea
BerkeleyDB.obj : error LNK2001: unresolved external symbol db_create
BerkeleyDB.obj : error LNK2001: unresolved external symbol db_sequence
blib\arch\auto\BerkeleyDB\BerkeleyDB.dll : fatal error LNK1120: 6 unre
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual S
\VC\Bin\amd64\link.EXE"' : return code '0x460'
I've nearly lost all hope of ever building this module successfully on my PC. Has anyone been lucky with this?
Are you posting in the right place? Check out Where do I post X? to know for sure.
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
Want more info? How to link or
or How to display code and escape characters
are good places to start.