Hello Monks,

My MacBookPro, me writing/running years of Perl stuff, died a terrible death, and $$$ to repair it are in short supply, so...

I am running Windows 10 on my better half's cute little Lenovo ThinkPad, and for Perl, ubuntu in Windows Subsystem for Linux. WSL is very cool, and so far so good. Moved a bunch of stuff over from my backups using Paragon HFS+, also very cool. However, getting BerkeleyDB installed is proving to be a bitch, just as it was in macOS. I've tried cpan, cpanm and HomeBrew to build BerkeleyDB.pm from BerkeleyDB-0.64.tar.gz but the build log consistently reports:

BerkeleyDB.xs:76:10: fatal error: db.h: No such file or directory 76 | #include <db.h>

Thinking it might be a ubuntu library issue, I've tried searching apt-cache for a db dev library, but nothing seems appropriate, unless I'm just missing something.

So, that tar ball, presumably from Oracle, is missing a critical header. I have searched Google high and low for a suitable header, and I suspect it is a header that pulls in other platform specific headers as needed, so getting the right one is critical. I use BerkeleyDB and tied hashes extensively, so I will lose much good work if I can't resolve this build issue.

Perhaps a polite note to the maintainer of that bundle would not be amiss, if I knew where to send it?

Thanks in advance, and any suggestions where and how to get that header and fix the build will be greatly appreciated.


In reply to Installing BerkeleyDB in WSL/ubuntu by perlboy_emeritus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.