D
DJ Austin
Hi All,
I'm losing a lot of hair with this problem, and I hope some of you had
bumped into this problem before and can help me out.
I have 2 Windows XP machines. One desktop and one laptop. I installed
both cygwin (www.cygwin.com) and perl (www.activestate.com) late last
year (sometime in November 2002) on both computers, and everything
works fine.
My laptop disk went bad 2 weeks ago and I had to replace it and
reinstall XP, cygwin and perl. I went to cygwin.com and
activestate.com to install the latest version of both software.
My perl script that had never failed before fails now on my laptop. I
had isolated the problem to the following test case:
#!/usr/local/bin/perl
($dev, $ino, $mode, $nlink) = stat ('.') unless $nlink;
print "nlnk = $nlink\n";
print "dev = $dev\n";
print "ino = $ino\n";
print "mode = $mode\n";
The problem is: the nlink is always 1 no matter what directory/file I
stat.
Please note that the same test case above runs fine (as expected) on
my desktop. I notice that I have perl 5.6.1, and my laptop has 5.8.1,
so I uninstall 5.8.1 and install 5.6.1 thinking that it has conflict
with cygwin. Problem still exists. So, next step is to remove cygwin
and re-install it again thinking it was corrupted. No go.
Please note that when I install cygwin, I did not include perl, so I
know cygwin doesn't install perl, and my perl comes from
activestate.com installation.
I have searched the FAQ to no avail, and search on google returns a
lot of result but mostly on ctime/mtime issues.
Any help/pointer will be highly appreciated. Thanks in advance!
I'm losing a lot of hair with this problem, and I hope some of you had
bumped into this problem before and can help me out.
I have 2 Windows XP machines. One desktop and one laptop. I installed
both cygwin (www.cygwin.com) and perl (www.activestate.com) late last
year (sometime in November 2002) on both computers, and everything
works fine.
My laptop disk went bad 2 weeks ago and I had to replace it and
reinstall XP, cygwin and perl. I went to cygwin.com and
activestate.com to install the latest version of both software.
My perl script that had never failed before fails now on my laptop. I
had isolated the problem to the following test case:
#!/usr/local/bin/perl
($dev, $ino, $mode, $nlink) = stat ('.') unless $nlink;
print "nlnk = $nlink\n";
print "dev = $dev\n";
print "ino = $ino\n";
print "mode = $mode\n";
The problem is: the nlink is always 1 no matter what directory/file I
stat.
Please note that the same test case above runs fine (as expected) on
my desktop. I notice that I have perl 5.6.1, and my laptop has 5.8.1,
so I uninstall 5.8.1 and install 5.6.1 thinking that it has conflict
with cygwin. Problem still exists. So, next step is to remove cygwin
and re-install it again thinking it was corrupted. No go.
Please note that when I install cygwin, I did not include perl, so I
know cygwin doesn't install perl, and my perl comes from
activestate.com installation.
I have searched the FAQ to no avail, and search on google returns a
lot of result but mostly on ctime/mtime issues.
Any help/pointer will be highly appreciated. Thanks in advance!