Unless the install script is suing to another user during the install, the problem is not that I don't have write access to /usr/bin. My workaround was to change the value of INSTALLSITESCRIPT to /usr/bin_00, and then move the files after the make install. Since the files are now happily installed in /usr/bin, I must have write access...

No I suspect that because cygwin is doing some dark magic linking /usr/bin to /bin, somewhere along the line there's some code like:

if( not -d $dir ) { mkdir($dir) or die("can't create $dir because you don't have write p +ermission") }
and that -d test is failing because /usr/bin isn't really truly a directory.

Interestingly, if I change the Makefile to point to /usr/bin_00 and then install, the install works ok, even twice. So for some reason the install is not trying to create /usr/bin_00 the second time (even if I delete the scripts installed).


In reply to Re^2: cygwin, perl5.10, INSTALLSITESCRIPT by Boldra
in thread cygwin, perl5.10, INSTALLSITESCRIPT by Boldra

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.