install perl module Net::SSLeay through cpan

旧时模样 提交于 2019-12-03 17:30:41

问题


I have tried to install Net::SSLeay though cpan to install Email::Send::SMTP::TLS but I am getting the following error.

cpan[5]> install Net::SSLeay
Running install for module 'Net::SSLeay'
Running make for M/MI/MIKEM/Net-SSLeay-1.49.tar.gz
  Has already been unwrapped into directory /home/ubuntu/.cpan/build/Net-SSLeay-1.49-VDZ57t
Could not make: Unknown error
Running make test
  Can't test without successful make
Running make install
  Make had returned bad status, install seems impossible

回答1:


On ubuntu, try

sudo apt-get install libnet-ssleay-perl
sudo apt-get install libcrypt-ssleay-perl



回答2:


In Ubuntu 12.04

sudo apt-get install libssl-dev

This resolved the issue for me




回答3:


On Centos, here's my solution:

sudo yum install perl perl-CPAN perl-Net-SSLeay perl-IO-Socket-SSL



回答4:


Try running through the process on your own manually. From the CPAN prompt:

  1. type look Net::SSLeay to go into a shell in the unpacked directory
  2. perl Makefile.PL
  3. make
  4. make test
  5. make install

If there is a "README" or "INSTALL" file, try reading those too. If you come across any errors, you can append your question and maybe someone can help.




回答5:


Centos 6.5:

yum install perl-Net-SSLeay



回答6:


On Arch Linux: pacman -S perl-net-ssleay




回答7:


Try to install both dependencies listed below. It should solve the issue that you have.

sudo apt-get install libnet-ssleay-perl
sudo apt-get install libio-socket-ssl-perl


来源:https://stackoverflow.com/questions/12750662/install-perl-module-netssleay-through-cpan

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!