След обновяване на системата от CentOS 6.6 до версия 6.7 спря да се зарежда локално инсталираният Apache сървър:
[root@angie-desktop ~]# httpd
httpd: Syntax error on line 221 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/php.conf: Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: symbol SSLeay_version, version OPENSSL_1.0.1 not defined in file libcrypto.so.10 with link time reference
|
Проверката показа, че ред 221 на /etc/httpd/conf/httpd.conf е:
Include conf.d/*.conf
|
който насочва към ред 6 на /etc/httpd/conf.d/php.conf:
LoadModule php5_module modules/libphp5.so
|
Проблемната библиотека е от IUS хранилището:
[root@angie-desktop ~]# rpm -qa |grep openssl10
openssl10-libs-1.0.1e-2.ius.centos6.i686
|
Трябва да заменим бъгававия пакет openssl10 с базовия openssl:
[root@angie-desktop ~]# yum search openssl
...
openssl-devel.i686 : Files for development of applications which will use OpenSSL
openssl-perl.i686 : Perl scripts provided with OpenSSL
openssl-static.i686 : Libraries for static linking of applications which will use OpenSSL
openssl10-debuginfo.i686 : Debug information for package openssl10
openssl10-devel.i686 : Files for development of applications which will use OpenSSL
openssl10-perl.i686 : Perl scripts provided with OpenSSL
openssl10-static.i686 : Libraries for static linking of applications which will use OpenSSL
...
openssl.i686 : A general purpose cryptography library with TLS implementation
openssl098e.i686 : A compatibility version of a general cryptography and TLS library
openssl10.i686 : Utilities from the general purpose cryptography library with TLS implementation
openssl10-libs.i686 : A general purpose cryptography library with TLS implementation
...
|
При опит за директна инсталация получаваме съобщение за конфликт с файловете на openssl10-libs:
[root@angie-desktop ~]# yum install openssl.i686
...
Resolving Dependencies
--> Running transaction check
---> Package openssl.i686 0:1.0.1e-42.el6 will be installed
--> Processing Dependency: make for package: openssl-1.0.1e-42.el6.i686
--> Running transaction check
---> Package make.i686 1:3.81-20.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================
Installing:
openssl i686 1.0.1e-42.el6 base 1.5 M
Installing for dependencies:
make i686 1:3.81-20.el6 C6.3-base 386 k
Transaction Summary
================================================================================================================================
Install 2 Package(s)
Total size: 1.9 M
Installed size: 4.9 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Check Error:
file /usr/lib/libcrypto.so.1.0.1e from install of openssl-1.0.1e-42.el6.i686 conflicts with file from package openssl10-libs-1.0.1e-2.ius.centos6.i686
file /usr/lib/libssl.so.1.0.1e from install of openssl-1.0.1e-42.el6.i686 conflicts with file from package openssl10-libs-1.0.1e-2.ius.centos6.i686
file /usr/lib/openssl/engines/lib4758cca.so from install of openssl-1.0.1e-42.el6.i686 conflicts with file from package openssl10-libs-1.0.1e-2.ius.centos6.i686
file /usr/lib/openssl/engines/libaep.so from install of openssl-1.0.1e-42.el6.i686 conflicts with file from package openssl10-libs-1.0.1e-2.ius.centos6.i686
file /usr/lib/openssl/engines/libatalla.so from install of openssl-1.0.1e-42.el6.i686 conflicts with file from package openssl10-libs-1.0.1e-2.ius.centos6.i686
file /usr/lib/openssl/engines/libcapi.so from install of openssl-1.0.1e-42.el6.i686 conflicts with file from package openssl10-libs-1.0.1e-2.ius.centos6.i686
file /usr/lib/openssl/engines/libchil.so from install of openssl-1.0.1e-42.el6.i686 conflicts with file from package openssl10-libs-1.0.1e-2.ius.centos6.i686
file /usr/lib/openssl/engines/libcswift.so from install of openssl-1.0.1e-42.el6.i686 conflicts with file from package openssl10-libs-1.0.1e-2.ius.centos6.i686
file /usr/lib/openssl/engines/libgmp.so from install of openssl-1.0.1e-42.el6.i686 conflicts with file from package openssl10-libs-1.0.1e-2.ius.centos6.i686
file /usr/lib/openssl/engines/libnuron.so from install of openssl-1.0.1e-42.el6.i686 conflicts with file from package openssl10-libs-1.0.1e-2.ius.centos6.i686
file /usr/lib/openssl/engines/libpadlock.so from install of openssl-1.0.1e-42.el6.i686 conflicts with file from package openssl10-libs-1.0.1e-2.ius.centos6.i686
file /usr/lib/openssl/engines/libsureware.so from install of openssl-1.0.1e-42.el6.i686 conflicts with file from package openssl10-libs-1.0.1e-2.ius.centos6.i686
file /usr/lib/openssl/engines/libubsec.so from install of openssl-1.0.1e-42.el6.i686 conflicts with file from package openssl10-libs-1.0.1e-2.ius.centos6.i686
|
При опит за заместване на проблемният пакет с базовия получаваме съобщение, че той не е инсталиран (?!):
[root@angie-desktop ~]# yum replace openssl10-libs-1.0.1e-2.ius.centos6.i686 --replace-with=openssl.i686
Loaded plugins: fastestmirror, refresh-packagekit, replace, security
Replacing packages takes time, please be patient...
Error: Package 'openssl10-libs-1.0.1e-2.ius.centos6.i686' is not installed.
|
Явно има някакво разминаване в базата данни на пакетите, затова използваме опциите --justdb и --nodeps, след което инсталацията протича успешно:
[root@angie-desktop ~]# rpm -e --justdb --nodeps openssl10-libs-1.0.1e-2.ius.centos6.i686
[root@angie-desktop ~]# yum install openssl
...
Installing : openssl-1.0.1e-42.el6.i686 1/1
Verifying : openssl-1.0.1e-42.el6.i686 1/1
Installed:
openssl.i686 0:1.0.1e-42.el6
Complete!
|
Успех!
Източници:
Коментари
Публикуване на коментар