On Sun May 20 14:30:27 2018, PMQS wrote:
Show quoted text> On Sat May 19 13:36:40 2018, JKEENAN wrote:
> > cpanm build.log (gzipped) attached.
> >
> > Thank you very much.
> > Jim Keenan
>
> This error from your log file tells me you don't meet the
> prerequisites for the module
>
> #error db.h is from Berkeley DB 1.x - need at least Berkeley DB 2.6.4
>
> README says this
>
> * Berkeley DB Version 2.6.4 or greater
Paul, thanks for your rapid response.
This is truly puzzling. This VM is managed by vagrant, so when I initially enter the VM I do as as the 'vagrant' user, and it is that user who has 'sudo' permissions to run both 'pkg' and 'cpan' and install "system" libraries, i.e., libraries under /usr/local/.
When, as the 'vagrant' user, I try to install BerkeleyDB through *either* pk5 or cpan, I'm told that it is already installed.
#####
$ sudo pkg install p5-BerkeleyDB
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent version of packages are already installed
$ sudo cpan BerkeleyDB
CPAN: Storable loaded ok (v2.62)
Reading '/root/.cpan/Metadata'
Database was generated on Sun, 20 May 2018 16:17:02 GMT
CPAN: Module::CoreList loaded ok (v5.20180414_26)
BerkeleyDB is up to date (0.55).
#####
And 'man BerkeleyDB' returns this POD (trimmed for space):
#####
BerkeleyDB(3) User Contributed Perl Documentation BerkeleyDB(3)
NAME
BerkeleyDB - Perl extension for Berkeley DB version 2, 3, 4 or 5
SYNOPSIS
use BerkeleyDB;
#####
And, with a little digging, I find:
#####
$ find /usr/local/lib/ -name '*libdb-5*' | xargs ls -l
-rw-r--r-- 1 root wheel 2637970 May 10 01:12 /usr/local/lib/db5/libdb-5.3.a
-rwxr-xr-x 1 root wheel 1648544 May 10 01:12 /usr/local/lib/db5/libdb-5.3.so.0.0.0
#####
But then, suppose I login to user 'jkeenan' and, underneath my homedir, install perl-5.27.11, install cpanm against that perl, and then use .cpanm to install *thousands* of modules -- mostly problem-free.
Suppose that I then try to install BerkeleyDB against *that* perl using *that* cpanm -- *that's* where I'm getting these build failures. But in all cases I'm using your BerkeleyDB-0.55 as the underlying code!
I certainly am puzzled.
Thank you very much.
Jim Keenan