【问题标题】:Error installing in Net::SSLeay在 Net::SSLeay 中安装时出错
【发布时间】:2014-03-10 21:34:40
【问题描述】:

这里是安装的标准输出:

CPAN Terminal>  i Net::SSLeay

Installing Net::SSLeay (1.58)
Running [/usr/bin/perl /usr/bin/cpanp-run-perl /home/greymonkey/.cpanplus/5.14.2/build/Net-SSLeay-1.58/Makefile.PL INSTALLDIRS=site]...
*** Found OpenSSL-1.0.1e installed in /usr
*** Be sure to use the same compiler and options to compile your OpenSSL, perl,
    and Net::SSLeay. Mixing and matching compilers is not supported.
Do you want to run external tests?
These tests *will* *fail* if you do not have network connectivity. [n]
Checking if your kit is complete...
Looks good
Writing Makefile for Net::SSLeay
Writing MYMETA.yml
[ERROR] MAKE failed: No such file or directory cp lib/Net/SSLeay.pm blib/lib/Net/SSLeay.pm
AutoSplitting blib/lib/Net/SSLeay.pm (blib/lib/auto/Net/SSLeay)
blib/lib/Net/SSLeay.pm: some names are not unique when truncated to 8 characters:
cp lib/Net/SSLeay.pod blib/lib/Net/SSLeay.pod
cp lib/Net/SSLeay/Handle.pm blib/lib/Net/SSLeay/Handle.pm
/usr/bin/perl "-Iinc" /usr/share/perl/5.14/ExtUtils/xsubpp  -typemap /usr/share/perl/5.14/ExtUtils/typemap -typemap typemap  SSLeay.xs > SSLeay.xsc && mv SSLeay.xsc SSLeay.c
cc -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"1.58\" -DXS_VERSION=\"1.58\" -fPIC "-I/usr/lib/perl/5.14/CORE"   SSLeay.c
SSLeay.xs:153:25: fatal error: openssl/err.h: No such file or directory
compilation terminated.
make: *** [SSLeay.o] Error 1


[ERROR] Unable to create a new distribution object for 'Net::SSLeay' -- cannot continue

似乎缺少“openssl/err.h”,帮助我是 perl 新手。非常感谢。

【问题讨论】:

    标签: perl cpan


    【解决方案1】:

    啊,缺少 ssl 库的标头。我很容易得到开发包并解决了问题。

    sudo apt-get install libssl-dev
    

    【讨论】:

    • 这就是解决方案吗?
    • 谢谢!这适用于 ubuntu
    【解决方案2】:

    对于 Fedora/CentOS 用户:

    yum install openssl-devel
    

    编辑:正如其他人所说,缺少 OpenSSL 标头。在 Fedora/CentOS 上,这些头文件由 openssl-devel 包提供,因此应该安装它。

    【讨论】:

    • 虽然这可能会给出答案,但您能否对答案进行 xpand 并提供一些关于它失败的原因和缺少什么的评论?
    【解决方案3】:

    对于 Fedora 用户:

    yum groupinstall 'Development Tools' 'Development Libraries'
    
    yum install zlib-devel libyaml-devel openssl-devel gdbm-devel readline-devel ncurses-devel libffi-devel curl git openssh-server redis libxml2-devel libxslt-devel libcurl-devel libicu-devel python
    

    来源:https://fedoraproject.org/wiki/User:Axilleas/GitLab

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-11-27
      • 2020-06-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-10
      • 1970-01-01
      相关资源
      最近更新 更多