MSYS2 - yuki-kimoto/SPVM GitHub Wiki
MSYS2
Building pure MinGW 64bit environment for Perl.
Shell
Run MSYS2 MinGW 64bit
shell (Not MSYS2 MSYS
shell).
Update packman repository
pacman -Syu
Vim
pacman -S vim
Enable paste.
vim ~/.vimrc
set mouse-=a
From Copy and Paste from Vim
gcc
By this, gcc
command uses /mingw64/bin/gcc
pacman -S mingw-w64-x86_64-toolchain
gcc
which gcc
make
Use mingw32-make
by make
command.
vim ~/.bashrc
alias make='mingw32-make'
perl
Install mingw-w64-x86_64-perl
. By this, perl
command uses /mingw64/bin/perl
.
pacman -S mingw-w64-x86_64-perl
perl -v
which perl
cpanm
cpan App::cpanminus
Git
pacman -S git
FAQ
MSYS2 MinGW 64bit
shell.
Perl onliners does not work well on Yes, it is. You will have problems perl -pi
and new line(CRLF).
If you run Perl oneliners, you should open MSYS2 MSYS
shell.
C:/msys64/msys2.exe
Why are the strings of a program compiled with msys2 MinGW 64-bit garbled when output to the console?
I still don't know why. However, if I change the codepage to UTF-8, UTF-8 is output correctly.
chcp.com 65001
Perl Local Warning
In Perl 5.38, the following warning is displayed if LC_ALL
environment is not set.
Locale 'Japanese_Japan.932' is unsupported, and may crash the interpreter.
Set LC_ALL
environment variable to C
.
export LC_ALL=C
This will be fixed in the future Perl release.
Installation of Mojolicious failed
t/mojo/daemon.t ............................ # No tests run!
# Failed test 'No tests run for subtest "Minimal application"'
# at t/mojo/daemon.t line 36.
t/mojo/daemon.t ............................ 1/? IO::Poll::poll not implemented on this architecture at C:\msys64\home\kimot\.cpanm\work\1715129973.17512\Mojolicious-9.36\blib\lib/Mojo/Reactor/Poll.pm line 55.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 1.
t/mojo/daemon.t ............................ Dubious, test returned 255 (wstat 65280, 0xff00)
Intall the latest IO module.
cpanm IO
See
https://github.com/mojolicious/mojo/issues/2176
Installation of SPVM failed
See https://github.com/yuki-kimoto/SPVM/wiki/Installation#installation-failure