Grokbase
Topics Posts Groups | in
x
[ help ]

Re: Occasional problems with URI package under mp

View PostFlat  Thread  Threaded | < Prev - Next >
Michael Peters Re: Occasional problems with URI package under mp
| +1 vote
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Kjetil Kjernsmo wrote:
> On Tuesday 19 September 2006 16:05, Garrett, Philip (MAN-Corporate)
> wrote:
>>   warn "URI.pm location: $INC{'URI.pm'}\n";
>>
>> If it's different for the failures than it is for the successes, you
>> have your culprit.
>
> Hmmm, nope, that was OK...

Doesn't look OK to me...

> URI.pm location: /usr/lib/perl5/Apache2/URI.pm
> Can't locate object method "new" via package "URI" at [blah]

That's Apache2::URI, not URI. What does the command line version of that same
script print? Do you have "/usr/lib/perl5/Apache2" in your @INC? If so, you
shouldn't (I believe that was an old 1.99 thing before the change into the
Apache2 namespace).

--
Michael Peters
Developer
Plus Three, LP

Thread : Occasional problems with URI package under mp
1)
Kjetil Kjernsmo Hi all! We've been seeing some really weird things with LWP, but only when running it on the web...
2)
Michael Peters Print out $INC{'URI.pm'} from both Apache and the cmd line just to be sure they're using the same...
3)
Garrett, Philip (MAN-Corporate) Maybe a stupid question, but do you have "use URI" in that program? Philip
4)
Kjetil Kjernsmo Yep! But an entirely appropriate question in this situation. :-) Actually, the problem was far less...
5)
Garrett, Philip (MAN-Corporate) Well, that is pretty weird. If some of the Apache children are using a different URI.pm than the...
6)
Kjetil Kjernsmo Hmmm, nope, that was OK... So, I have use URI; warn "URI.pm location: $INC{'URI.pm'}\n"; my...
7)
Michael Peters Doesn't look OK to me... That's Apache2::URI, not URI. What does the command line version of that...
8)
Kjetil Kjernsmo Duh! I'm bliiiiind! :-) URI.pm location: /usr/share/perl5/URI.pm which is the right thing, I guess....
9)
Tom Schindl Not that is not OK. If you have: @INC = qw(/usr/lib/perl5/Apache2,/usr/share/perl5/,); -...
10)
Kjetil Kjernsmo Errr... I just couldn't imagine that anybody could have done that to our @INC, but I asked around...
spacer
View PostFlat  Thread  Threaded | < Prev - Next >