How does one easily add posix support to PHP using yum?(如何使用 yum 轻松地将 posix 支持添加到 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.
这篇关于如何使用 yum 轻松地将 posix 支持添加到 PHP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何使用 yum 轻松地将 posix 支持添加到 PHP?
基础教程推荐
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 如何替换eregi() 2022-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
