Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using sudo: Registry directory is still not writeable by the current user. Why?

Tags:

php

pear

pecl

I'm trying to run:

sudo pecl channel-update pecl.php.net

Because every time I try and install a package it prompts me to run this instead. But when I run those commands I get: "Registry directory is not writeable by the current user" Now this question is very similar but suggests using sudo which I'm already doing. When I run sudo whoami I'm getting root. Could this be related to http://pear.php.net going down?

like image 561
wesman16 Avatar asked Dec 04 '15 14:12

wesman16


1 Answers

I had exactly the same problem (on my Mac Book), this is how I solved it:

I did a reinstall of PEAR using the following steps: http://jason.pureconcepts.net/2012/10/install-pear-pecl-mac-os-x/

After the installation of PEAR (which is bundled with PECL) my PECL commands did work again.

like image 192
joeni Avatar answered Sep 30 '22 18:09

joeni