This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Path trouble w. Perl using B20.1


It looks to me that your perl executable doesn't recognize cygwin mounts.  I bet it is looking for d:/kol/perl/perltest and not c:/kol/perl/perltest.  '/' is
probably in relation to the current drive 'd:'.

There is a cygwin port of perl available which should work properly..

John Fortin

"Karl L." wrote:

> Path trouble w. Perl using B20.1
> X-Mailer: VM 6.74 under Emacs 19.34.6
>
> Hi there,
>
> I am trying to start using the CygWin user tools as my new command
> line environment on Windows NT 4.0, but I am having severe trouble
> getting simple access to my perl scripts. They all work find when I
> run them from the C: drive, which is mounted on /, but whenever I try
> to run them from any other drives (mounted to /d, /e etc) it
> fails. See below for a simple test case and system data.
>
> Any advice?
>
> klillevold:~> perltest
> OK!
> klillevold:~> cd /d
> klillevold:/d> perltest
> Can't open perl script "/kol/perl/perltest": No such file or directory
> klillevold:~> ls -l /kol/perl/perltest
> -rwxr-xr-x   1 0        everyone       36 Dec  1 11:15 /kol/perl/perltest*
> klillevold:/d> perl /kol/perl/perltest
> Can't open perl script "/kol/perl/perltest": No such file or directory
> klillevold:/d> perl c:/kol/perl/perltest
> OK!
>
> /usr/bin/perl.exe is a symbolic link to /Misc/perl/bin/perl.exe
>
> klillevold:~> env
> [snip]
> HOME=/kol
> PATH=/cygnus/CYGWIN~1/H-I586~1/bin:/WINNT/system32:/WINNT:/kol/devbin:/kol/dosbin:/gnu/emacs-19.34/bin:/kol/perl:/bldtools:/Python:/bldtools/bin:/Misc/Perl/bin:
>
> perltest:
> #!/usr/bin/perl
> print "OK!\n";
>
> Mount table:
> Device           Directory           Type        Flags
> g:               /g                  native      text!=binary
> f:               /f                  native      text!=binary
> e:               /e                  native      text!=binary
> d:               /d                  native      text!=binary
> C:               /                   native      text!=binary
>
> perl version:
> Binary build 522 provided by ActiveState Tool Corp.
> http://www.ActiveState.com
> Built 09:52:28 Nov  2 1999
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]