OK this one's got me stumped.
on a 2.16 GHz Intel dual core Mac Book running OSX 10.4.11. I've been
trying to install modules.
First I tried to get read line support in the CPAN shell, it's all
stuff I've done before, CPAN goes through the fetching, the un
gzipping, the MAKEing, the MAKE TEST ing and even the INSTALLing.
But, RELOAD CPAN and ....... no readline support. OK I thought I
really only need Bundle::LWP so I try to install it. Just as before
the un gzipping, the MAKEing, the MAKE TEST ing, the INSTALLing but
when I try to
use LWP::WHATEVER
I get
Can't locate LWP/<WHATEVER>.pm
Permissions? As admin I don't have root powers unless I 'sudo',
perhaps CPAN is trying to install into a root owned directory. I go
through a clean install with a 'sudo'ed CPAN
Can't locate LWP/<WHATEVER>.pm
OK I thought I need to tell perl where to look for the modules, no
biggie:
Can't locate LWP/<WHATEVER>.pm in @INC (@INC contains: /Library/perl /
Users/robin/perl /Users/robin/Desktop /usr/local/lib/perl5/5.10.0/
darwin-2level /usr/local/lib/perl5/5.10.0 /usr/local/lib/perl5/
site_perl/5.10.0/darwin-2level /usr/local/lib/perl5/site_perl/5.10.0 .)
As you can see from @INC I'm looking in a load of places too.
OK I thought - perhaps there's something happening with the apple
stock perl install I don't know to look for. So I clean installed
new Perl into /Usr/local and set up my shell environment (again
this is not the first time I've done this):
PERL5LIB=/Library/Perl
LC_ALL=C
PATH=/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin
after running MAKE TEST I get the results
Failed 1 test out of 1386, 99.93% okay.
The failed test is
lib/Module/Build/t/tilde......................................#
Failed test at ../lib/Module/Build/t/tilde.t line 49.
# got: '/var/root'
# expected: '/Users/robin'
Can't save output handle: Bad file descriptor at ../lib/Module/Build/
t/lib/MBTest.pm line 91.
cannot chdir to /usr/local/src/perl-5.10.0/t/_tmp17753/Simple from /
usr/local/src/perl-5.10.0/t/_tmp17753: No such file or directory,
aborting. at ../lib/Module/Build/t/lib/MBTest.pm line 71
END failed--call queue aborted at ../lib/Module/Build/t/tilde.t line 91.
# Looks like you planned 15 tests but only ran 1.
# Looks like you failed 1 test of 1 run.
# Looks like your test died just after 1.
FAILED at test 1
I then ran sudo ./perl harness for more information:
../lib/Module/Build/t/tilde......................................
# Failed test at ../lib/Module/Build/t/tilde.t line 49.
# got: '/var/root'
# expected: '/Users/robin'
../lib/Module/Build/t/tilde......................................NOK
2/15
# Failed test at ../lib/Module/Build/t/tilde.t line 51.
# got: '/var/root/foo'
# expected: '/Users/robin/foo'
../lib/Module/Build/t/tilde......................................ok 3/15
# Failed test at ../lib/Module/Build/t/tilde.t line 57.
# got: '/var/root/ foo'
# expected: '/Users/robin/ foo'
../lib/Module/Build/t/tilde......................................NOK
5/15
# Failed test at ../lib/Module/Build/t/tilde.t line 59.
# got: '/var/root/fo o'
# expected: '/Users/robin/fo o'
../lib/Module/Build/t/tilde......................................NOK
6/15
# Failed test at ../lib/Module/Build/t/tilde.t line 63.
# got: '/var/root'
# expected: '/Users/robin'
../lib/Module/Build/t/tilde......................................NOK
8/15
# Failed test at ../lib/Module/Build/t/tilde.t line 69.
# got: '/var/root/lib'
# expected: '/Users/robin/lib'
../lib/Module/Build/t/tilde......................................NOK
9/15
# Failed test at ../lib/Module/Build/t/tilde.t line 71.
# got: '/var/root/html'
# expected: '/Users/robin/html'
../lib/Module/Build/t/tilde......................................NOK
10/15
# Failed test at ../lib/Module/Build/t/tilde.t line 72.
../lib/Module/Build/t/tilde......................................NOK
11/15# got: '/var/root/html'
# expected: '/Users/robin/html'
# Failed test at ../lib/Module/Build/t/tilde.t line 75.
# got: '/var/root/lib'
# expected: '/Users/robin/lib'
../lib/Module/Build/t/tilde......................................NOK
12/15
# Failed test at ../lib/Module/Build/t/tilde.t line 78.
# got: '/var/root'
# expected: '/Users/robin'
../lib/Module/Build/t/tilde......................................NOK
13/15# Looks like you failed 10 tests of 15.
So there is some kind of path issue being caused by running commands
as admin under 'sudo', a problem I've never had before.
I've already spent too much time on this and only really need to
install Bundle::LWP.
Help or insights would be appreciated,
Robin