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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 31 December 2003 12:25
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> 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
>
>
>

Reply via email to