如何使用 yum 轻松地将 posix 支持添加到 PHP? [英] How does one easily add posix support to PHP using yum?

查看:58
本文介绍了如何使用 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆