RE: Error installing DB_File.pm

From: Paul Marquess (Paul.Marquess_at_btinternet.com)
Date: 12/31/03


To: <SDeenadayalan@inautix.com>
Date: Wed, 31 Dec 2003 13:23:33 -0000

This is from the DB_File README file

If you get an error like this:

  cc -c -I/usr/local/include -Dbool=char -DHAS_BOOL
  -O2 -DVERSION=\"1.64\" -DXS_VERSION=\"1.64\" -fpic
  -I/usr/local/lib/perl5/i586-linux/5.00404/CORE -DmDB_Prefix_t=size_t
  -DmDB_Hash_t=u_int32_t DB_File.c
  DB_File.xs:101: db.h: No such file or directory

or this:

  LD_RUN_PATH="/lib" cc -o blib/arch/auto/DB_File/DB_File.so -shared
  -L/usr/local/lib DB_File.o -L/usr/local/lib -ldb
  ld: cannot open -ldb: No such file or directory

This symptom can imply:

 1. You don't have Berkeley DB installed on your system at all.
    Solution: get & install Berkeley DB.

 2. You do have Berkeley DB installed, but it isn't in a standard place.
    Solution: Edit config.in and set the LIB and INCLUDE variables to point
              to the directories where libdb.a and db.h are installed.

> -----Original Message-----
> From: SDeenadayalan@inautix.com [mailto:SDeenadayalan@inautix.com]
> Sent: 31 December 2003 12:25
> To: pmqs@cpan.org
> Cc: db@sleepycat.com; mkur@poczta.gazeta.pl; dbi-users@perl.org
> Subject: Error installing DB_File.pm
>
>
>
> Hi,
> I am getting the following error while installing DB_File.pm (v 1.807) in
> my unix box.
>
> make
> cp DB_File.pm blib/lib/DB_File.pm
> AutoSplitting blib/lib/DB_File.pm (blib/lib/auto/DB_File)
> gcc -c -I/usr/local/BerkeleyDB/include -fno-strict-aliasing
> -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
> -DVERSION=\"1.807\" -DXS_VERSION=\"1.807\" -fPIC
> -I/usr/local/lib/perl5/5.6.1/sun4-solaris/CORE -D_NOT_CORE
> -DmDB_Prefix_t=size_t
> -DmDB_Hash_t=u_int32_t version.c
> version.c:30: db.h: No such file or directory
> *** Error code 1
> make: Fatal error: Command failed for target `version.o'
>
> Please let me know if anything else needs to be installed before
> installing
> DB_File.pm
>
> Regards,
> Sridharan
>
>
>



Relevant Pages

  • Re: Update to unstability
    ... This isn't a symptom we see much of in relation to Windows Update services. ... low-level driver problem. ... see these freezes on a virgin installation of XP, ... In the meantime, slightly clutching at straws, I recommend installing update ...
    (microsoft.public.windowsupdate)
  • Photoshop Elements 4.0 installation weirdness
    ... Disk Warrior and TechTool Pro. ... The symptom is, at what would be the end ... errors installing the software. ... Mac DP 1.8 GHz G5 running Mac OS 10.4.6. ...
    (comp.sys.mac.system)
  • Re: Problem with security update for Microsoft XML core services (KB93
    ... Iâ??m facing a strange problem with Security Update for Microsoft XML Core ... windows prompts me for installing this update even after installing ... program which would be unique to machines which had your symptom. ...
    (microsoft.public.windowsupdate)
  • Re: Problem with security update for Microsoft XML core services (
    ... "Robert Aldwinckle" wrote: ... windows prompts me for installing this update even after installing ... program which would be unique to machines which had your symptom. ...
    (microsoft.public.windowsupdate)
  • Re: fork problem
    ... It's more common on motorcycles than bicycles. ... some of his symptom, but the mechanic _admitted_ installing a fork with different rake. ...
    (rec.bicycles.tech)