Установите PHP на проблемы CentOS

0

У меня возникли проблемы с установкой PHP на Centos, используя yum install php

Может ли кто-нибудь помочь мне заставить его работать, если это возможно?

Вот что он говорит:

login as: root
root@**************** password:
Last login: Wed Jan 14 06:21:17 2015 from **************
[root@linuxvps ~]# yum install php
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirrors.coreix.net
 * extras: centos.serverspace.co.uk
 * updates: centos.hyve.com
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
The program yum-complete-transaction is found in the yum-utils package.
--> Running transaction check
---> Package php.x86_64 0:5.3.3-40.el6_6 will be installed
--> Processing Dependency: php-cli(x86-64) = 5.3.3-40.el6_6 for package: php-5.3.3-40.el6_6.x86_64
--> Finished Dependency Resolution
Error: Package: php-5.3.3-40.el6_6.x86_64 (updates)
           Requires: php-cli(x86-64) = 5.3.3-40.el6_6
           Installed: php-cli-5.4.36-1.el6.remi.x86_64 (@remi)
               php-cli(x86-64) = 5.4.36-1.el6.remi
           Available: php-cli-5.3.3-38.el6.x86_64 (base)
               php-cli(x86-64) = 5.3.3-38.el6
           Available: php-cli-5.3.3-40.el6_6.x86_64 (updates)
               php-cli(x86-64) = 5.3.3-40.el6_6
 You could try using --skip-broken to work around the problem
** Found 13 pre-existing rpmdb problem(s), 'yum check' output follows:
mysql-5.5.41-1.el6.remi.x86_64 has missing requires of real-mysql-libs(x86-64) = ('0', '5.5.41', '1.el6.remi')
mysql-server-5.1.73-3.el6_5.x86_64 has missing requires of mysql = ('0', '5.1.73', '3.el6_5')
php-bcmath-5.4.36-1.el6.remi.x86_64 has missing requires of php-common(x86-64) = ('0', '5.4.36', '1.el6.remi')
php-cli-5.4.36-1.el6.remi.x86_64 has missing requires of php-common(x86-64) = ('0', '5.4.36', '1.el6.remi')
php-gd-5.4.36-1.el6.remi.x86_64 has missing requires of php-common(x86-64) = ('0', '5.4.36', '1.el6.remi')
php-mbstring-5.4.36-1.el6.remi.x86_64 has missing requires of php-common(x86-64) = ('0', '5.4.36', '1.el6.remi')
php-mcrypt-5.4.36-1.el6.remi.x86_64 has missing requires of php-common(x86-64) = ('0', '5.4.36', '1.el6.remi')
php-mysql-5.4.36-1.el6.remi.x86_64 has missing requires of libmysqlclient.so.18()(64bit)
php-mysql-5.4.36-1.el6.remi.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_16)(64bit)
php-mysql-5.4.36-1.el6.remi.x86_64 has missing requires of libmysqlclient.so.18(libmysqlclient_18)(64bit)
php-pdo-5.4.36-1.el6.remi.x86_64 has missing requires of php-common(x86-64) = ('0', '5.4.36', '1.el6.remi')
php-tidy-5.4.36-1.el6.remi.x86_64 has missing requires of php-common(x86-64) = ('0', '5.4.36', '1.el6.remi')
php-xml-5.4.36-1.el6.remi.x86_64 has missing requires of php-common(x86-64) = ('0', '5.4.36', '1.el6.remi')
[root@linuxvps ~]#
Теги:
centos6.5

2 ответа

1
Лучший ответ

php является мета-пакетом. Он устанавливает все необходимые php-пакеты, такие как php-common, php-cli, php-mysql и т.д. Но вы добавили репозиторий в свои центры (обычно для установки более высокой версии php, чем предоставляет ваш centos), а remi не предоставляет этот метафайл php.

Поэтому, когда вы пытаетесь установить php, ваш centos пытается установить исходные пакеты, которые мешают вам, которые вы уже установили.

Решение. Не устанавливайте пакет метафайлов php, установите одноразовые пакеты remi. Поскольку они уже установлены, я не знаю, что вы даже пытаетесь сделать, потому что у вас уже установлен php.

ИЛИ

Удалите репозиторий и выполните обновление yum.

  • 0
    Этот спас мне жизнь. Спасибо большое Кари!
0

Поскольку это сообщение об ошибке выводится. PHP требует установки некоторых пакетов зависимостей.

Я вижу, что вам нужно включить php-cli в установку:

Использование:

yum install php php-cli

или

yum install php*

Ещё вопросы

Сообщество Overcoder
Наверх
Меню