Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

need help installing pecl on centos 5.8

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

I have the latest stable releases of php-fpm, mysql, and nginx. Everything is working at 100%, everything is smooth. I'm running a live website with no problems. I just can't pecl to work.

yum install pcl

yum install php-pear: enter image description here

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

php-common = 5.1.6-32.el5 is needed

Much help is appreciated!

like image 200
user962449 Avatar asked Apr 08 '12 21:04

user962449


1 Answers

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

The dependency failures you got are stange. Probably because you have mixed installation of php-* 5.1 RPMs and php53-* 5.3 RPMs and get conflicts on devel files. You should do some clean up to keep only one set of RPMs for your target version, either 5.1 or 5.3.

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

Then you should be able to run pecl install apc

like image 87
Yves Martin Avatar answered Sep 21 '22 16:09

Yves Martin