Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/perl/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在linux上安装Crypt::SSLeay时出错_Linux_Perl_Ssl_Openssl - Fatal编程技术网

在linux上安装Crypt::SSLeay时出错

在linux上安装Crypt::SSLeay时出错,linux,perl,ssl,openssl,Linux,Perl,Ssl,Openssl,因此,我正在尝试安装带有SSL的Apache,包括Apache Openssl和SSLeay。我已经完成了Apache2和Openssl,我知道在安装SSLeay时遇到了困难。在所有命令都失败之后,我得到了perl Makefile.PL perl Makefile.PL Found multiple possibilities for OpenSSL /opt/ssl (OpenSSL 0.9.8r) /usr (OpenSSL 0.9.8p) Whic

因此,我正在尝试安装带有SSL的Apache,包括Apache Openssl和SSLeay。我已经完成了Apache2和Openssl,我知道在安装SSLeay时遇到了困难。在所有命令都失败之后,我得到了
perl Makefile.PL

perl Makefile.PL    
Found multiple possibilities for OpenSSL
      /opt/ssl (OpenSSL 0.9.8r)
      /usr (OpenSSL 0.9.8p)
    Which SSL install path do you want to use? [/opt/ssl]

build information

================================================

ssl library: OpenSSL 0.9.8r in /opt/ssl
ssl header:  openssl/ssl.h
libraries:   -L/opt/ssl/lib -lssl -lcrypto -lgcc
include dir: -I/opt/ssl/include

================================================

Note (probably harmless): No library found for -lgcc
Writing Makefile for Crypt::SSLeay
The test suite can attempt to connect to public servers
to ensure that the code is working properly. If you are
behind a strict firewall or have no network connectivity,
these tests may fail (through no fault of the code).
Do you want to run the live tests (y/N)? [N]
我选择/usr安装是因为我安装了openssl-devel,因为我查看并发现需要openssl-devel。所以我安装了openssl-devel

rpm -qi openssl
Name        : openssl                      Relocations: (not relocatable)
Version     : 0.9.8a                            Vendor: SUSE LINUX Products GmbH, Nuernberg, Germany
Release     : 18.36                         Build Date: Mon 27 Jul 2009 03:55:03 PM CEST
Install Date: Mon 18 Jan 2010 10:42:42 AM CET      Build Host: deacon.suse.de
Group       : Productivity/Networking/Security   Source RPM: openssl-0.9.8a-18.36.src.rpm
Size        : 2998754                          License: BSD 3-Clause
Signature   : DSA/SHA1, Mon 27 Jul 2009 03:57:14 PM CEST, Key ID a84edae89c800aca
Packager    : http://bugs.opensuse.org
URL         : http://www.openssl.org/
Summary     : Secure Sockets and Transport Layer Security


rpm -qi openssl-devel
Name        : openssl-devel                Relocations: (not relocatable)
Version     : 0.9.8p                            Vendor: PLD
Release     : 1                             Build Date: Fri 19 Nov 2010 12:24:41 PM CET

Install Date: Wed 05 Oct 2011 03:47:56 PM CEST      Build Host: x86-64.titanium.pld-linux.org
Group       : Development/Libraries         Source RPM: openssl-0.9.8p-1.src.rpm
Size        : 2003899                          License: Apache-like
Signature   : (none)
Packager    : PLD
URL         : http://www.openssl.org/
Summary     : Development part of OpenSSL Toolkit libraries
Description :<br/>
Development part of OpenSSL library.
Distribution: PLD Titanium
我认为原因是perl找不到openssl devel库,如果是,我如何链接它以便找到它


提前感谢万能的ob

如果找不到库,通常会出现
未定义符号
错误。这看起来更像是找到了图书馆,但不喜欢。您是否可能尝试将32位openssl与64位perl一起使用,或者反之亦然?

为什么不使用为您的发行版预构建的版本

$ sudo yum install perl-Crypt-SSLeay

(或类似的东西)

您对软件的各个部分感到困惑

在openSUSE和相关发行版上,只需
sudo zypper安装apache2
。apachehttpdv2已经包含一个名为mod_ssl的OpenSSL绑定;此命令将自动安装所有必要的依赖项,以便通过SSL提供内容,包括OpenSSL库。不需要编译任何东西

SSLeay是perlhttp客户端堆栈的一部分。它非常适合通过SSL访问远程服务器上其他人的内容。这与您想要的正好相反,但是如果您仍然想要它,请首先安装包
perl LWP-Protocol-https
。同样,这将自动引入所需的依赖项,包括
perl-Net-SSLeay


要添加通常与Apache web服务器结合使用的Perl内容,请添加存储库,然后还安装包
apache2-mod_-apreq2
apache2-mod_-Perl
libapreq2
Perl-apache2-Request
Crypt::SSLeay
,我需要解决很多问题。重做
Makefile.PL
就是其中之一。总有一天,我会去做的。同时,如果您的发行版提供了预打包版本,请使用预打包版本。如果“yast”也可以,我不想花时间安装yum
$ sudo yum install perl-Crypt-SSLeay