postfix – 无法安装Perl Crypt :: OpenSSL :: RSA模块,请帮忙

前端之家收集整理的这篇文章主要介绍了postfix – 无法安装Perl Crypt :: OpenSSL :: RSA模块,请帮忙前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我花了几个小时但无法安装CPAN Crypt :: OpenSSL :: RSA模块.它是Postfix的dkimproxy附加组件所必需的.

我所做的是在shell中运行以下命令:

$perl -MCPAN -e’安装Crypt :: OpenSSL :: RSA’

当我运行此命令时,显示几行,最后显示

Checking if your kit is complete...
Looks good
Warning: prerequisite Crypt::OpenSSL::Random 0 not found.
Writing Makefile for Crypt::OpenSSL::RSA
---- Unsatisfied dependencies detected during [I/IR/IROBERTS/Crypt-OpenSSL-RSA-0.26.tar.gz] -----
    Crypt::OpenSSL::Random
Shall I follow them and prepend them to the queue
of modules we are processing right now? [yes]

然后我按Enter(是)和生成错误的数十行.最后我得到了这个:

...
...
RSA.xs:579: warning: implicit declaration of function ‘RSA_sign’
RSA.xs:579: error: ‘rsaData’ has no member named ‘hashMode’
RSA.xs:579: error: ‘rsaData’ has no member named ‘hashMode’
RSA.xs:579: error: ‘rsaData’ has no member named ‘rsa’
RSA.xs: In function ‘XS_Crypt__OpenSSL__RSA_verify’:
RSA.xs:605: error: ‘rsaData’ has no member named ‘rsa’
RSA.xs:610: error: ‘rsaData’ has no member named ‘hashMode’
RSA.xs:611: warning: implicit declaration of function ‘RSA_verify’
RSA.xs:611: error: ‘rsaData’ has no member named ‘hashMode’
RSA.xs:613: error: ‘rsaData’ has no member named ‘hashMode’
RSA.xs:616: error: ‘rsaData’ has no member named ‘rsa’
RSA.xs:619: warning: implicit declaration of function ‘ERR_peek_error’
RSA.xs: In function ‘boot_Crypt__OpenSSL__RSA’:
RSA.xs:214: warning: implicit declaration of function ‘ERR_load_crypto_strings’
make: *** [RSA.o] Error 1
  /usr/bin/make  -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status,install seems impossible

我究竟做错了什么?请指导我.谢谢.

解决方法

刚刚在CentOS 5.4上遇到过这个问题
我没有安装openssl-devel!所以运行:

yum install openssl-devel

为我修好了

或者如果你正在使用基于debian的东西:

sudo apt-get install libssl-dev

原文链接:https://www.f2er.com/Perl/172392.html

猜你在找的Perl相关文章