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:

    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