
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/