Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: cygwin, perl5.10, INSTALLSITESCRIPT

by Boldra (Deacon)
on Sep 25, 2008 at 09:03 UTC ( [id://713602]=note: print w/replies, xml ) Need Help??


in reply to Re: cygwin, perl5.10, INSTALLSITESCRIPT
in thread cygwin, perl5.10, INSTALLSITESCRIPT

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).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://713602]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-19 20:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found