Re: Can't Install Perl as Non-Root




Quoth dawmail333 <Dawmail333@xxxxxxxxx>:
On Jan 19, 5:12 pm, Ben Morrow <b...@xxxxxxxxxxxx> wrote:

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?

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

.



Relevant Pages

  • Re: Cant Install Perl as Non-Root
    ... out its cwd. ... I suspect you may not be able to fix this, as MakeMaker needs to know ... you may be able to patch MakeMaker to use it. ...
    (comp.lang.perl.misc)
  • Re: absolute path of current process
    ... >> the only OS independent (unix/win32) way to determine the absolute path of ... > use Cwd qw; ... absolute path, with relative path, from cron, etc.). ...
    (perl.beginners)
  • Re: [PHP] __sleep() strange behavior with file writting and SESSION using
    ... I'am used to always using an absolute path, I don't know why this time I ... PHP General Mailing List ... but during the startup/shutdown phases of php there is no script, the CWD ...
    (php.general)
  • Re: open_basedir
    ... you cd to /somedir and execute the script: it fails. ... , PHP expects the text file to be in /somedir, simular to: ... absolute path works, because this doesn't take the cwd into account. ...
    (comp.lang.php)
  • Re: absolute path of current process
    ... > the only OS independent (unix/win32) way to determine the absolute path of ... use Cwd qw; ... Prev by Date: ...
    (perl.beginners)