本文介绍了安装oAuth PECL错误:无法安装,php_dir为通道“pecl.php.net”不能由当前用户写入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在OS X上安装oAuth,但我在终端中收到此错误:

如何允许它可写? p>

解决方案

首先找出php_dir在哪里。您可以使用config-get命令:



pecl config-get php_dir



之后您可以:




  • 更改该文件夹的所有权和任何所需的子文件夹)



    sudo chown< username& < php_dir>







  • 将php_dir设置为其他文件夹



    pecl config-set php_dir / path / to / new / dir



I'm trying to instal oAuth on OS X, but I am getting this error in the Terminal:

How do I allow it to be writable?

解决方案

First find out where the php_dir is. You can do this by using the 'config-get' command:

pecl config-get php_dir

After this you can either:

  • Change the ownership of that folder (and any needed child folders)

    sudo chown <username> <php_dir>

or

  • Set the php_dir to a different folder

    pecl config-set php_dir /path/to/new/dir

这篇关于安装oAuth PECL错误:无法安装,php_dir为通道“pecl.php.net”不能由当前用户写入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-20 10:22
查看更多