Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Cannot create directory while compiling perl 5.16.1

by szabgab (Priest)
on Sep 09, 2012 at 09:16 UTC ( #992572=perlquestion: print w/replies, xml ) Need Help??
szabgab has asked for the wisdom of the Perl Monks concerning the following question:

I guess it is some kind a local system issue, but so far I could not figure it out. When I try to build perl 5.16.1 on a Linux box I get this error in the make phase:
./miniperl -Ilib >lib/ ./miniperl -Ilib cpan/Archive-Extract/pm_to_blib MAKE=make + LIBPERL_A=libperl.a Making Archive::Extract (all) Creating Makefile.PL in cpan/Archive-Extract for Archive::Extract Running Makefile.PL in cpan/Archive-Extract ../../miniperl -I../../lib Makefile.PL INSTALLDIRS=perl INSTALLMAN1DIR +=none INSTALLMAN3DIR=none PERL_CORE=1 LIBPERL_A=libperl.a Writing Makefile for Archive::Extract make[1]: Entering directory `/a/users/develop/gabor/perl-5.16.1/cpan/A +rchive-Extract' make[1]: Leaving directory `/a/users/develop/gabor/perl-5.16.1/cpan/Ar +chive-Extract' Making all in cpan/Archive-Extract make all PERL_CORE=1 LIBPERL_A=libperl.a make[1]: Entering directory `/a/users/develop/gabor/perl-5.16.1/cpan/A +rchive-Extract' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! ERROR: Can't create '../../lib/auto' Do not have write permissions on '../../lib/auto' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! at -e line 1. make[1]: *** [pm_to_blib] Error 2 make[1]: Leaving directory `/a/users/develop/gabor/perl-5.16.1/cpan/Ar +chive-Extract' Unsuccessful make(cpan/Archive-Extract): code=512 at line +466. make: *** [cpan/Archive-Extract/pm_to_blib] Error 25
But after this error /a/users/develop/gabor/perl-5.16.1/lib/auto already exists and /a/users/develop/gabor/perl-5.16.1/lib/auto/Archive/Extract also exists,


After IT fixed the userids and the permissions, the building perl worked fine. Thank you for your attention and sorry for the drama.

Replies are listed 'Best First'.
Re: Cannot create directory while compiling perl 5.16.1
by shlomif (Beadle) on Sep 09, 2012 at 10:52 UTC

    Hi szabgab,

    can you please provide the following information:

    1. Which distibution and version does this Linux box run?
    2. How did you invoke "sh Configure"? Any special configuration parameters?
    3. If you only do sh Configure -de -Dprefix=$HOME/apps/perl/bleadperl does it work properly?
    4. Is this Linux machine at a remote hosting? If so - which?

    Hopefully I or others will be able to help you after getting this information.

      It tells me it is a "Red Hat Enterprise Linux Server release 6.3 (Santiago)" but I suspect it might be CentOS.

      ./Configure -des -Dprefix=/a/it/perl5-15.1

      The /a is an NFS. My suspicion is that the usernames and ids have some issues. I run as user "abc" but the files I create have owner "def" and group "xyz". Also I noticed user "abc" has two entries in /etc/passwd

      The local IT team is working on fixing the userids and usernames, but I am not sure if this is the source of the problem,

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://992572]
Approved by davido
[Corion]: Meh. I'm now on Firefox 57 ("Quantum") and again have to remove Pocket, and reinstall the adblocker, uMatrix (because NoScript doesn't work) and silence the about:blank page to not download crap from the internet
[Corion]: Maybe I shouldn't update software ...
[ambrus]: Corion: my guess is to first read the start of the file to check what format it is out of two or more possibilities, then rewind it and handle it differently depending on the program
[ambrus]: s/program/format/
[Dumu]: ambrus: it's about testing a file for being multiple possible file formats
[ambrus]: In particular, you might want to detect the encoding of a HTML file from between utf-16 versus ascii-based and encoding given in a META tag.
[ambrus]: Dumu: it should probably be safe to change the encoding if you rewind first with seek $file, 0, 0 first
[Dumu]: ambrus: good guess. I'm trying to contribute to a CPAN module, and the existing tests assume they're looking at text files
[Dumu]: ambrus: thank you. I was seeking afterwards. I'll seek first.
[jedikaiti]: Hello, Dumu!

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2017-11-20 17:53 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (290 votes). Check out past polls.