Just tried to emerge PEAR-PEAR and PEAR-DB on my server (these packages are ~x86). PEAR-PEAR installs fine, although with some error messages. PEAR-DB fails, stating it can't write to /usr/share/php (php_dir). As root, I can write there with no problem, don't know if this is a sandbox issue. >>> Install PEAR-DB-1.7.6-r1 into /var/tmp/portage/PEAR-DB-1.7.6-r1/image/ category dev-php WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update Cannot install, php_dir for channel "pear.php.net" is not writeable by the current user I'll post the whole PEAR-DB (plus the end of PEAR-PEAR) as an attachment.
Created attachment 78081 [details] PEAR-DB emerge output
http://forums.gentoo.org/viewtopic-t-426711-start-0-postdays-0-postorder-asc-highlight-pear+portage.html
This problem is not reproducible, the solution mentioned in the forums is definitely not correct. If you installed/upgraded pear packages manually using 'pear install' or 'pear upgrade', then you are basically on your own, we don't support this. It appears that your local pear install is severely messed up. Unmerge *all* pear ebuilds, wipe remaining contents of /usr/share/php and /etc/pear.conf and reinstall required pear ebuilds then.
*** Bug 125326 has been marked as a duplicate of this bug. ***
(In reply to comment #3) > If you installed/upgraded pear packages manually using 'pear install' or 'pear > upgrade', then you are basically on your own, we don't support this. Pear was not installed prior to today. The error reported in Bug 125326 occured after following emerges: * emerge '=dev-lang/php-4*' * emerge PEAR-Log - new emerges of PEAR-PEAR, PEAR-DB Therefore I suggest this might be an issue for others.
This issue should be solved by using dev-php/PEAR-PEAR-1.4.8 which is available through the PHP Overlay at http://svn.gnqs.org/projects/gentoo-php-overlay. Upgrading to PEAR-1.4.8 solved similar issues for other users.
just installed on ubuntu 10.04 i downgraded to 5.2 php so hit this error, fixed it by running: sudo pear update-channels (In reply to comment #0) > Just tried to emerge PEAR-PEAR and PEAR-DB on my server (these packages are > ~x86). > PEAR-PEAR installs fine, although with some error messages. > PEAR-DB fails, stating it can't write to /usr/share/php (php_dir). As root, I > can write there with no problem, don't know if this is a sandbox issue. > > >>> Install PEAR-DB-1.7.6-r1 into /var/tmp/portage/PEAR-DB-1.7.6-r1/image/ category dev-php > WARNING: channel "pear.php.net" has updated its protocols, use "channel-update > pear.php.net" to update > Cannot install, php_dir for channel "pear.php.net" is not writeable by the > current user > > > I'll post the whole PEAR-DB (plus the end of PEAR-PEAR) as an attachment. >