When I try to run a simple perl6 script on MSYS2-64
(bash.exe) on Windows 7 it says:
Could not open my-perl6-script.pl. Failed to stat file: no such file or directory
The same script runs perfectly fine on CMD.exe
so I guess it's some incompatibility between perl6 and MSYS2.
$ perl6 -v
returns:
This is Rakudo Star version 2018.04.1 built on MoarVM version 2018.04.1 implementing Perl 6.c.
The bin folder of perl6 is:
-rwxr-xr-x 1 win7 None 537938 May 11 2015 libgcc_s_sjlj-1.dll
-rw-r--r-- 1 win7 None 130262 May 7 2018 libmoar.dll.a
-rwxr-xr-x 1 win7 None 57681 May 11 2015 libwinpthread-1.dll
-rwxr-xr-x 1 win7 None 6633702 May 7 2018 moar.dll
-rwxr-xr-x 1 win7 None 57225 May 7 2018 moar.exe
-rw-r--r-- 1 win7 None 104 May 7 2018 nqp.bat
-rw-r--r-- 1 win7 None 104 May 7 2018 nqp-m.bat
lrwxrwxrwx 1 win7 None 23 Jun 19 2018 perl6 -> /c/rakudo/bin/perl6.exe
-rw-r--r-- 1 win7 None 242 May 7 2018 perl6.bat
lrwxrwxrwx 1 win7 None 23 Jun 19 2018 perl6.exe -> /c/rakudo/bin/perl6.bat
-rw-r--r-- 1 win7 None 248 May 7 2018 perl6-debug-m.bat
-rw-r--r-- 1 win7 None 242 May 7 2018 perl6-m.bat
It doesn't matter if I run the script using perl6, perl6.exe or perl6.bat; they all give the same error. I'd like to run perl6 scripts on MSYS2-64
. What should I do? Thanks
perl6.bat
that is the Perl script to be executed. Then I tried giving the full path of the script and then it worked. So the problem is now (supposedly):perl6.bat
can't get the path correctly. – Oxacmd "/c perl6 --version"
with the bash. – Oxa.bat
or.sh
files with/
instead of\
in them or vice-versa? Maybe stackoverflow.com/search?q=%5Bperl6%5D+bash helps? (If so, please let us know.) If no one else replies soon here on SO then I recommend you file an issue at github.com/rakudo/rakudo/issues/new with MSYS2 and Windows 7 in the title, linking to this SO, and giving whatever details you can about your setup, what you've tried, and what progress you've made. That will get a fresh set of eyes on the problem. – Unroot