无法安装CPAN模块

时间:2013-01-26 17:54:54

标签: perl module cpan

我正在尝试安装CPAN模块Statistics :: ChiSquare。我在Windows 7机器上运行Strawbwerry perl和Padre。首先我安装了cpan.pm.然后尝试安装模块,但出现以下错误:

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.

由于

1 个答案:

答案 0 :(得分:3)

对于Windows,您必须在命令行上使用双引号:

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

或只是

cpan Statistics::ChiSquare