Re: Can't Install Perl as Non-Root



On Jan 24, 12:46 pm, Ben Morrow <b...@xxxxxxxxxxxx> wrote:
Quoth dawmail333 <Dawmail...@xxxxxxxxx>:



On Jan 24, 1:41 am, Ben Morrow <b...@xxxxxxxxxxxx> wrote:
Quoth dawmail333 <Dawmail...@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>
I tried 5.10, and this is my new error.

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

This line works:
./miniperl -Ilib -MCwd -le'print Cwd::cwd'
So how do I patch Dynaloader?

Apply this patch with patch -p0 <cwd.patch from in the perl source
directory. Check after you have installed perl that you can still
install XS modules sucessfully, and make sure you don't upgrade
File::Spec (if you do, you'll need to patch it again) :). Could you let
me know if this works? If it does I'll suggest it to the File::Spec
maintainer.

Ben

--- lib/File/Spec/Unix.pm       Tue Dec 18 10:47:07 2007
+++ lib/File/Spec/Unix.pm.cwd   Thu Jan 24 02:38:09 2008
@@ -475,7 +475,7 @@
 # File::Spec subclasses use this.
 sub _cwd {
     require Cwd;
-    Cwd::getcwd();
+    Cwd::cwd();
 }

Sorry, I'm not a terribly knowledgeable person about Linux. Could you
please give me easy, step by step commands to follow? I can access a
terminal and all that, but I have never installed Perl before, and
don't understand what you are saying.
.



Relevant Pages

  • Re: Need Help Installing Win32:SerialPort
    ... ppm installs ppd (Perl Package Description) files not pm ... ppm.bat install Win32-API ...
    (perl.beginners)
  • Re: Trying to use Floor
    ... The ceil and floor functions are defined in the POSIX module. ... How do I ask perl what version is installed? ... you needed to install, ...
    (perl.beginners)
  • Re: FLV to SWF converter
    ... Finds you a perl module, ... and install the dependencies as it goes along. ... Warning: prerequisite List::MoreUtils 0 not found. ...
    (alt.os.linux.suse)
  • Re: Need some explanation about these lines.
    ... a directory perl does not know to look in. ... environment variable PERL5LIB to tell perl about other directories ... I install modules in my home ...
    (perl.beginners)
  • Re: Cant Install Perl as Non-Root
    ... its cwd, ... you may be able to patch MakeMaker to use it. ... Apply this patch with patch -p0 <cwd.patch from in the perl source ... install XS modules sucessfully, and make sure you don't upgrade ...
    (comp.lang.perl.misc)