【发布时间】:2021-12-03 14:19:00
【问题描述】:
我正在安装 perl 模块“WWW::Curl::Easy”,但出现错误,我也使用fource install,但出现相同的错误。为什么会这样,请帮帮我。
我在 cpan 中使用了这些命令 perl -MCPAN -e 外壳 强制安装 WWW::Curl::Easy
cpan[1]> force install WWW::Curl::Easy
Reading '/root/.cpan/Metadata'
Database was generated on Thu, 16 Feb 2017 05:17:02 GMT
Running install for module 'WWW::Curl::Easy'
Checksum for /root/.cpan/sources/authors/id/S/SZ/SZBALINT/WWW-Curl-4.17.tar.gz ok
Scanning cache /root/.cpan/build for sizes
............................................................................DONE
Configuring S/SZ/SZBALINT/WWW-Curl-4.17.tar.gz with Makefile.PL
Locating required external dependency bin:curl-config... missing.
Unresolvable missing external dependency.
Please install 'curl-config' seperately and try again.
NA: Unable to build distribution on this platform.
No 'Makefile' created SZBALINT/WWW-Curl-4.17.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
Failed during this command:
SZBALINT/WWW-Curl-4.17.tar.gz : writemakefile NO -- No 'Makefile' created
【问题讨论】:
-
请单独安装'curl-config'再试一次。
-
查看this。
-
谢谢大家,但我该如何安装'curl-config'?
-
请看贴出的答案
-
@Ganesh For ubuntu:
apt-get install curl-config, centOS:yum install curl-config。这取决于您使用的操作系统环境。尝试搜索如何在您使用的操作系统版本上安装软件包!