在Windows平台使用Git Bash + Mingw编译第三方源码库的出现的这个错误:
Can‘t locate Pod/Text.pm in @INC (you may need to install the Pod::Text module) (@INC contains: . /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at (eval 5) line 1. BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/Pod/Usage.pm line 30. Compilation failed in require at configdata.pm line 15492. BEGIN failed--compilation aborted at configdata.pm line 15492. Compilation failed in require. BEGIN failed--compilation aborted.
在系统中搜索Pod,发现Git的安装目录下有个perl5目录:C:\Program Files\Git\usr\lib\perl5;
进到C:\Program Files\Git\usr\lib\perl5\vendor_perl\Pod目录,发现目录下是没有这个Usage.pm;
系统安装的Perl路径:C:\Strawberry\perl\lib\Pod下存在大量.pm文件;
于是就想,copy过去试试呗;
真行!