How does one easily add posix support to PHP using yum?
Solution 1
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.
Solution 2
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.
Solution 3
This work for me where I have problem with symfony.
I Hope work for you. thanks
Kyle
doing something new now. previously head of engineering for Parade (yourparade.com) from launch to $140m+, cofounded 2 companies before that
Updated on April 18, 2020Comments
-
Kyle about 4 years
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)
-
Kyle about 15 yearsThanks for this, but sadly, c5-testing doesn't have it either. Might have to use the RPM, but man, what a nightmare.
-
Tony Miller about 15 yearsYes. The URL is: dev.centos.org/centos/5/CentOS-Testing.repo which you can (as root) cd /etc/yum.repos.d && wget dev.centos.org/centos/5/CentOS-Testing.repo
-
Kyle about 15 yearsYes, I'm using CentOS 5.2 (Final) and PHP v5.2.9 with cli, pcntl, and posix enabled - yet none of the posix functions are defined.
-
Frosty Z almost 13 yearsOn RHEL 5: you will have to install package php53 since only a package php53-process exists. On RHEL 6: php-process is directly available.
-
Frosty Z almost 13 yearsYou can as well use the "Remi Collet" repository blog.famillecollet.com/pages/English-site-introduction to get php-process for PHP 5.3 (for EL5 or EL6).
-
sberder over 12 yearsI personally like using the IUS community repository, this repository was created by rackspace guys ans is well maintained with a lot of lamp related packages (php52, php53, mysql50, mysql51, mysql55, etc). As mentioned by @hlovdal,
php-process
will installphp-posix
. -
BenMorel about 11 yearsThat is the correct answer. On Amazon Linux,
php-process
andphp54-process
(for PHP 5.4) provide POSIX functions. -
alex.pilon about 11 yearsFor CentOS 6.4 POSIX functions can be added by installing php-process. I was just trying to get phpsh to work with php 5.4 on CentOS 6.4 and this thread lead me to this solution.
-
m3nda about 9 yearswhat about the epel-repo? it's plenty of software.
-
Alvin Bunk about 8 yearsThank you! I had to use
yum install php70u-process
since I have php 7.0 installed.