
I have updated my Perl installation, but I can't seem to get OTRS to recognize this. I was having problems getting mail using the PostMaster.pl script, so I ran cat ../doc/test-email | ./PostMaster.pl and got the following: # cat ../doc/test-email-1.box | ./PostMaster.pl ERROR: OTRS-PM-01 Perl: 5.8.0 OS: linux Time: Tue Mar 6 17:19:13 2007 Message: install_driver(mysql) failed: Can't locate loadable object for module DBD::mysql in @INC (@INC contains: /opt/otrs/Kernel/cpan-lib /opt/otrs /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at (eval 47) line 3 Compilation failed in require at (eval 47) line 3, <PRODUCT> line 4. Perhaps a module that DBD::mysql requires hasn't been fully installed at /opt/otrs/Kernel/System/DB.pm line 191 Traceback (20129): Module: ./PostMaster.pl (v1.19) Line: 131 The problem here is that when I run perl -V, my @INC shows up as: @INC: /usr/local/perl-5.8.7/lib/5.8.7/i686-linux /usr/local/perl-5.8.7/lib/5.8.7 /usr/local/perl-5.8.7/lib/site_perl/5.8.7/i686-linux /usr/local/perl-5.8.7/lib/site_perl/5.8.7 /usr/local/perl-5.8.7/lib/site_perl . How can I force OTRS to use the correct @INC variable? Thank you in advance.

It looks to me that you have two perl versions installed 5.8.0 and 5.8.7 And
when you do:
<# cat ../doc/test-email-1.box | ./PostMaster.pl> it uses into the older
one, which seem to lack of DBD::mysql.
If you are sure that you have installed DBD::mysql, it should work.
And if when you do < #perl -V > you get the right @INC then try to do:
<# cat ../doc/test-email-1.box | perl PostMaster.pl> instead (note perl and
not ./)
if you still getting the same error, then you done have DBD:mysql installed.
Hope that helps.
Tona
----- Original Message -----
From: "Jeff Baughn"

I forgot:
You can also do
#which perl
and match the result path to the very first line of code in Postmaster.pl
do
#head Postmaster.pl
and see if the first line in the code has a different path than the output
of "which perl". If they are different then update the file with your editor
of choice ( I like vi)
Tona,
----- Original Message -----
From: "Tonatiuh Medina"
It looks to me that you have two perl versions installed 5.8.0 and 5.8.7 And when you do: <# cat ../doc/test-email-1.box | ./PostMaster.pl> it uses into the older one, which seem to lack of DBD::mysql. If you are sure that you have installed DBD::mysql, it should work. And if when you do < #perl -V > you get the right @INC then try to do:
<# cat ../doc/test-email-1.box | perl PostMaster.pl> instead (note perl and not ./)
if you still getting the same error, then you done have DBD:mysql installed. Hope that helps.
Tona
----- Original Message ----- From: "Jeff Baughn"
To: Sent: Tuesday, March 06, 2007 5:43 PM Subject: [otrs] Update @INC in OTRS? I have updated my Perl installation, but I can't seem to get OTRS to recognize this. I was having problems getting mail using the PostMaster.pl script, so I ran cat ../doc/test-email | ./PostMaster.pl and got the following:
# cat ../doc/test-email-1.box | ./PostMaster.pl ERROR: OTRS-PM-01 Perl: 5.8.0 OS: linux Time: Tue Mar 6 17:19:13 2007
Message: install_driver(mysql) failed: Can't locate loadable object for module DBD::mysql in @INC (@INC contains: /opt/otrs/Kernel/cpan-lib /opt/otrs /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at (eval 47) line 3 Compilation failed in require at (eval 47) line 3, <PRODUCT> line 4. Perhaps a module that DBD::mysql requires hasn't been fully installed at /opt/otrs/Kernel/System/DB.pm line 191
Traceback (20129): Module: ./PostMaster.pl (v1.19) Line: 131
The problem here is that when I run perl -V, my @INC shows up as:
@INC: /usr/local/perl-5.8.7/lib/5.8.7/i686-linux /usr/local/perl-5.8.7/lib/5.8.7 /usr/local/perl-5.8.7/lib/site_perl/5.8.7/i686-linux /usr/local/perl-5.8.7/lib/site_perl/5.8.7 /usr/local/perl-5.8.7/lib/site_perl .
How can I force OTRS to use the correct @INC variable?
Thank you in advance.
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support orr consulting for your OTRS system? =http://www.otrs.com/
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support orr consulting for your OTRS system? => http://www.otrs.com/

I forgot: You can also do #which perl
and match the result path to the very first line of code in Postmaster.pl
do #head Postmaster.pl
and see if the first line in the code has a different path than the output of "which perl". If they are different then update the file with your editor of choice ( I like vi)
Tona,
----- Original Message ----- From: "Tonatiuh Medina"
To: "User questions and discussions about OTRS.org" Sent: Tuesday, March 06, 2007 6:01 PM Subject: Re: [otrs] Update @INC in OTRS? It looks to me that you have two perl versions installed 5.8.0 and 5.8.7 And when you do: <# cat ../doc/test-email-1.box | ./PostMaster.pl> it uses into the older one, which seem to lack of DBD::mysql. If you are sure that you have installed DBD::mysql, it should work. And if when you do < #perl -V > you get the right @INC then try to do:
<# cat ../doc/test-email-1.box | perl PostMaster.pl> instead (note perl and not ./)
if you still getting the same error, then you done have DBD:mysql installed. Hope that helps.
Tona
----- Original Message ----- From: "Jeff Baughn"
To: Sent: Tuesday, March 06, 2007 5:43 PM Subject: [otrs] Update @INC in OTRS? I have updated my Perl installation, but I can't seem to get OTRS to recognize this. I was having problems getting mail using the PostMaster.pl script, so I ran cat ../doc/test-email | ./PostMaster.pl and got the following:
# cat ../doc/test-email-1.box | ./PostMaster.pl ERROR: OTRS-PM-01 Perl: 5.8.0 OS: linux Time: Tue Mar 6 17:19:13 2007
Message: install_driver(mysql) failed: Can't locate loadable object for module DBD::mysql in @INC (@INC contains: /opt/otrs/Kernel/cpan-lib /opt/otrs /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at (eval 47) line 3 Compilation failed in require at (eval 47) line 3, <PRODUCT> line
Changing the path in the PostMaster.pl script fixed that problem. Now
I have this:
cat ../doc/test-email-1.box | ./PostMaster.pl
ERROR: OTRS-PM-01 Perl: 5.8.7 OS: linux Time: Tue Mar 6 20:58:22 2007
Message: Can't write /opt/otrs/var/log/TicketCounter.log: Permission denied
Traceback (23603):
Module: Kernel::System::Ticket::Number::Date::CreateTicketNr
(v1.14) Line: 66
Module: Kernel::System::PostMaster::NewTicket::Run (v1.52) Line: 158
Module: Kernel::System::PostMaster::Run (v1.52) Line: 239
Module: (eval) (v1.19) Line: 112
Module: ./PostMaster.pl (v1.19) Line: 86
ERROR: OTRS-PM-01 Perl: 5.8.7 OS: linux Time: Tue Mar 6 20:58:22 2007
Message: Can't write /opt/otrs/var/log/TicketCounter.log: at
/opt/otrs/Kernel/System/Ticket/Number/Date.pm line 70.
Traceback (23603):
Module: ./PostMaster.pl (v1.19) Line: 132
My TicketCounter.log file has the correct permissions as far as I can
tell. Any other ideas?
Thank you.
-Jeff
Quoting Tonatiuh Medina
Perhaps a module that DBD::mysql requires hasn't been fully installed at /opt/otrs/Kernel/System/DB.pm line 191
Traceback (20129): Module: ./PostMaster.pl (v1.19) Line: 131
The problem here is that when I run perl -V, my @INC shows up as:
@INC: /usr/local/perl-5.8.7/lib/5.8.7/i686-linux /usr/local/perl-5.8.7/lib/5.8.7 /usr/local/perl-5.8.7/lib/site_perl/5.8.7/i686-linux /usr/local/perl-5.8.7/lib/site_perl/5.8.7 /usr/local/perl-5.8.7/lib/site_perl .
How can I force OTRS to use the correct @INC variable?
Thank you in advance.
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support orr consulting for your OTRS system? =http://www.otrs.com/
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support orr consulting for your OTRS system? => http://www.otrs.com/
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support orr consulting for your OTRS system? => http://www.otrs.com/

Le mardi 06 mars 2007 à 17:43 -0800, Jeff Baughn a écrit :
I have updated my Perl installation, but I can't seem to get OTRS to recognize this. I was having problems getting mail using the PostMaster.pl script, so I ran cat ../doc/test-email | ./PostMaster.pl and got the following:
Ah, upgrading perl .. Ok, if you change your perl version (in this case, from perl 5.8.0 to 5.8.7), you _have to reinstall all modules_. This mean take care of DBI, DBD-MySQL and all OTRS dependencies. You should read your system or distribution documentation to know how to make a clean perl upgrade. For example, in gentoo, we got a nice tool called perl-cleaner that take care of all includes and modules files. Take a look on the documentation : http://www.gentoo.org/proj/en/perl/perl-cleaner.xml Regards -- Alexandre
participants (3)
-
Alexandre Ghisoli
-
Jeff Baughn
-
Tonatiuh Medina