views:

1915

answers:

2

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)

A: 

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.

Ólafur Waage
Thanks for this, but sadly, c5-testing doesn't have it either. Might have to use the RPM, but man, what a nightmare.
Kyle
Tony Miller
A: 

I am running CentOS 5.3. The PHP that is included already has the Posix functions built in. You may or may not have found the introdctory documentation for the POSIX functions (which indicate that these functions are not available in Windows). Have you tried using a particular function and it didn't work?


    <?php print_r(posix_uname()) ?>

in its own file works for me.

Tony Miller
Yes, 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.
Kyle