Re: aha, more LWP install problems
Xu Donghua (xudonghu@iscs.nus.sg)
Sat, 16 Mar 1996 22:49:46 +0800 (SST)
On Thu, 14 Mar 1996, Gord Palameta wrote:
> Xu Donghua writes:
> > Same problem here. How come no one replied to this? Too simple ?
> >
> > Another question. perl5.002 was just installed by my sysadm after my
> > suggesttion. Then I found that to "make install" the libwww-perl-5b9 also
> > requires to write /usr/local/lib/perl5, but I have no write permission to
> > that dir. Can I just ignore this?
>
> No, but why is there a problem, since your sysadmin seems cooperative.
Thanks for all your help. My sysadm is busy with other things, and he
would not like to install these beta-stuffs. :(
>
> Just ask the sysadmin to do "make install" as superuser after you've
> done all the previous steps. One command and that's it.
As a sysadm, he must consider far more than just running one command,
right? At least if I were a sysadm, I'll suspect whether there will be
side-effects to the existing system. :) There are more than 2,000
people in my department, and the sysadm didn't know me until I proposed
him to install perl5.002. He doesn't know me well enough to trust me. :)
> If for some reason you can't get the "make install" done, you will
> have to set the environment variable PERL5LIB to point to your
> libwww-perl-5b9/lib subdirectory. Run "perldoc perl" for details.
Thanks a lot. I tried, but there're still problems. This time it is
libwww-perl-5b10. I wrote a short script trying to access a webpage, of
course, according to libwww-perl cookbook. There's no problem with this
line in my script:
$ua->agent('libwww/5b10');
But when it came to the next line:
$ua->proxy(['ftp', 'gopher', 'http'], "$proxy");
It complained:
Can't locate auto/LWP/UserAgent/proxy.al in @INC at ./tt line 40
There's indeed no such a dir named "UserAgent", just a file
"UserAgent.pm". I looked through this file, and found that the subroutine
"agent" locates before an "__END__", and "proxy" locates after that. I
supposed this is the reason why perl5.002 can't locate "proxy", so I used
"#" to mark off this "__END__". Then it got through. No more errors about
the proxy. Though there're other similar "Can't locate" errors in
URI::URL or somewhere. My question is, what does "__END__" mean? I
believe it is not an error by the author. There must be some way to avoid
this "__END__" automatically, right?
============================================================================
XU Donghua ~{Pm6+;*~}
E-Mail: xudonghu@iscs.nus.sg Homepage: http://www.iscs.nus.sg/~xudonghu
Postal Address: ISCS, NUS, Singapore 119260 Telephone No.: (65)7726838