0

I am trying to install a CPAN module Statistics::ChiSquare. I am running Strawbwerry perl and Padre on my Windows 7 machine. First I installed cpan.pm. An then tried to install the module, but got the following error:

C:\Windows\System32>cpan App::cpanminus

C:\Windows\System32>perl -MCPAN -e 'install Statistics::ChiSquare'
Set up gcc environment - 4.4.3
Can't find string terminator "'" anywhere before EOF at -e line 1.

Thanks

user466663
  • 815
  • 4
  • 18
  • 40

1 Answers1

3

For Windows, you have to use double quotes on the command line:

perl -MCPAN -e "install Statistics::ChiSquare"

or simply

cpan Statistics::ChiSquare
brian d foy
  • 129,424
  • 31
  • 207
  • 592
Gilles Quénot
  • 173,512
  • 41
  • 224
  • 223
  • Thanks. It worked! However I have another issue. Padre couldn't find this module. When I searched it was not part of @INC. Instead it was still under C:\.cpanm. Thanks – user466663 Jan 26 '13 at 18:56
  • See http://stackoverflow.com/questions/5806126/how-to-change-inc-in-strawberry-perl – Gilles Quénot Jan 26 '13 at 18:59