LINUX.ORG.RU
ФорумAdmin

Ошибка при sudo pecl install apc

 , ,


0

1

Привет, помогите разобраться нубо-юзеру.

Сервер CentOs связка под управлением ISPmanager - Apache + Nginx + PHP Cgi + MySql + Memcache

-bash-3.2# sudo pecl install apc
downloading APC-3.1.9.tgz ...
Starting to download APC-3.1.9.tgz (155,540 bytes)
.................................done: 155,540 bytes
54 source files, building
running: phpize
Cannot find build files at '/usr/lib64/php/build'. Please check your PHP installation.

ERROR: `phpize' failed

После этого понятное дело нужно юзать sudo yum install php-devel php-pear httpd-devel так как нету пакетов разработчика.

-bash-3.2# sudo yum install php-devel php-pear httpd-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.de.leaseweb.net
 * epel: mirror.de.leaseweb.net
 * extras: mirror.de.leaseweb.net
 * ius: ftp.astral.ro
 * rpmforge: mirror.de.leaseweb.net
 * updates: mirror.de.leaseweb.net
Excluding Packages in global exclude list
Finished
Excluding Packages from Red Hat Enterprise Linux 5 - x86_64 - ATrpms
Finished
Setting up Install Process
Package 1:php-pear-1.9.1-1.el5.noarch already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package httpd-devel.i386 0:2.2.23-3.el5 set to be updated
--> Processing Dependency: httpd = 2.2.23-3.el5 for package: httpd-devel
--> Processing Dependency: apr-util-devel for package: httpd-devel
--> Processing Dependency: apr-devel for package: httpd-devel
---> Package httpd-devel.x86_64 0:2.2.23-3.el5 set to be updated
---> Package php-devel.i386 0:5.2.17-24.el5 set to be updated
--> Processing Dependency: php = 5.2.17-24.el5 for package: php-devel
--> Processing Dependency: autoconf for package: php-devel
--> Processing Dependency: automake for package: php-devel
---> Package php-devel.x86_64 0:5.2.17-24.el5 set to be updated
--> Running transaction check
---> Package apr-devel.x86_64 0:1.4.6-1.el5 set to be updated
--> Processing Dependency: apr = 1.4.6-1.el5 for package: apr-devel
---> Package apr-util-devel.x86_64 0:1.4.1-1.el5 set to be updated
--> Processing Dependency: apr-util = 1.4.1-1.el5 for package: apr-util-devel
--> Processing Dependency: openldap-devel for package: apr-util-devel
--> Processing Dependency: db4-devel for package: apr-util-devel
--> Processing Dependency: expat-devel for package: apr-util-devel
---> Package autoconf.noarch 0:2.59-12 set to be updated
--> Processing Dependency: imake for package: autoconf
---> Package automake.noarch 0:1.9.6-2.3.el5 set to be updated
--> Processing Dependency: httpd = 2.2.21-3.el5 for package: mod_ssl
---> Package httpd.x86_64 0:2.2.23-3.el5 set to be updated
--> Processing Dependency: httpd-tools = 2.2.23-3.el5 for package: httpd
---> Package php.x86_64 0:5.2.17-24.el5 set to be updated
--> Processing Dependency: php-cli = 5.2.17-24.el5 for package: php
--> Processing Dependency: php-common = 5.2.17-24.el5 for package: php
--> Running transaction check
---> Package apr.x86_64 0:1.4.6-1.el5 set to be updated
--> Processing Dependency: apr-util = 1.3.9-1.el5 for package: apr-util-ldap
---> Package apr-util.x86_64 0:1.4.1-1.el5 set to be updated
---> Package db4-devel.x86_64 0:4.3.29-10.el5_5.2 set to be updated
---> Package expat-devel.x86_64 0:1.95.8-11.el5_8 set to be updated
--> Processing Dependency: expat = 1.95.8-11.el5_8 for package: expat-devel
---> Package httpd-tools.x86_64 0:2.2.23-3.el5 set to be updated
---> Package imake.x86_64 0:1.0.2-3 set to be updated
---> Package mod_ssl.x86_64 1:2.2.23-3.el5 set to be updated
---> Package openldap-devel.x86_64 0:2.3.43-25.el5_8.1 set to be updated
--> Processing Dependency: openldap = 2.3.43-25.el5_8.1 for package: openldap-devel
--> Processing Dependency: cyrus-sasl-devel >= 2.1 for package: openldap-devel
---> Package php-cli.x86_64 0:5.2.17-24.el5 set to be updated
---> Package php-common.x86_64 0:5.2.17-24.el5 set to be updated
--> Running transaction check
---> Package apr-util-ldap.x86_64 0:1.4.1-1.el5 set to be updated
---> Package cyrus-sasl-devel.x86_64 0:2.1.22-7.el5_8.1 set to be updated
--> Processing Dependency: cyrus-sasl-lib = 2.1.22-7.el5_8.1 for package: cyrus-sasl-devel
---> Package expat.x86_64 0:1.95.8-11.el5_8 set to be updated
---> Package openldap.i386 0:2.3.43-25.el5_8.1 set to be updated
---> Package openldap.x86_64 0:2.3.43-25.el5_8.1 set to be updated
--> Running transaction check
--> Processing Dependency: cyrus-sasl-lib = 2.1.22-5.el5_4.3 for package: cyrus-sasl
--> Processing Dependency: cyrus-sasl-lib = 2.1.22-5.el5_4.3 for package: cyrus-sasl-md5
--> Processing Dependency: cyrus-sasl-lib = 2.1.22-5.el5_4.3 for package: cyrus-sasl-plain
---> Package cyrus-sasl-lib.i386 0:2.1.22-7.el5_8.1 set to be updated
---> Package cyrus-sasl-lib.x86_64 0:2.1.22-7.el5_8.1 set to be updated
--> Running transaction check
---> Package cyrus-sasl.x86_64 0:2.1.22-7.el5_8.1 set to be updated
---> Package cyrus-sasl-md5.x86_64 0:2.1.22-7.el5_8.1 set to be updated
---> Package cyrus-sasl-plain.x86_64 0:2.1.22-7.el5_8.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package               Arch        Version                   Repository    Size
================================================================================
Installing:
 httpd-devel           i386        2.2.23-3.el5              CentALT      145 k
 httpd-devel           x86_64      2.2.23-3.el5              CentALT      145 k
 php-devel             i386        5.2.17-24.el5             CentALT      555 k
 php-devel             x86_64      5.2.17-24.el5             CentALT      555 k
Installing for dependencies:
 apr-devel             x86_64      1.4.6-1.el5               CentALT      180 k
 apr-util-devel        x86_64      1.4.1-1.el5               CentALT       75 k
 autoconf              noarch      2.59-12                   base         647 k
 automake              noarch      1.9.6-2.3.el5             base         476 k
 cyrus-sasl-devel      x86_64      2.1.22-7.el5_8.1          updates      1.4 M
 db4-devel             x86_64      4.3.29-10.el5_5.2         base         2.0 M
 expat-devel           x86_64      1.95.8-11.el5_8           updates      129 k
 imake                 x86_64      1.0.2-3                   base         319 k
 openldap-devel        x86_64      2.3.43-25.el5_8.1         updates      3.1 M
 php                   x86_64      5.2.17-24.el5             CentALT      1.2 M
 php-cli               x86_64      5.2.17-24.el5             CentALT      2.3 M
 php-common            x86_64      5.2.17-24.el5             CentALT      280 k
Updating for dependencies:
 apr                   x86_64      1.4.6-1.el5               CentALT      103 k
 apr-util              x86_64      1.4.1-1.el5               CentALT       80 k
 apr-util-ldap         x86_64      1.4.1-1.el5               CentALT       14 k
 cyrus-sasl            x86_64      2.1.22-7.el5_8.1          updates      1.2 M
 cyrus-sasl-lib        i386        2.1.22-7.el5_8.1          updates      126 k
 cyrus-sasl-lib        x86_64      2.1.22-7.el5_8.1          updates      130 k
 cyrus-sasl-md5        x86_64      2.1.22-7.el5_8.1          updates       47 k
 cyrus-sasl-plain      x86_64      2.1.22-7.el5_8.1          updates       27 k
 expat                 x86_64      1.95.8-11.el5_8           updates       77 k
 httpd                 x86_64      2.2.23-3.el5              CentALT      1.3 M
 httpd-tools           x86_64      2.2.23-3.el5              CentALT       67 k
 mod_ssl               x86_64      1:2.2.23-3.el5            CentALT       90 k
 openldap              i386        2.3.43-25.el5_8.1         updates      298 k
 openldap              x86_64      2.3.43-25.el5_8.1         updates      306 k

Transaction Summary
================================================================================
Install      16 Package(s)
Upgrade      14 Package(s)

Total size: 17 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test


Transaction Check Error:
  file /etc/httpd/conf.d/php.conf from install of php-5.2.17-24.el5.x86_64 conflicts with file from package php52-5.2.17-2.ius.el5.x86_64
  file /usr/lib64/httpd/modules/libphp5.so from install of php-5.2.17-24.el5.x86_64 conflicts with file from package php52-5.2.17-2.ius.el5.x86_64
  file /usr/bin/phpize from install of php-devel-5.2.17-24.el5.i386 conflicts with file from package php52-cli-5.2.17-2.ius.el5.x86_64
  file /etc/php.ini from install of php-common-5.2.17-24.el5.x86_64 conflicts with file from package php52-common-5.2.17-2.ius.el5.x86_64
  file /usr/lib64/php/modules/json.so from install of php-common-5.2.17-24.el5.x86_64 conflicts with file from package php52-common-5.2.17-2.ius.el5.x86_64
  file /usr/lib64/php/modules/zip.so from install of php-common-5.2.17-24.el5.x86_64 conflicts with file from package php52-common-5.2.17-2.ius.el5.x86_64
  file /usr/bin/php from install of php-cli-5.2.17-24.el5.x86_64 conflicts with file from package php52-cli-5.2.17-2.ius.el5.x86_64
  file /usr/bin/php-cgi from install of php-cli-5.2.17-24.el5.x86_64 conflicts with file from package php52-cli-5.2.17-2.ius.el5.x86_64

Error Summary
-------------


Заранее спасибо.

Судошиться из-под рута — это, однако, сильно.

По сабжу: обновите ядро PHP, оно там устарело немного и конфликтует.

spyro
()

file /etc/httpd/conf.d/php.conf from install of php-5.2.17-24.el5.x86_64 conflicts with file from package php52-5.2.17-2.ius.el5.x86_64

у тебя проблема с версиями.

dada ★★★★★
()
Ответ на: комментарий от spyro

Да знаю что судо это вызов rootовских прав, уже чисто машинально ввёл ;)

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.