문제

I installed

On Windows 7 64-bit OS
ActivePerl 64bit 
Version 5.16.3.1603
on D disk as D:/perl64

I controlled Windows path, it is OK.

D:\perl64\site\bin; D:\perl64\bin;

When I open Git Bash commander and enter

ppm install DBI

or

ppm install DBD::mysql

It gives the error;

Can't locate ActivePerl/PPM/limited_inc.pm in @INC (@INC contains:
  /usr/lib/perl5/5.8.8/msys /usr/lib/perl5/5.8.8
  /usr/lib/perl5/site_perl/5.8.8/msys /usr/lib/perl5/site_perl/5.8.8
  /usr/lib/perl5/site_perl .) at /d/perl64/bin/ppm line 4. BEGIN
  failed--compilation aborted at /d/perl64/bin/ppm line 4.

I couldn't find any help or tutorial

도움이 되었습니까?

해결책

You're not using ActivePerl. You're using msys's Perl. Presumably, it comes first in the path. You'll need to modify your path or edit ppm.bat to load the correct Perl.

다른 팁

To add to @ikegami 's answer, msys has perl installed inside the /bin (or /usr/bin ) folder.

perl.exe, perl5.8.8.exe, msys-perl5_8.dll, perldoc etc..

Move these files to a backup folder, i.e. msys_perl

  • cd /bin
  • mkdir msys_perl
  • mv *perl* msys_perl/

(or you can delete them if you don't need them.)

Now msys' Perl installation won't conflict with your ActiveState Perl version.

You might also need to copy perl.exe from your ActiveState Perl bin directory /c/Perl64/bin/perl.exe to /usr/bin/, to avoid getting bad interpreter: No such file or directory error message since ppm reads from /usr/bin/perl

  • cp /c/Perl64/bin/perl.exe /usr/bin/
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top