|
Vacation Auto responder DB_File.pm Error
Am trying to install vacation on my red hat 9 system. when i intall the RPM its giving me the following when i send a messege:
Command died with status 2:
"/usr/local/bin/vacation -a alias username". Command output: Can't
locate DB_File.pm in @INC (@INC contains:
/usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8
/usr/local/lib/perl5/site_perl/5.8.8/i686-linux
/usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .)
at
/usr/local/bin/vacation line 474. BEGIN failed--compilation aborted at
/usr/local/bin/vacation line 474.
I figured it needed the DB_File.pm so i tried to install the DB_File-1.814, but also getting an error:
cc -c -I/usr/local/BerkeleyDB/include -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.814\" -DXS_VERSION=\"1.814\" -fpic "-I/usr/local/lib/perl5/5.8.8/i686-linux/CORE" -D_NOT_CORE -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t version.c
version.c:30:16: db.h: No such file or directory
make: *** [version.o] Error 1
The only things i have done to the system lately is upgade Perlr to Version 5.8.8 and Spamassassin to version 3.1.7. I also upgraded Berkeley DB to ver 4.5.20.
I tried to download Vacation-1.2.6.2 from SourceForge.net and when i run make i get:
gcc -m486 -Wall -Xlinker -warn-common -D_PATH_VACATION=\"/usr/bin/vacation\" -o vacation vacation.c -lgdbm
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
vacation.c:74:18: gdbm.h: No such file or directory
In file included from vacation.c:85:
vacation.h:23: error: parse error before "db"
vacation.h:23: warning: type defaults to `int' in declaration of `db'
vacation.h:23: warning: data definition has no type or storage class
vacation.c: In function `main':
vacation.c:180: warning: implicit declaration of function `gdbm_open'
vacation.c:180: error: `GDBM_NEWDB' undeclared (first use in this function)
vacation.c:180: error: (Each undeclared identifier is reported only once
vacation.c:180: error: for each function it appears in.)
vacation.c:180: error: `GDBM_WRITER' undeclared (first use in this function)
vacation.c:196: warning: implicit declaration of function `gdbm_close'
vacation.c: In function `recent':
vacation.c:459: error: `datum' undeclared (first use in this function)
vacation.c:459: error: parse error before "key"
vacation.c:463: error: `key' undeclared (first use in this function)
vacation.c:465: error: `data' undeclared (first use in this function)
vacation.c:465: warning: implicit declaration of function `gdbm_fetch'
vacation.c: In function `setinterval':
vacation.c:489: error: `datum' undeclared (first use in this function)
vacation.c:489: error: parse error before "key"
vacation.c:491: error: `key' undeclared (first use in this function)
vacation.c:493: error: `data' undeclared (first use in this function)
vacation.c:495: warning: implicit declaration of function `gdbm_store'
vacation.c:495: error: `GDBM_REPLACE' undeclared (first use in this function)
vacation.c: In function `setreply':
vacation.c:504: error: `datum' undeclared (first use in this function)
vacation.c:504: error: parse error before "key"
vacation.c:507: error: `key' undeclared (first use in this function)
vacation.c:510: error: `data' undeclared (first use in this function)
vacation.c:512: error: `GDBM_REPLACE' undeclared (first use in this function)
make: *** [vacation] Error 1
Help please.
|