简体   繁体   English

安装nginx失败的CentOS

[英]installing nginx failed CentOS

I got following error while installing nginx on CentOs 6.i googled but could not do anything. 我在CentOs 6.i上安装nginx时遇到以下错误但是谷歌无法做任何事情。

   Error: Package: nginx-1.4.6-1.el6.ngx.x86_64 (nginx)
   Requires: libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit)

How to find a library installed by which package. 如何查找由哪个包安装的库。

# whereis libcrypto.so

libcrypto: /usr/lib64/libcrypto.so libcrypto:/usr/lib64/libcrypto.so

# rpm -qf /usr/lib64/libcrypto.so

openssl-devel-xxxx.x86_64 OpenSSL的-devel的-xxxx.x86_64

Now run blow command: 现在运行blow命令:

# yum install openssl-devel

You need the cryptography library called: libcrypto.so.10 您需要名为libilibpto.so.10的加密库

If you install openssl it will add the libcrypto library 如果你安装openssl,它将添加libcrypto库

yum install openssl

OPENSSL_1.0.1_EC is provided by the stock openssl libraries. OPENSSL_1.0.1_EC由stock openssl库提供。

objdump -p /usr/lib64/libcrypto.so.10 

Version definitions:
1 0x01 0x0af47420 libcrypto.so.10
2 0x00 0x0af47420 libcrypto.so.10
3 0x00 0x066a2b21 OPENSSL_1.0.1
4 0x00 0x02b21533 OPENSSL_1.0.1_EC

so that could mean you do not use the original libraries. 这可能意味着你不使用原始库。 Maybe ptudor's? 也许是ptudor的? https://www.ptudor.net/linux/openssl/ https://www.ptudor.net/linux/openssl/

He drops openssl-1.0.1e/version.map.fips-ec entirely but do not want to include the version export. 他完全删除openssl-1.0.1e / version.map.fips-ec但不想包含版本导出。 https://github.com/ptudor/centos6-openssl/issues/4 https://github.com/ptudor/centos6-openssl/issues/4

If so you can still fix it by rebuilding those ptudor library this way 如果是这样,您仍然可以通过这种方式重建这些ptudor库来解决它

--- openssl-1.0.1e-version.patch        2014-06-06 11:52:55.772046103 +0200
+++ new_openssl-1.0.1e-version.patch    2014-06-06 11:52:40.854045438 +0200
@@ -61,4 +61,12 @@
 +          _original*;
 +          _current*;
 +};
++OPENSSL_1.0.1_EC {
++    global:
++           EC*;
++};

Or else you can also rebuild the package that cannot be install now and link that to your custom openssl library. 或者您也可以重建现在无法安装的软件包并将其链接到您的自定义openssl库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM