SystemStats,Statistik,Graph: Can't call method "png&quo

Hilfe zu Znuny Problemen aller Art
Locked
iLe
Znuny newbie
Posts: 1
Joined: 06 Apr 2006, 17:00

SystemStats,Statistik,Graph: Can't call method "png&quo

Post by iLe »

Hallo zusammen,

wir haben ein Problem mit der Graph -Funktion unter Statistik, sie erzeugt leider keine Ausgabe sondern diese Fehlermeldung:

[font=Courier New]
# Software error:
#
# Can't call method "png" on an undefined value at /opt/otrs//Kernel/Modules/SystemStats.pm line ...
[/font]
Die entsprechenden Programmzeilen:
[font=Courier New]
# return $Self->{LayoutObject}->Attachment(
# Filename => "$ConfigItem{Module}"."_"."$Y-$M-$D"."_"."$h-$m.$Ext",
# ContentType => "image/$Ext",
# Content => $graph->plot(\@PData)->$Ext(),
# Type => 'inline',
# );
[/font]
Otrs 2.0.4 ist auf einem Debian-System intalliert.


Im Folgenden was bereits unternommen wurde, um den Fehler zu beheben, was jedoch nicht gelungen ist:

Ein Vergleich der installierten Module des Debian-Systems mit einem Funktionierenden unter Windows zeigte, dass unter Debian Tk::PNG fehlte.

Der Versuch der Nachinstallation mit »perl -MCPAN -e 'install Tk::PNG'« schlug fehl:
[font=Courier New]
# Cannot find X include files via /usr/X11R6/include
[/font]
Daraufhin wurden die x-header-files mit »apt-get install xlibs-dev« installiert und die Nachinstallation wiederholt.

Die Installation schlug aufgrund zahlreicher Fehler (beim Test) fehl.
Daher wurde die Installation erzwungen (perl -MCPAN -e 'force install Tk::PNG'). Eine Ausgabe wird aber immer noch nicht erzeugt.

Ein spät entdeckter Hinweis auf ein otrs-Script (/opt/otrs/bin/otrs.checkModules) zeigte dann nicht installierte GD-Module:
[font=Courier New]
# GD ... not installed! (for stats - not required)
# GD::Text ... not installed! (for stats - not required)
# GD::Graph ... not installed! (for stats - not required)
# GD::Graph::lines ... not installed! (for stats - not required)
# GD::Text::Align ... not installed! (for stats - not required)
[/font]
Darauf wurde nachinstalliert:
[font=Courier New]
# apt-get install libgd-graph-perl
# apt-get install libgd-text-perl
# apt-get install libgd-gd2-noxpm-perl
[/font]
Nun zeigt otrs.checkModules alle Module mit »ok«;

Ein zusätzlich installiertes Script perlinfo.cgi (DF Perl Informer 1.21; http://www.dfservice.com/soft.htm.en.htm) führt u.a. folgende Perl-Module als installiert auf:
[font=Courier New]
# root::.cpan::build::Tk-804.027::blib::lib::Tk::PNG
# root::.cpan::build::Tk-804.027::PNG::PNG

# Tk::PNG
# usr::local::lib::perl::5.8.4::Tk::PNG
# usr::lib::perl5::GD
# usr::share::perl5::GD::Graph::area
# usr::share::perl5::GD::Graph::axestype
# usr::share::perl5::GD::Graph::bars
# usr::share::perl5::GD::Graph::colour
# usr::share::perl5::GD::Graph::Data
# usr::share::perl5::GD::Graph::Error
# usr::share::perl5::GD::Graph::hbars
# usr::share::perl5::GD::Graph::lines
# usr::share::perl5::GD::Graph::linespoints
# usr::share::perl5::GD::Graph::mixed
# usr::share::perl5::GD::Graph::pie
# usr::share::perl5::GD::Graph::points
# usr::share::perl5::GD::Graph::utils
# usr::share::perl5::GD::Text
# usr::share::perl5::GD::Text::Align
# usr::share::perl5::GD::Text::Wrap
[/font]

Demnach ist jetzt scheinbar alles installiert, aber die Funktionalität ist immmer noch nicht gegeben.

Liegt ein Fehler in der Nachinstallation vor?
Wurde etwas vergessen?

Vielen Dank für´s Lesen
Locked