我正在安装perl模块“WWW :: Curl :: Easy”,但它也出现了错误我也是通过fource安装使用但是它得到了同样的错误。为什么会发生这种情况,请帮助我。
我在cpan中使用了这些命令 perl -MCPAN -e shell 强制安装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
答案 0 :(得分:2)
我使用它并安装" WWW :: Curl :: Easy"没有任何错误的模块
apt-get install libwww-curl-perl
答案 1 :(得分:0)
告诉你问题
找到所需的外部依赖项bin:curl-config ... missing。
无法解决的外部依赖性缺失。请安装'curl-config'
单独再试一次。
所以安装curl-config然后再试一次。始终检查依赖项。 安装curl-config方法取决于操作系统。
对于Redhat,例如它将是
yum install curl
答案 2 :(得分:0)
在Red Hat上尝试:
yum install curl curl-devel
仅安装curl对我不起作用。