So I stuffed an upgrade of debian, both upgrade and dist-upgrade. I am more used to yum but thats no excuse.
Now things are being silly. The majority of things work, however, my bugzilla install fails. On loading bugzilla I get a 500 error and this is logged in the error.log;
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] Can't locate Email/Address.pm in @INC (@INC contains: . /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl) at Bugzilla/Mailer.pm line 48.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] BEGIN failed--compilation aborted at Bugzilla/Mailer.pm line 48.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] Compilation failed in require at Bugzilla/Token.pm line 35.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] BEGIN failed--compilation aborted at Bugzilla/Token.pm line 35.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] Compilation failed in require at Bugzilla/Auth/Persist/Cookie.pm line 37.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] BEGIN failed--compilation aborted at Bugzilla/Auth/Persist/Cookie.pm line 37.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] Compilation failed in require at Bugzilla/Auth.pm line 37.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] BEGIN failed--compilation aborted at Bugzilla/Auth.pm line 37.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] Compilation failed in require at Bugzilla.pm line 31.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] BEGIN failed--compilation aborted at Bugzilla.pm line 31.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] Compilation failed in require at /var/www/bugzilla/index.cgi line 34.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] BEGIN failed--compilation aborted at /var/www/bugzilla/index.cgi line 34.
[Fri Jun 05 12:34:16 2009] [error] [client 172.20.0.160] Premature end of script headers: index.cgi
Also, when I run checksetup.pl from Bugzilla, it seems to end prematurely;
Checking user setup ...
Removing existing compiled templates ...
Precompiling templates ...
Not a subroutine reference at /usr/share/perl5/Bugzilla/Template.pm line 59.
Compilation failed in require at /usr/share/bugzilla/lib/checksetup.pl line 1291
I have reinstalled both perl and perl-base;
apt-get install --reinstall perl-base
apt-get install --reinstall perl
And have had no success.
Any help would be muchly appreciated.
Also, this site is becoming a lifesaver for a systems-noob like myself and I am really thankful to all the help I get.
Christian
I see that you already solved this with the CPAN shell, but it would be better to install with Debian packages, that way you have only one place to check for upgrades, etc... In fact, I'll bet if you'd used the debian bugzilla package in the first place you wouldn't have run into this problem in the first place.
The general case:
Which gives you output like (but sometimes more than one package):
Then, you can optionally use this to verify that the package is the right one:
And finally the apt-get install that I started with.
Instead of using a newer version of Bugzilla, you might consider (re-)installing Perl 5.8 to a different directory. Don't overwrite the OS's.
In the past I have learned the hard way to keep the OS version and the App version of Perl in separate directories. Let the OS manage/fill it's Perl version requirements, and make sure you meet the requirements of the App in a different directory.
Maybe? I'm no perl person...
You are using Perl 5.10 - are you trying to install an older version of Bugzilla which doesn't work with it?
Use a more recent Bugzilla (3.0.2 and up) or see here for a workaround.
Try to run apt-get -f install, It may fix your broken packages.