[EMAIL PROTECTED] wrote:
>
>
> You'll find the program at:
>
> http://www.arix.com/perl/cpan2rpm/
>
> What I would do is try and build rpms for the modules (including 
> spamassassin) wit hthe cpan2rpm program.
>
> It is quite easily done. You need to pass the name of the moduzle to 
> it like
>
> cpan2rpm Compress::Zlib
>
> and it will download the package from cpan and build an rpm which you 
> then install with rpm -Uvh etc.
>
> It also takes targz on the command line, and buils an rpm.
>
> The idea was that you can actually build an rpm, which shoudl 
> overwrite your current installation. You then can uninstall with rpm 
> -e  ,and that shoudl take care of cleaning it up.
>
> Maybe it  is too complicated, but I can think of any other way to 
> clean up the system. (Apart from manually deleting the files).
>
> Hope this helps,
>
> .peter
>
Thank you for the hints. I tried to build rpm with
cpan2rpm Mail::Spamassassin

It unfortunately gave some errors and couldn't complete the process:

t/spamd_hup.......................5/110 # Failed test 5 in t/spamd_hup.t 
at line 43
#  t/spamd_hup.t line 43 is:   ok (-e $pid_file) or warn "$pid_file does 
not exist post restart";
log/spamd.pid does not exist post restart at t/spamd_hup.t line 43.

Then, I decided to leave the cpan modules as they are and tried to 
remove and re-install amavisd-new and spamassassin by yum. It run OK.

However, when I try sa-update now, I get lots of errors like below:

plugin: failed to parse plugin (from @INC): Bareword 
"Mail::SpamAssassin::Constants::CHARSETS_LIKELY_TO_FP_AS_CAPS" not 
allowed while "strict subs" in use at 
/usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin/HeaderEval.pm 
line 967.
Compilation failed in require at (eval 93) line 1.

plugin: failed to create instance of plugin 
Mail::SpamAssassin::Plugin::HeaderEval: Can't locate object method "new" 
via package "Mail::SpamAssassin::Plugin::HeaderEval" at 
/usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin/HeaderEval.pm 
line 39.

Obviously, cpan modules broke the perl integrity on my system.

It is time to re-install my server from scratch on.

I created this problem by myself. A good lesson for me. I will never 
ever manually install cpan modules again. It is well beyond my technical 
capacity.

Thank you for your kind support anyway.

Best wishes,
Mufit



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to