
perl -cw kann ja nur den Suchpfad verwenden, der der Default für Perl ist. OTRS fügt aber vermutlich während der Laufzeit den Pfad für die eigenen Module hinzu; insofern ist die Fehlermeldung nicht verwunderlich. Aber bist du dir sicher, dass du _alle_ fehlenden Hochkommata gefunden hast? Die ursprüngliche Fehlermeldung deutet ja aber schon auf ein Problem mit der Language.pm hin, die du ja auch ersetzt hast. Hast du das Original noch, um das zu testen? Stammt die neue Language.pm sicher aus der gleichen Version von OTRS? Am Samstag, 14. Juni 2008 18:11:47 schrieb maeke@it-steps24.de:
Nachtrag:
wenn ich aus der config.pm die Zeile
use Kernel::Config::Defaults;
auskommentiere, ist der Syntax-Check ok:
perl -cw Config.pm Config.pm syntax OK
Das OTRS lsst sich aber natrlich nicht aufrufen.
Gru Th.
Zitat von maeke@it-steps24.de:
Hallo Ivan,
das stimmt. Ich habe es gendert.
Leider noch das gleiche Ergebnis. Aber auch bei der Config.pm.dist gibt es den Fehler:
perl -cw Config.pm.dist Can't locate Kernel/Config/Defaults.pm in @INC (@INC contains: /usr/lib/perl5/5.8.7/i586-linux-thread-multi /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.7/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl .) at Config.pm.dist line 92. BEGIN failed--compilation aborted at Config.pm.dist line 92.
Wisst ihr was das bedeutet? Ich habe das Gefhl, dass es an einem Pfad liegt. Er scheint ja etwas nicht zu finden.
Gru Th.
Zitat von Ivan De Masi
: maeke@it-steps24.de schrieb:
Hallo Torsten,
Hallo Thorsten,
aufgrund Deines Tipps habe ich einmal die Syntax der pm-Files berprft:
...
Aber ich habe etwas gefunden:
itsteps24@h1044575:Kernel> perl -cw Config.pm Can't locate Kernel/Config/Defaults.pm in @INC (@INC contains: /usr/lib/perl5/5.8.7/i586-linux-thread-multi /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.7/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl .) at Config.pm line 103. BEGIN failed--compilation aborted at Config.pm line 103.
Die Config.pm ist kaputt gegangen.
Hier die Datei:
----------------------------------------------------------------- # -- # Kernel/Config.pm - Config file for OTRS kernel # Copyright (C) 2001-2006 OTRS GmbH, http://otrs.org/ # -- # $Id: Config.pm.dist,v 1.18 2006/09/07 16:15:41 mh Exp $ # -- # This software comes with ABSOLUTELY NO WARRANTY. For details, see # the enclosed file COPYING for license information (GPL). If you # did not receive this file, see http://www.gnu.org/licenses/gpl.txt. # -- # Note: # # -->> OTRS does have a lot of config settings. For more settings # (Notifications, Ticket::ViewAccelerator, Ticket::NumberGenerator, # LDAP, PostMaster, Session, Preferences, ...) see # Kernel/Config/Defaults.pm and copy your wanted lines into "this" # config file. This file will not be changed on update! # # --
package Kernel::Config;
sub Load { my $Self =hift; # ---------------------------------------------------- # # ---------------------------------------------------- # # # # Start of your own config options!!! # # # # ---------------------------------------------------- # # ---------------------------------------------------- #
# ---------------------------------------------------- # # database settings # # ---------------------------------------------------- # # DatabaseHost # (The database host.) $Self->{'DatabaseHost'} =localhost'; # Database # (The database name.) $Self->{'Database'} =otrs'; # DatabaseUser # (The database user.) $Self->{'DatabaseUser'} =**geheim**'; # DatabasePw # (The password of database user. You also can use bin/CryptPassword.pl # for crypted passwords.) $Self->{'DatabasePw'} =**geheim**'; # DatabaseDSN # (The database DSN for MySQL =more: "man DBD::mysql") $Self->{DatabaseDSN} >> "DBI:mysql:database=Elf->{Database};host=$Self->{DatabaseHost};";
# (The database DSN for PostgreSQL =more: "man DBD::Pg") # if you want to use a local socket connection # $Self->{DatabaseDSN} I:Pg:dbname=$Self->{Database};"; # if you want to use a tcpip connection # $Self->{DatabaseDSN} >> "DBI:Pg:dbname=Elf->{Database};host=$Self->{DatabaseHost};";
# ---------------------------------------------------- # # fs root directory # ---------------------------------------------------- # $Self->{Home} >> '/srv/www/vhosts/it-steps24.de/subdomains/ticket/httpdocs/';
# ---------------------------------------------------- # # insert your own config settings "here" # # config settings taken from Kernel/Config/Defaults.pm # # ---------------------------------------------------- # # $Self->{SessionUseCookie} =; # $Self->{'CheckMXRecord'} =;
# ---------------------------------------------------- #
# ---------------------------------------------------- # # data inserted by installer # # ---------------------------------------------------- # # $DIBI$ $Self->{'SystemID'} =0; $Self->{'SecureMode'} =; $Self->{'Organization'} =IT-Steps24 GmbH'; $Self->{'LogModule::LogFile'} =/tmp/otrs.log'; $Self->{'LogModule'} =Kernel::System::Log::SysLog'; $Self->{'FQDN'} =ticket.it-steps24.de'; $Self->{'DefaultLanguage'} '; $Self->{'AdminEmail'} min@it-steps24.de'; $Self->{'DefaultCharset'} =utf-8';
$Self->{'DefaultUsedLanguages'}->{'de'} utsch';
# ---------------------------------------------------- # # ---------------------------------------------------- # # # # End of your own config options!!! # # # # ---------------------------------------------------- # # ---------------------------------------------------- # }
# ---------------------------------------------------- # # needed system stuff (don't edit this) # # ---------------------------------------------------- # use strict; use vars qw(@ISA $VERSION); use Kernel::Config::Defaults; push (@ISA, 'Kernel::Config::Defaults'); $VERSION =$Revision: 1.18 $'; $VERSION =s/^\$.*:\W(.*)\W.+?$/$1/; # -----------------------------------------------------#
1; -----------------------------------------------------------------
Siehst Du einen Fehler?
Vielen Dank schon einmal!
Gru Th.
Mir z.B. fllt auf das smtliche Parameter sehr seltsam definiert sind.
Whrend bei Dir
$Self->{'DatabaseHost'} =localhost';"
steht, sollte es eigentlich so aussehen:
$Self->{DatabaseHost} ='localhost';
Zum einen ist "localhost" also nicht richtig durch "'" definiert und der Parameter "DatabaseHost" zustzlich abgegrenzt ('DatabaseHost').
Im Prinzip sieht Deine komplette Konfiguration so aus. Warum?
Vergleiche mal mit der Syntax der Config.pm.dist!
Grsse Ivan
_______________________________________________ OTRS-de Mailingliste: otrs-de - Webpage: http://otrs.org/ Archiv: http://lists.otrs.org/pipermail/otrs-de/ Listenabo verwalten: http://lists.otrs.org/cgi-bin/listinfo/otrs-de/ Support oder Consulting fuer Ihr OTRS System? => http://www.otrs.com/
_______________________________________________ OTRS-de Mailingliste: otrs-de - Webpage: http://otrs.org/ Archiv: http://lists.otrs.org/pipermail/otrs-de/ Listenabo verwalten: http://lists.otrs.org/cgi-bin/listinfo/otrs-de/ Support oder Consulting fuer Ihr OTRS System? => http://www.otrs.com/
-- Mit freundlichen Grüßen Helmut A. Bender Helmut Bender GmbH Georgstr. 2, 75203 Königsbach-Stein Amtsgericht Mannheim HRB 501213 Geschäftsführer: Helmut A. Bender