Need help installing pecl on centos 5.8

So basically I'm trying to install APC, but I can't get pecl to work with Centos 5.8 i686

I have the latest stable versions of php-fpm, mysql and nginx. Everything works 100%, everything is smooth. I run the website without any problems. I just can't get it to work.

yum install pcl

yum install php-pear: enter image description here

Most of the packages I'm trying to install have dependency problems with php-common (whatever that is).

php-common = 5.1.6-32.el5 is needed 

Many thanks!

+6
source share
2 answers

/usr/bin/pecl is available from the php-pear package.

The dependency errors you received are volatile. Probably because you have a mixed installation of php-* 5.1 RPM and php53-* 5.3 RPM and there are conflicts in the devel files. You need to do some cleanup to save only one RPM set for your target version: 5.1 or 5.3.

You also need to install gcc , httpd-devel , php(53)-devel and finally php-pear to get phpize .

Then you can run pecl install apc

+6
source

First of all, make sure you have the distribution updated, you can do this with

Update

yum

Then check if you are using a third-party repo that contains these packages. If you can, remove all php packages with

yum remove php *

and try installing them again.

If you can't solve it, try Fedora EPEL repositories , which provide some updated packages.

All commands must be run with root.

0
source

Source: https://habr.com/ru/post/912700/


All Articles