Question

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

Was it helpful?

Solution

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.

OTHER TIPS

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/
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top