On 05/12/2004 03:56, "William Ross" <[EMAIL PROTECTED]> wrote:

> On 4 Dec 2004, at 20:21, Marek Stepanek wrote:
> 
>> On 04/12/2004 12:57, "William Ross" <[EMAIL PROTECTED]> wrote:
>> 
>>> On 3 Dec 2004, at 21:25, Marek Stepanek wrote:
>>> 
>>>> Please ! Nobody can help me out ? I still get these error messages,
>>>> trying
>>>> to install LWP :
>>> 
>>> you are doing this as root, aren't you?
>>> only it looks like you might not be...
>> 
>> yes I am doing it as Root from my tcsh shell :
>> 
>> % sudo perl -MCPAN -e "shell"
> 
> Oh well. The important bit of your error message is this:
> 
>> mkdir ?~name: Invalid argument
> 
> and if File::Path::mkpath() (which calls mkdir here) has superuser
> permission then it must be getting bad instructions. It would be useful
> to see the output you get if you put this immediately before line 112
> in /usr/local/lib/perl5/5.8.5/ExtUtils/Install.pm:
> 
> warn "* installing $source_dir_or_file to
> $from_to{$source_dir_or_file}\n";
> warn "* with PERL_INSTALL_ROOT '$INSTALL_ROOT'\n";
> warn "* mkpath($targetdir)\n";
> 
> after trying the variations that Sherm suggested, that is. They'll help
> you to pin down where the (probable) configuration glitch is and might
> make all this unnecessary.
> 
> best
> 
> will
> 



Hello Will, 

I changed /usr/local/lib/perl5/5.8.5/ExtUtils/Install.pm as you suggested ;
syntax check ok; the lines 109-121 of this file are looking now like follows
: 


    for (readdir DIR) {
        next if $_ eq $Curdir || $_ eq $Updir || $_ eq ".exists";
            my $targetdir =
install_rooted_dir($from_to{$source_dir_or_file});
            warn "* installing $source_dir_or_file to
$from_to{$source_dir_or_file}\n";
             warn "* with PERL_INSTALL_ROOT '$INSTALL_ROOT'\n";
             warn "* mkpath($targetdir)\n";
             mkpath($targetdir) unless $nonono;
        if (!$nonono && !-w $targetdir) {
        warn "Warning: You do not have permissions to " .
            "install into $from_to{$source_dir_or_file}"
            unless $warn_permissions++;
        }
    }

(Line breaks from my email client)


% cd /Users/mareklaptop/.cpan/build/libwww-perl-5.802
% sudo perl Makefile.PL
% sudo make install

gives this 

[snip]

Manifying blib/man3/Bundle::LWP.3
* installing blib/arch to /usr/local/lib/perl5/site_perl/5.8.5/darwin-2level
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5/darwin-2level)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/lib to /usr/local/lib/perl5/site_perl/5.8.5
* with PERL_INSTALL_ROOT ''
* mkpath(/usr/local/lib/perl5/site_perl/5.8.5)
* installing blib/man1 to ?~name
* with PERL_INSTALL_ROOT ''
* mkpath(?~name)
mkdir ?~name: Invalid argument at
/usr/local/lib/perl5/5.8.5/ExtUtils/Install.pm line 115
make: *** [pure_site_install] Error 255


Is this clear to you, what that means ? Probably the "perl"-link I put in
/usr/bin/ pointing /usr/local/bin/ has not the right rights ?

[markslap:~/.cpan/build/libwww-perl-5.802] mareklap% cd /usr/bin/
[markslap:/usr/bin] mareklap% ls -lF perl
lrwxr-xr-x  1 root  wheel  19 17 Nov 14:08 perl@ -> /usr/local/bin/perl

hmmmm, looks good ! But I am not a Perl-Unix-Professional as you are :-)

I am very grateful for your help



greetings from Munich - grey out here


marek



-- 
______________________________________________________________________
___PODIUM_INTERNATIONAL_//_the_embassy_for_talented_young_musicians___
_______Marek_Stepanek__mstep_[at]_PodiumInternational_[dot]_org_______
__________________http://www.PodiumInternational.org__________________
______________________________________________________________________




Reply via email to