0

我已经非常努力地找出问题所在,我尝试使用命令进行安装sudo并仅使用cpanm命令。但无济于事。我已经在这个论坛上寻找答案。这是我使用权限运行cpanm命令时的结果:sudo

--> Working on WWW::Facebook::API
Fetching http://www.cpan.org/authors/id/U/UN/UNOBE/WWW-Facebook-API-0.4.18.tar.gz ... OK
Configuring WWW-Facebook-API-0.4.18 ... OK
==> Found dependencies: Crypt::SSLeay
--> Working on Crypt::SSLeay
Fetching http://www.cpan.org/authors/id/N/NA/NANIS/Crypt-SSLeay-0.72.tar.gz ... OK
Configuring Crypt-SSLeay-0.72 ... N/A
! Configure failed for Crypt-SSLeay-0.72. See ./work/1410459602.1732/build.log for details.
! Installing the dependencies failed: Module 'Crypt::SSLeay' is not installed
! Bailing out the installation for WWW-Facebook-API-0.4.18.

当我运行时也是一样的cpanm......我已经open-ssl安装了。但我似乎在一个无处可去的圈子里......任何建议将不胜感激

    Warning: prerequisite Crypt::SSLeay 0 not found.
    Checking if your kit is complete...
    Looks good
    Writing Makefile for WWW::Facebook::API
    Writing MYMETA.yml and MYMETA.json
    -> OK
    Checking dependencies from MYMETA.json ...
    Checking if you have Readonly 0 ... Yes (2.00)
    Checking if you have LWP::UserAgent 0 ... Yes (6.06)
    Checking if you have JSON::Any 0 ... Yes (1.36)
    Checking if you have version 0 ... Yes (0.9902)
    Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.66)
    Checking if you have Crypt::SSLeay 0 ... No
    Checking if you have Digest::MD5 0 ... Yes (2.52)
    Checking if you have Time::HiRes 0 ... Yes (1.9725)
    ==> Found dependencies: Crypt::SSLeay
    Searching Crypt::SSLeay on cpanmetadb ...
    --> Working on Crypt::SSLeay
    Fetching http://www.cpan.org/authors/id/N/NA/NANIS/Crypt-SSLeay-0.72.tar.gz
    -> OK
    Unpacking Crypt-SSLeay-0.72.tar.gz
    Entering Crypt-SSLeay-0.72
    Checking configure dependencies from META.json
    Checking if you have ExtUtils::CBuilder 0.280205 ... Yes (0.280210)
    Checking if you have Try::Tiny 0.19 ... Yes (0.19)
    Checking if you have Getopt::Long 0 ... Yes (2.39)
    Checking if you have Path::Class 0.26 ... Yes (0.33)
    Configuring Crypt-SSLeay-0.72
    Running Makefile.PL

(这里有一个信息摘录,而不是错误信息。)

openssl-version.c:2:30: fatal error: openssl/opensslv.h: No such file or directory
 #include <openssl/opensslv.h>
                              ^
compilation terminated.
Failed to build and link a simple executable using OpenSSL
-> N/A
-> FAIL Configure failed for Crypt-SSLeay-0.72. See ./.cpanm/work/1410459602.1732/build.log for details.
-> FAIL Installing the dependencies failed: Module 'Crypt::SSLeay' is not installed
-> FAIL Bailing out the installation for WWW-Facebook-API-0.4.18.

现在我很困惑,因为我已经open-ssl安装了。

4

1 回答 1

3

鉴于它抱怨缺少头文件并且您说您正在运行 Ubuntu,问题很可能是您没有安装 OpenSSL 的开发包。尝试安装 libssl-dev 看看是否有帮助。

于 2014-09-12T07:08:50.920 回答