PEAR registry, where are you?

Posted on 2008-05-19 15:19:13 EEST.

I wrote this simple script to clear my local pear setup and to have clean pear instalation for Midgard.

apt-get remove php-pear
rm -rf /usr/share/php/PEAR
rm /root/.pearrc
rm -rf /etc/pear
rm -rf /tmp/pear
apt-get -y install php-pear

So, when I cleaned my pear ,imagine, how much confused I was when I saw this in my terminal:

MIDGARD SETUP: Role_Web - installed: 1.1.1 available: 1.1.1

wtf?

pear list-files pearified/role_web
Installed Files For pearified/role_web
======================================
Type Install Path
php  /usr/share/php/PEAR/Installer/Role/Web.php
php  /usr/share/php/PEAR/Installer/Role/Web.xml
php  /usr/share/php/Pearified/Role/Web/setup.php

ls -l /usr/share/php/PEAR/Installer/Role/Web.php
ls: /usr/share/php/PEAR/Installer/Role/Web.php: No such file or directory

PEAR registry...where are you?

Updated: I found registry and channel files under /usr/share/php. So on debian these two lines must be added additionally:

rm -rf /usr/share/php/.registry 
rm -rf /usr/share/php/.channels

Back

Layout Copyright © 2006 Finnish Teleservice Center Ltd Oy - Site Powered by Midgard CMS