MailScanner 4.78 install Perl module deletion issue

Jules Field MailScanner at ecs.soton.ac.uk
Tue Oct 6 23:49:00 IST 2009


There is a "--inturn" option to the install.sh script that will stop it 
deleting all the old RPMs at the start, but wait until it is just about 
to install the new one before it deletes the old one, which may make the 
installation more robust.

Exactly what version of Linux were you installing it on? '--inturn' is 
the default for recent Fedoras, but that's about it. You should be able 
to run "./install.sh --help" to get the usage.

Jules.

On 06/10/2009 23:02, donald.dawson at bakerbotts.com wrote:
>
> I upgraded MS from version 4.75.11 to 4.78.17-1 on 4 separate 
> servers.  Each time I ran the install (install.sh), I got errors - 
> example: 'Can't locate Getopt/Long.pm'.
>
> I had to restore the files in /usr/lib/perl5/5.8.8.  When I re-ran the 
> install.sh script, the install, it only removed perl-TimeDate, and 
> continued on without error.
>
> Just wanted to let you know, in case someone else has the same problem.
>
> I made a backup of the perl files before the install:
>
>       cd /usr/lib/perl5/5.8.8
>       tar cvf files.tar *
>
> Here's the top of the first install.log showing the problem of missing 
> Perl modules:
>
> -------------------------------------------------------------------------------------------------------------------------------------
>
> ...
> If this fails due to dependency checks, and you wish to ignore
> these problems, you can run
>     ./install.sh nodeps
>
> Setting Perl5 search path
>
> I think your system will build architecture-dependent modules for i386
>
> Deleting all the old versions of the Perl modules I built,
> I will re-install them in a minute.
>
> Removing perl-ExtUtils-MakeMaker
> Removing perl-Math-BigInt
> Removing perl-Math-BigRat
> Removing perl-bignum
> Removing perl-MIME-Base64
> Removing perl-TimeDate
> Removing perl-Test-Harness
> Removing perl-IO
> Removing perl-MailTools
> Removing perl-MIME-tools
> Removing perl-Getopt-Long
> Removing perl-Filesys-Df
> Removing perl-Net-CIDR
> Removing perl-Sys-Hostname-Long
> Removing perl-Sys-Syslog
> Removing perl-Net-DNS
> Removing perl-OLE-Storage_Lite
> Perl modules I built have been removed...
>
> Rebuilding all the Perl RPMs for your version of Perl
>
> Oh good, module File-Spec version 0.82 is already installed.
>
> Attempting to build and install perl-ExtUtils-MakeMaker-6.50-2
> Installing perl-ExtUtils-MakeMaker-6.50-2.src.rpm
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.21090
> + umask 022
> + cd /usr/src/redhat/BUILD
> + cd /usr/src/redhat/BUILD
> + rm -rf ExtUtils-MakeMaker-6.50
> + /bin/gzip -dc /usr/src/redhat/SOURCES/ExtUtils-MakeMaker-6.50.tar.gz
> + tar -xf -
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd ExtUtils-MakeMaker-6.50
> ++ /usr/bin/id -u
> + '[' 0 = 0 ']'
> + /bin/chown -Rhf root .
> ++ /usr/bin/id -u
> + '[' 0 = 0 ']'
> + /bin/chgrp -Rhf root .
> + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
> + exit 0
> Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.21090
> + umask 022
> + cd /usr/src/redhat/BUILD
> + cd ExtUtils-MakeMaker-6.50
> + CFLAGS='-O2 -g -m32 -march=i386 -mtune=generic 
> -fasynchronous-unwind-tables'
> + perl Makefile.PL INSTALLDIRS=vendor
> Checking if your kit is complete...
> Looks good
> Writing Makefile for ExtUtils::MakeMaker
> + mkdir -p blib/lib/ExtUtils
> + cp inc/ExtUtils/Command.pm inc/ExtUtils/Install.pm 
> inc/ExtUtils/Installed.pm inc/ExtUtils/MANIFEST.SKIP 
> inc/ExtUtils/Manifest.pm inc/ExtUtils/Packlist.pm b
>
> lib/lib/ExtUtils/
> + make
> Skip blib/lib/ExtUtils/Manifest.pm (unchanged)
> cp lib/ExtUtils/MM_VOS.pm blib/lib/ExtUtils/MM_VOS.pm
> cp lib/ExtUtils/Mksymlists.pm blib/lib/ExtUtils/Mksymlists.pm
> cp lib/ExtUtils/MM.pm blib/lib/ExtUtils/MM.pm
> cp lib/ExtUtils/MM_UWIN.pm blib/lib/ExtUtils/MM_UWIN.pm
> cp lib/ExtUtils/testlib.pm blib/lib/ExtUtils/testlib.pm
> cp lib/ExtUtils/MM_DOS.pm blib/lib/ExtUtils/MM_DOS.pm
> cp lib/ExtUtils/MakeMaker/vmsish.pm blib/lib/ExtUtils/MakeMaker/vmsish.pm
> cp lib/ExtUtils/MM_Cygwin.pm blib/lib/ExtUtils/MM_Cygwin.pm
> cp lib/ExtUtils/MM_Win95.pm blib/lib/ExtUtils/MM_Win95.pm
> cp lib/ExtUtils/Liblist.pm blib/lib/ExtUtils/Liblist.pm
> cp lib/ExtUtils/MM_Darwin.pm blib/lib/ExtUtils/MM_Darwin.pm
> cp lib/ExtUtils/MM_AIX.pm blib/lib/ExtUtils/MM_AIX.pm
> cp lib/ExtUtils/Liblist/Kid.pm blib/lib/ExtUtils/Liblist/Kid.pm
> cp lib/ExtUtils/Mkbootstrap.pm blib/lib/ExtUtils/Mkbootstrap.pm
> cp lib/ExtUtils/MakeMaker/FAQ.pod blib/lib/ExtUtils/MakeMaker/FAQ.pod
> Skip blib/lib/ExtUtils/MANIFEST.SKIP (unchanged)
> cp lib/ExtUtils/MakeMaker/bytes.pm blib/lib/ExtUtils/MakeMaker/bytes.pm
> cp lib/ExtUtils/MM_NW5.pm blib/lib/ExtUtils/MM_NW5.pm
> cp lib/ExtUtils/MM_OS2.pm blib/lib/ExtUtils/MM_OS2.pm
> cp lib/ExtUtils/MakeMaker.pm blib/lib/ExtUtils/MakeMaker.pm
> cp lib/ExtUtils/MM_Unix.pm blib/lib/ExtUtils/MM_Unix.pm
> Skip blib/lib/ExtUtils/Installed.pm (unchanged)
> cp lib/ExtUtils/MM_Win32.pm blib/lib/ExtUtils/MM_Win32.pm
> cp lib/ExtUtils/MY.pm blib/lib/ExtUtils/MY.pm
> Skip blib/lib/ExtUtils/Packlist.pm (unchanged)
> cp lib/ExtUtils/MM_MacOS.pm blib/lib/ExtUtils/MM_MacOS.pm
> cp lib/ExtUtils/MM_VMS.pm blib/lib/ExtUtils/MM_VMS.pm
> cp lib/ExtUtils/MM_BeOS.pm blib/lib/ExtUtils/MM_BeOS.pm
> cp lib/ExtUtils/MakeMaker/Tutorial.pod 
> blib/lib/ExtUtils/MakeMaker/Tutorial.pod
> cp lib/ExtUtils/MM_QNX.pm blib/lib/ExtUtils/MM_QNX.pm
> cp lib/ExtUtils/Command/MM.pm blib/lib/ExtUtils/Command/MM.pm
> Skip blib/lib/ExtUtils/Install.pm (unchanged)
> cp lib/ExtUtils/MakeMaker/Config.pm blib/lib/ExtUtils/MakeMaker/Config.pm
> cp lib/ExtUtils/MM_Any.pm blib/lib/ExtUtils/MM_Any.pm
> cp bin/instmodsh blib/script/instmodsh
> /usr/bin/perl "-Iblib/arch" "-Iblib/lib" "-MExtUtils::MY" -e 
> "MY->fixin(shift)" blib/script/instmodsh
> Can't locate Getopt/Long.pm in @INC (@INC contains: blib/arch blib/lib 
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi 
> /usr/lib/perl5/site_perl/5.8.8
>
> /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 
> /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl 
> /usr/lib/perl5/vendor_perl/5.8.8/i386-l
>
> inux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 
> /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 
> /usr/lib/perl5/vendor_perl/5.8.5 /usr/li
>
> b/perl5/vendor_perl 
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi 
> /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi 
> /usr/lib/perl5/site_perl/5.
>
> 8.6/i386-linux-thread-multi 
> /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi 
> /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/per
>
> l5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 
> /usr/lib/perl5/site_perl 
> /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi 
> /usr/lib/perl5/vendor_per
>
> l/5.8.7/i386-linux-thread-multi 
> /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi 
> /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/pe
>
> rl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 
> /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 
> /usr/lib/perl5/vendor_perl /usr/lib/
>
> perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at 
> blib/lib/ExtUtils/Command/MM.pm line 96.
> make: *** [manifypods] Error 2
> error: Bad exit status from /var/tmp/rpm-tmp.21090 (%build)
>
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.21090 (%build)
> ...
>
> -------------------------------------------------------------------------------------------------------------------------------------
>
> successful install:
> -------------------------------------------------------------------------------------------------------------------------------------
>
> ...
> Deleting all the old versions of the Perl modules I built,
> I will re-install them in a minute.
>
> Removing perl-TimeDate
> Perl modules I built have been removed...
>
> Rebuilding all the Perl RPMs for your version of Perl
>
> Oh good, module File-Spec version 0.82 is already installed.
> ...
>
> Donald Dawson
> Security Administrator
> Baker Botts L.L.P.
> One Shell Plaza
> 910 Louisiana
> Houston, TX 77002
> W: 713-229-2183
>

Jules

-- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM and twitter.com/MailScanner


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list