Strawberry Perl - 错误消息:此包需要 C 编译器
Strawberry Perl - Error Message: This package requires a C compiler
我有 Strawberry Perl May 2016 (5.24.0) 32 位 PortableZIP 版本。我只是解压缩了它;其他方面没有变化。
当我想用 cpan 安装模块时,出现以下错误:
C:\Fhem\perl\bin>cpan -i Net::SSLeay
Loading internal null logger. Install Log::Log4perl for logging messages
CPAN: CPAN::SQLite loaded ok (v0.211)
Database was generated on Tue, 13 Dec 2016 13:41:47 GMT
Running install for module 'Net::SSLeay'
CPAN: LWP::UserAgent loaded ok (v6.15)
CPAN: Time::HiRes loaded ok (v1.9733)
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/M/MI/MIKEM/Net-SSLeay-1.78.tar.gz
CPAN: YAML::XS loaded ok (v0.62)
CPAN: Digest::SHA loaded ok (v5.95)
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/M/MI/MIKEM/CHECKSUMS
CPAN: Compress::Zlib loaded ok (v2.069)
Checksum for C:\Fhem\cpan\sources\authors\id\M\MI\MIKEM\Net-SSLeay-1.78.tar.gz ok
CPAN: Archive::Tar loaded ok (v2.06)
CPAN: File::Temp loaded ok (v0.2304)
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: Parse::CPAN::Meta loaded ok (v1.4417)
CPAN: CPAN::Meta loaded ok (v2.150005)
CPAN: Module::CoreList loaded ok (v5.20160507)
Configuring M/MI/MIKEM/Net-SSLeay-1.78.tar.gz with Makefile.PL
Unresolvable missing external dependency.
This package requires a C compiler.
NA: Unable to build distribution on this platform.
No 'Makefile' created MIKEM/Net-SSLeay-1.78.tar.gz
C:\Fhem\perl\bin\perl.exe Makefile.PL -- NOT OK
Stopping: 'install' failed for 'Net::SSLeay'.
似乎没有找到编译器。我必须怎么做才能解决这个问题?
可能您是直接从命令提示符 运行ning perl 和 cpan?
你应该阅读分发中 README.txt
文件的内容,它告诉你 运行
c:\myperl\portableshell.bat
在使用任何实用程序之前
我希望您清楚必须将 c:\myperl
更改为您解压缩分发包的文件夹
解压缩的卷的三个子目录需要在 PATH
中才能正常工作,.bat
文件会临时为您设置这些子目录。如果你想要更永久的东西,那么 README.txt
文件解释了如何做到这一点,但你可能应该 运行 一个正确安装的版本
我有 Strawberry Perl May 2016 (5.24.0) 32 位 PortableZIP 版本。我只是解压缩了它;其他方面没有变化。
当我想用 cpan 安装模块时,出现以下错误:
C:\Fhem\perl\bin>cpan -i Net::SSLeay
Loading internal null logger. Install Log::Log4perl for logging messages
CPAN: CPAN::SQLite loaded ok (v0.211)
Database was generated on Tue, 13 Dec 2016 13:41:47 GMT
Running install for module 'Net::SSLeay'
CPAN: LWP::UserAgent loaded ok (v6.15)
CPAN: Time::HiRes loaded ok (v1.9733)
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/M/MI/MIKEM/Net-SSLeay-1.78.tar.gz
CPAN: YAML::XS loaded ok (v0.62)
CPAN: Digest::SHA loaded ok (v5.95)
Fetching with LWP:
http://cpan.strawberryperl.com/authors/id/M/MI/MIKEM/CHECKSUMS
CPAN: Compress::Zlib loaded ok (v2.069)
Checksum for C:\Fhem\cpan\sources\authors\id\M\MI\MIKEM\Net-SSLeay-1.78.tar.gz ok
CPAN: Archive::Tar loaded ok (v2.06)
CPAN: File::Temp loaded ok (v0.2304)
CPAN: CPAN::Meta::Requirements loaded ok (v2.140)
CPAN: Parse::CPAN::Meta loaded ok (v1.4417)
CPAN: CPAN::Meta loaded ok (v2.150005)
CPAN: Module::CoreList loaded ok (v5.20160507)
Configuring M/MI/MIKEM/Net-SSLeay-1.78.tar.gz with Makefile.PL
Unresolvable missing external dependency.
This package requires a C compiler.
NA: Unable to build distribution on this platform.
No 'Makefile' created MIKEM/Net-SSLeay-1.78.tar.gz
C:\Fhem\perl\bin\perl.exe Makefile.PL -- NOT OK
Stopping: 'install' failed for 'Net::SSLeay'.
似乎没有找到编译器。我必须怎么做才能解决这个问题?
可能您是直接从命令提示符 运行ning perl 和 cpan?
你应该阅读分发中 README.txt
文件的内容,它告诉你 运行
c:\myperl\portableshell.bat
在使用任何实用程序之前
我希望您清楚必须将 c:\myperl
更改为您解压缩分发包的文件夹
解压缩的卷的三个子目录需要在 PATH
中才能正常工作,.bat
文件会临时为您设置这些子目录。如果你想要更永久的东西,那么 README.txt
文件解释了如何做到这一点,但你可能应该 运行 一个正确安装的版本