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:

> The first suspicion is of course that there exists a different package
> URI somewhere in the system, which is only used by the web server, but
> I can't find anything.

Print out $INC{'URI.pm'} from both Apache and the cmd line just to be sure
they're using the same thing.

--
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 >