Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: cygwin, perl5.10, INSTALLSITESCRIPT

by rovf (Priest)
on Sep 25, 2008 at 08:08 UTC ( [id://713594]=note: print w/replies, xml ) Need Help??


in reply to cygwin, perl5.10, INSTALLSITESCRIPT

Why do you want to CREATE /usr/bin ?

I guess the "real" error message is the one with not having write permissions on /usr/bin. Do you have installed Cygwin on a network drive? In this case, I found that there occur often oddities relating to write permissions. Can you manually create a new file in /usr/bin?

-- 
Ronald Fischer <ynnor@mm.st>
  • Comment on Re: cygwin, perl5.10, INSTALLSITESCRIPT

Replies are listed 'Best First'.
Re^2: cygwin, perl5.10, INSTALLSITESCRIPT
by Boldra (Deacon) on Sep 25, 2008 at 09:03 UTC

    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://713594]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-25 11:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found