Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

cpanm installation problems with mixed case files

by LanX (Saint)
on Mar 16, 2019 at 22:59 UTC ( [id://1231344]=perlquestion: print w/replies, xml ) Need Help??

LanX has asked for the wisdom of the Perl Monks concerning the following question:

Hi

I'm having a (not very dramatic) installation problem with Emacs::PDE

The author decided to host this project, which is basically a bunch of lisp modules plus some Perl helpers on CPAN.

Now the installation fails on windows with a weird "permission denied" and no "proper Makefile.PL/Build.PL":

>cpanm Emacs::PDE --> Working on Emacs::PDE Fetching http://www.cpan.org/authors/id/Y/YE/YEWENBIN/Emacs-PDE-0.2.16 +.tar.gz ... OK Could not open file 'C:\Users\ROLFLA~1\.cpanm\work\1552775378.16224\Em +acs-PDE-0.2.16\lisp\templates\TEMPLATE.makefile.tpl': Permission deni +ed at C:\Perl_524\site\bin/cpanm line 33. Could not extract 'Emacs-PDE-0.2.16/lisp/templates/TEMPLATE.makefile.t +pl' at C:\Perl_524\site\bin/cpanm line 33. Configuring Emacs-PDE-0.2.16 ... N/A ! The distribution doesn't have a proper Makefile.PL/Build.PL See C:\U +sers\ROLFLA~1\.cpanm\work\1552775378.16224\build.log for details.

When looking into the work directory I notice that large parts of the tar.gz wasn't unpacked.

I checked on linux-vm and all files where available there.

BUT when looking into the directory Emacs-PDE-0.2.16\lisp\templates I noticed two identical files with differing capitalization:

  • TEMPLATE.makefile.tpl
  • TEMPLATE.Makefile.tpl *

    Obviously an OS problem, windows acts case insensitive while case matters on linux.

    But I'm a bit stunned.

    Questions:

    • why permission denied?
    • shouldn't the error message be more explicit?
    • if the extractions fils, why does cpanm still continue to try the installation?
    • is there a general policy regarding files and case in cpan-modules?
    • should there be one?
    • would it make sense if CPAN testers test for such ambiguities?
    Many questions, but I don't know which is the right address to inform about this kind problems.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

    *) NB: it's only a coincidence that they are called "makefile", nothing to do with the CPAN installer.

    update

    FWIW this bug was already reported 5 years ago: https://rt.cpan.org/Public/Bug/Display.html?id=94065

  • Replies are listed 'Best First'.
    Re: cpanm installation problems with mixed case files
    by syphilis (Archbishop) on Mar 17, 2019 at 01:58 UTC
      why permission denied?

      If TEMPLATE.Makefile.tpl has already been extracted and is readonly, then an attempt to open a file named TEMPLATE.makefile.tpl for writing would create the "permission denied" error.
      If TEMPLATE.Makefile.tpl is not readonly, then that open command will clobber the existing content, but leave the filename as (the original) "TEMPLATE.Makefile.tpl".

      I haven't checked whether that behaviour is relevant to what you're seeing.

      Cheers,
      Rob
    Re: cpanm installation problems with mixed case files
    by Marshall (Canon) on Mar 17, 2019 at 16:05 UTC
      I have no idea if this will help you or not, but the April 2018 update of Windows 10 included the ability to make directories case sensitive on a directory by directory basis. Example command: fsutil.exe file setCaseSensitiveInfo C:\folder enable makes "folder" case sensitive. As a caveat, I have never used this feature. An article from howtogeek is here: how-to-enable-case-sensitive-folders-on-windows-10
        Thanks but I already got it installed manually. :)

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

    Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Domain Nodelet?
    Node Status?
    node history
    Node Type: perlquestion [id://1231344]
    Approved by NetWallah
    Front-paged by NetWallah
    help
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others musing on the Monastery: (6)
    As of 2024-03-28 10:38 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found