本文介绍了安装 oAuth PECL 错误:无法安装,通道“pecl.php.net"的 php_dir;当前用户不可写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在 OS X 上安装 oAuth,但在终端中出现此错误:
I'm trying to instal oAuth on OS X, but I am getting this error in the Terminal:
无法安装,当前用户无法写入频道pecl.php.net"的php_dir
如何允许它可写?
推荐答案
首先找出 php_dir 在哪里.您可以使用config-get"命令执行此操作:
First find out where the php_dir is. You can do this by using the 'config-get' command:
pecl config-get php_dir
在此之后,您可以:
更改该文件夹(以及任何需要的子文件夹)的所有权
Change the ownership of that folder (and any needed child folders)
sudo chown
或
将 php_dir 设置为不同的文件夹
Set the php_dir to a different folder
pecl config-set php_dir/path/to/new/dir
这篇关于安装 oAuth PECL 错误:无法安装,通道“pecl.php.net"的 php_dir;当前用户不可写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!