The unshift should read like this:
unshift @INC, "/opt/otrs-2.1.7/otrs/Kernel/cpan-lib" or warn "Failed to
modify @INC";

The old packages then would be installed to that location.

The most likely causes of this not working are:
1) the unshift is in the wrong place, i.e. not before the relevant use
statement.
2) The path being unshifted is incorrect.
3) Needed files are missing or incorrectly located in the unshifted
path.

You might also be able to accomplish the same thing by changing the
first line of the index.pl file to read:
#!/usr/bin/perl -w -I/opt/otrs-2.1.7/otrs/Kernel/cpan-lib

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Eddie Bindt
Sent: Sunday, July 01, 2007 6:04 AM
To: User questions and discussions about OTRS.org
Subject: Re: [otrs] Software error

ls,

unshift gives me the same result ... No luck ... Stil lthe same error  
message.

(the code with the warn statements does not give me any output ...)


Eddie



On 29-jun-2007, at 15:30, Gerhard Weber wrote:

> Hi,
>
>>> You can try extending @INC.  add the line:
>>> unshift @INC, "/{insertFullPathHere}/Kernel/cpan-lib/Net/DNS/";
>>> to index.pl, this way you will search that directory first while
> using
>>> index.pl.  Would that do what you need?  Hope this helps.
>> Too bad, the original error
>> "Modification of a read-only value attempted at /usr/lib/perl5/
> site_perl/5.8.8/i686-linux/Net/DNS/Question.pm line 47."
>> still points to the use of the system-wide module ....
>
> I think unshift'ing is the right way, but you have to pass the "basic"
> path for your module.
> Something like this in index.pl:
>
>  unshift @INC, "$Bin/../../Kernel/cpan-lib");   # without "Net/DNS/"
>  push (@INC, "$Bin/../..");                     # no more need to push
> $Bin/../../Kernel/cpan-lib
>
> and then directly after that log the versions:
>
> use Net::DNS::Question;
> warn "Net::DNS::Question: $Net::DNS::Question::VERSION\n";
> warn "Net::DNS::Resolver::Base: $Net::DNS::Resolver::Base::VERSION\n";
>
> that should give you 610 versions from cpan.
>
> Another thing just crossed my mind: since I'm working on a
> non-production system (just testing), I don't know for sure if these
> versions are working.
> Maybe someone else can test for her/his versions?
>  perl -MNet::DNS::Question -e 'print
> "v=$Net::DNS::Question::VERSION\n";'
> and
>  perl -MNet::DNS::Question -e 'print
> "v=$Net::DNS::Resolver::Base::VERSION\n";'
> prints the version on a shell
>
> Greetings, Gerhard
>
>
>
> _______________________________________________
> 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 or consulting for your OTRS system?
>
>

_______________________________________________
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 or 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 or consulting for your OTRS system?
=> http://www.otrs.com/

Reply via email to