gpt4 book ai didi

php - 使用 sudo : Registry directory is still not writeable by the current user. 为什么?

转载 作者:可可西里 更新时间:2023-10-31 22:52:48 26 4
gpt4 key购买 nike

我正在尝试运行:

sudo pecl channel-update pecl.php.net

因为每次我尝试安装一个包时,它都会提示我运行它。但是,当我运行这些命令时,我得到:“当前用户无法写入注册表目录” 现在 this question非常相似,但建议使用 sudo已经在做。当我运行 sudo whoami 时,我得到了 root。这可能与http://pear.php.net有关吗?下降?

最佳答案

我遇到了完全相同的问题(在我的 Mac Book 上),我是这样解决的:

我使用以下步骤重新安装了 PEAR:http://jason.pureconcepts.net/2012/10/install-pear-pecl-mac-os-x/

安装 PEAR(与 PECL 捆绑在一起)后,我的 PECL 命令再次起作用。

关于php - 使用 sudo : Registry directory is still not writeable by the current user. 为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34090450/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com