Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does one easily add posix support to PHP using yum?

Tags:

I am running CentOS 5.2 and using yum to manage packages. I have had little luck installing php-posix but know with almost 100% certitude that it is a real and available package...somewhere. Has anyone had luck installing it?

FWIW, I am using the following:

sudo yum install -y php-posix

Update: I've realized that this may be an issue with my host (Slicehost) as I do in fact have cli, posix, and pcntl enabled for my PHP version (5.2.9)

like image 780
Kyle Avatar asked Jun 17 '09 17:06

Kyle


2 Answers

While the question was for centos, notice that for fedora the php-posix package is provided by php-process from fedora 11. I assume this change also will hit centos at some point.

like image 96
hlovdal Avatar answered Sep 27 '22 21:09

hlovdal


You can try and see if it's in the testing repository.

To see if it's in that repository.

yum --disablerepo=\* --enablerepo=c5-testing list available \*php\*

And to install it.

yum --enablerepo=c5-testing install php-posix

Be aware though, that the PHP version it needs may be higher than you currently have.

like image 44
Ólafur Waage Avatar answered Sep 27 '22 20:09

Ólafur Waage