如何使用 yum 轻松地将 posix 支持添加到 PHP?

2022-01-13 00:00:00 yum posix packages centos php

我正在运行 CentOS 5.2 并使用 yum 来管理软件包.我在安装 php-posix 时运气不佳,但几乎 100% 确信它是一个真实且可用的软件包……在某个地方.有人安装成功了吗?

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,我正在使用以下内容:

FWIW, I am using the following:

sudo yum install -y php-posix

更新: 我已经意识到这可能是我的主机 (Slicehost) 的问题,因为我确实为我的 PHP 版本 (5.2.9) 启用了 cli、posix 和 pcntl

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)

推荐答案

你可以试试看是否在测试库中.

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*

然后安装它.

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

但请注意,它所需的 PHP 版本可能比您当前拥有的更高.

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

相关文章