Reinstall the perl rpm

download it form your favorite mirror, see a mirror list at

http://www.centos.org/modules/tinycontent/index.php?id=13

or do (for example from the ANL mirror)

wget http://mirror.anl.gov/pub/centos/4.5/updates/x86_64/RPMS/perl-5.8.5-36.el4_5.2.x86_64.rpm

then
rpm -ivh --replacepkgs perl-5.8.5-36.el4_5.2.x86_64.rpm

(you might need a --force option too)

Tony


On Nov 29, 2007, at 4:26 PM, Ed Burgstaler wrote:

Hi Tony,

I'm using CentOS 4.5 but the results here are all greek to me ...

[root@localhost ~]# rpm -V perl
missing     /usr/bin/cpan
missing     /usr/bin/prove
missing     /usr/lib/perl5/5.8.5/CPAN.pm
missing     /usr/lib/perl5/5.8.5/CPAN/FirstTime.pm
missing     /usr/lib/perl5/5.8.5/CPAN/Nox.pm
missing     /usr/lib/perl5/5.8.5/File/Temp.pm
missing     /usr/lib/perl5/5.8.5/Net/Cmd.pm
missing     /usr/lib/perl5/5.8.5/Net/Config.pm
missing     /usr/lib/perl5/5.8.5/Net/Domain.pm
missing     /usr/lib/perl5/5.8.5/Net/FTP.pm
missing     /usr/lib/perl5/5.8.5/Net/FTP/A.pm
missing     /usr/lib/perl5/5.8.5/Net/FTP/E.pm
missing     /usr/lib/perl5/5.8.5/Net/FTP/I.pm
missing     /usr/lib/perl5/5.8.5/Net/FTP/L.pm
missing     /usr/lib/perl5/5.8.5/Net/FTP/dataconn.pm
missing     /usr/lib/perl5/5.8.5/Net/NNTP.pm
missing     /usr/lib/perl5/5.8.5/Net/Netrc.pm
missing     /usr/lib/perl5/5.8.5/Net/POP3.pm
missing     /usr/lib/perl5/5.8.5/Net/SMTP.pm
missing     /usr/lib/perl5/5.8.5/Net/Time.pm
missing     /usr/lib/perl5/5.8.5/Net/libnetFAQ.pod
missing     /usr/lib/perl5/5.8.5/Test/Builder.pm
missing     /usr/lib/perl5/5.8.5/Test/Harness.pm
missing     /usr/lib/perl5/5.8.5/Test/Harness/Assert.pm
missing     /usr/lib/perl5/5.8.5/Test/Harness/Iterator.pm
missing     /usr/lib/perl5/5.8.5/Test/Harness/Straps.pm
missing     /usr/lib/perl5/5.8.5/Test/More.pm
missing     /usr/lib/perl5/5.8.5/Test/Simple.pm
missing     /usr/lib/perl5/5.8.5/Test/Tutorial.pod
missing     /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/Cwd.pm
missing     /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/auto/Cwd/Cwd.so
missing
/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/auto/List/Util/Util
.so 
[root@localhost ~]#
[root@localhost ~]# perl -V
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
  Platform:
    osname=linux, osvers=2.6.9-42.0.3.elsmp,
archname=x86_64-linux-thread-multi
    uname='linux builder6.centos.org 2.6.9-42.0.3.elsmp #1 smp fri oct 6
06:28:2
6 cdt 2006 x86_64 x86_64 x86_64 gnulinux '
    config_args='-des -Doptimize=-O2 -g -pipe -m64 -Dversion=5.8.5
-Dmyhostname=
localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc.
-Dinstallpre
fix=/usr -Dprefix=/usr -Dlibpth=/usr/local/lib64 /lib64 /usr/lib64
-Dprivlib=/us
r/lib/perl5/5.8.5 -Dsitelib=/usr/lib/perl5/site_perl/5.8.5
-Dvendorlib=/usr/lib/
perl5/vendor_perl/5.8.5
-Darchlib=/usr/lib64/perl5/5.8.5/x86_64-linux-thread-mul
ti -Dsitearch=/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
-Dvendo
rarch=/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
-Darchname=x8
6_64-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Duseshrplib -Dusethreads
-Duse
ithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm
-Di_gdbm -D
i_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl
-Ubincompat500
5 -Uversiononly -Dpager=/usr/bin/less -isr -Dinc_version_list=5.8.4 5.8.3
5.8.2
5.8.1 5.8.0'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define
usemultiplicity=de
fine
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=define uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING
-fno-strict-alias
ing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr
/include/gdbm',
    optimize='-O2 -g -pipe -m64',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing
-pipe
-I/usr/local/include -I/usr/include/gdbm'
    ccversion='', gccversion='3.4.6 20060404 (Red Hat 3.4.6-8)',
gccosandvers=''

    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize
=8
    alignbytes=8, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =''
    libpth=/usr/local/lib64 /lib64 /usr/lib64
    libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.3.4'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-rpath,
/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE'
    cccdlflags='-fPIC', lddlflags='-shared'


Characteristics of this binary (from libperl):
  Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_64_BIT_INT
USE_6
4_BIT_ALL USE_LARGE_FILES PERL_IMPLICIT_CONTEXT
  Built under linux
  Compiled at Nov  7 2007 16:13:25
  @INC:
    /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi
    /usr/lib/perl5/5.8.5
    /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
    /usr/lib64/perl5/site_perl/5.8.4/x86_64-linux-thread-multi
    /usr/lib64/perl5/site_perl/5.8.3/x86_64-linux-thread-multi
    /usr/lib64/perl5/site_perl/5.8.2/x86_64-linux-thread-multi
    /usr/lib64/perl5/site_perl/5.8.1/x86_64-linux-thread-multi
    /usr/lib64/perl5/site_perl/5.8.0/x86_64-linux-thread-multi
    /usr/lib/perl5/site_perl/5.8.5
    /usr/lib/perl5/site_perl/5.8.4
    /usr/lib/perl5/site_perl/5.8.3
   /usr/lib/perl5/site_perl/5.8.2
   /usr/lib/perl5/site_perl/5.8.1
   /usr/lib/perl5/site_perl/5.8.0
   /usr/lib/perl5/site_perl
   /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
   /usr/lib64/perl5/vendor_perl/5.8.4/x86_64-linux-thread-multi
   /usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi
   /usr/lib64/perl5/vendor_perl/5.8.2/x86_64-linux-thread-multi
   /usr/lib64/perl5/vendor_perl/5.8.1/x86_64-linux-thread-multi
   /usr/lib64/perl5/vendor_perl/5.8.0/x86_64-linux-thread-multi
   /usr/lib/perl5/vendor_perl/5.8.5
   /usr/lib/perl5/vendor_perl/5.8.4
   /usr/lib/perl5/vendor_perl/5.8.3
   /usr/lib/perl5/vendor_perl/5.8.2
   /usr/lib/perl5/vendor_perl/5.8.1
   /usr/lib/perl5/vendor_perl/5.8.0
   /usr/lib/perl5/vendor_perl
   .
root@localhost ~]#

Looks to be a lot missing ....

-----Original Message-----
From: backuppc-users-bounces@lists.sourceforge.net
[mailto:backuppc-users-bounces@lists.sourceforge.net] On Behalf Of Tony
Schreiner
Sent: November 29, 2007 3:03 PM
To: backuppc-users@lists.sourceforge.net
Subject: Re: [BackupPC-users] Broken BackupPC due to missing Cwd.pm

Ed

perl-5.8.5-36.el4_5.2 is the current version for RHEL 4 and related distros.
Cwd.pm should be included in it.
Type

rpm -V perl

to verify the installed package, it will say if anything is missing

Also, what does

perl -V

tell you about the @INC path ?

Tony Schreiner
Boston College

On Nov 29, 2007, at 3:42 PM, Ed Burgstaler wrote:

Thanks Les

My version is  perl-5.8.5-36.el4_5.2 and it was installed about the 
time I started having the Compress:Zlib error problem so would it be 
possible to uninstall this perl version and have it go back to the 
previous version?


-----Original Message-----
From: Les Mikesell [mailto:lesmikesell@gmail.com]
Sent: November 29, 2007 1:29 PM
To: Ed Burgstaler
Cc: backuppc-users@lists.sourceforge.net
Subject: Re: [BackupPC-users] Broken BackupPC due to missing Cwd.pm

Ed Burgstaler wrote:
I think I now what the problem is but I don't know how to fix it.
I was having some issues with a BackupPC error with Compress::Zlib 
and I was trying a lot of things to get that working to no avail so I 
thought I would remove unnecessary perl modules and one of those I 
believe was Cwd so hence my new error when trying to start BackupPC.

Starting BackupPC: Can't locate Cwd.pm in @INC (@INC contains:

Cwd.pm should be part of the perl base install - at least it is in
Centos5:

# rpm -q --whatprovides
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/Cwd.pm

perl-5.8.8-10

-- 
   Les Mikesell
    lesmikesell@gmail.com


----------------------------------------------------------------------
---
SF.Net email is sponsored by: The Future of Linux Business White Paper 
from Novell.  From the desktop to the data center, Linux is going 
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper from
Novell.  From the desktop to the data center, Linux is going mainstream.
Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/