[DEBIAN] mrtg & perl niet werkend na upgrade (?)

Pagina: 1
Acties:

  • majornono
  • Registratie: Juni 2002
  • Laatst online: 03-02 14:55
Ik zag op de site die mrtg op mijn server genereert dat deze niet meer iedere vijf minuten zijn data bijwerkt. Na een controle van de cron job probeerde ik hem handmatig uit te voeren:
code:
1
2
3
4
root@xxx:/usr/share/perl/5.8/Math# mrtg
Unrecognized character \x03 at /usr/share/perl/5.8/Math/BigFloat.pm line 1504.
Compilation failed in require at /usr/bin/mrtg line 75.
BEGIN failed--compilation aborted at /usr/bin/mrtg line 75.

Ik bekeek de file op regel 1504:
code:
1
^C we also need to disable any set A or P on $x (_find_round_parameters took

Dit leek mij een foutje veroorzaakt tijdens de download (corrupte file), dus ik heb de regel in commentaar gezet. Dit leidde tot de volgende, meer verontrustendere, foutmelding:
code:
1
2
3
4
5
root@xxx:/usr/share/perl/5.8/Math# mrtg
Couldn't load :  Couldn't load any math lib, not even 'Calc.pm' at /usr/share/perl/5.8/Math/BigInt.pm line 1
BEGIN failed--compilation aborted at (eval 1) line 1.
 at /usr/bin/mrtg line 75
BEGIN failed--compilation aborted at /usr/bin/mrtg line 75.


Heeft er iemand enig idee wat er aan de hand is, of beter nog, wat er aan te doen?

[ Voor 4% gewijzigd door majornono op 22-05-2006 14:58 ]

Problem Exists Between Chair And Keyboard


  • Seth4Chaos
  • Registratie: Maart 2001
  • Niet online

Seth4Chaos

that's me...

majornono schreef op maandag 22 mei 2006 @ 14:57:
Dit leek mij een foutje veroorzaakt tijdens de download (corrupte file)
dan kan wel kloppen want dat stukje ziet er bij mij (gentoo overigens) zo uit:
code:
1
2
3
4
5
6
7
8
9
10
11
  # when user set globals, they would interfere with our calculation, so
  # disable them and later re-enable them
  no strict 'refs';
  my $abr = "$self\::accuracy"; my $ab = $$abr; $$abr = undef;
  my $pbr = "$self\::precision"; my $pb = $$pbr; $$pbr = undef;
  # we also need to disable any set A or P on $x (_find_round_parameters took
  # them already into account), since these would interfere, too
  delete $x->{_a}; delete $x->{_p};
  # need to disable $upgrade in BigInt, to avoid deep recursion
  local $Math::BigInt::upgrade = undef;
  local $Math::BigFloat::downgrade = undef;


maar is het dan niet makkelijker om dit even opnieuw te installeren/goed te downloaden?
code:
1
apt-get --reinstall install perl-modules

Mistakes are proof that you are trying...


  • majornono
  • Registratie: Juni 2002
  • Laatst online: 03-02 14:55
Het lijkt er inderdaad op dat het een corrupte download was. Ik heb perl-modules opnieuw geinstalleerd met apt-get en het werkt nu weer.

Bedankt.

(Ik had al naar de reinstall gezocht in de man page, maar kon hem niet zo snel vinden).

Problem Exists Between Chair And Keyboard