Re: Can't Install Perl as Non-Root
- From: Ben Morrow <ben@xxxxxxxxxxxx>
- Date: Wed, 23 Jan 2008 15:41:21 +0000
Quoth dawmail333 <Dawmail333@xxxxxxxxx>:
On Jan 19, 5:12 pm, Ben Morrow <b...@xxxxxxxxxxxx> wrote:<snip>
File::Find is trying to work out its cwd, which means it needs to be
able to readdir all the directories down from /. Do you not have read
permission on /home?
Is it possible for you to build perl (not necessarily install perl) in a
directory where you *can* read all the directories down from /? Perhaps
/tmp, if there's enough room there? Otherwise, try 5.10.0, which has a
newer version of Cwd that (at least on my machine) doesn't fail in the
same way.
I don't have read permissions in home, and I don't think I have write
in tmp either. Doesn't that get removed anyway?
It doesn't matter if it gets removed: you only need to build perl there,
not install it, so you'd remove the build tree afterwards anyway.
I tried 5.10, and this is my new error.<snip>
make[1]: Entering directory `/home/.bazooka/dawliam/perl-5.10.0/ext/
DynaLoader'
/bin/sh: line 1: /miniperl: No such file or directory
This looks like the same problem: the Makefile is supposed to invoke
miniperl by an absolute path, but it is failing because it can't work
out its cwd. If you look at ext/Dynaloader/Makefile, what is ABSPERL set
to (it's in the section called 'MakeMaker constants section')? It should
be an absolute path to miniperl in the build directory.
I suspect you may not be able to fix this, as MakeMaker needs to know
its cwd, even after perl is installed. Can you find it at all? What do
you get if you run, from the build directory,
/bin/pwd
./miniperl -Ilib -MCwd -le'print Cwd::getcwd'
./miniperl -Ilib -MCwd -le'print Cwd::cwd'
If one of those works, you may be able to patch MakeMaker to use it.
Ben
.
- Follow-Ups:
- Re: Can't Install Perl as Non-Root
- From: dawmail333
- Re: Can't Install Perl as Non-Root
- References:
- Can't Install Perl as Non-Root
- From: dawmail333
- Re: Can't Install Perl as Non-Root
- From: Ben Morrow
- Re: Can't Install Perl as Non-Root
- From: dawmail333
- Can't Install Perl as Non-Root
- Prev by Date: Re: sprintf rouding error
- Next by Date: Re: Chat client/server print failed
- Previous by thread: Re: Can't Install Perl as Non-Root
- Next by thread: Re: Can't Install Perl as Non-Root
- Index(es):
Relevant Pages
|