[otrs] Update @INC in OTRS?
Jeff Baughn
jbaughn at ucla.edu
Tue Mar 6 21:00:22 GMT 2007
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 <tmedina at spikesource.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"
> <tmedina at spikesource.com>
> To: "User questions and discussions about OTRS.org" <otrs at 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"
<jbaughn at ucla.edu>
>> To: <otrs at otrs.org>
>> 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/
>>
>
> _______________________________________________
> 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/
More information about the otrs
mailing list