Re: Best practice for multiple pear installations?
| From: | Jan Wagner | Date: | Wed, 27 Jul 2005 12:22:48 +0000 |
| Subject: | Re: Best practice for multiple pear installations? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20163@lists.php.net to get a copy of this message | ||
> what is a good/best practive to handle multiple PEAR installations?
Funny thing is, I tried just that today ;-)
> Currently on my system there's the system-wide installation from the
> debian package in /usr/share/php .
>
> Using go-pear I already created my own repository,
> /data/www/webroot/pear and by calling /data/www/webroot/pear/bin/pear it
> worked quite well. Now a few weeks alter, just calling
> /data/www/webroot/pear/bin/pear revealed that it was not using my new
> repository but reverted to the default system wide which I don't want.
That is how I do it, almost. Save your old /usr/bin/pear and ~/.pearrc
before installing go-pear into your webroot. Then move the new .pearrc
to webroot and call webroot/pear/bin/pear
-c /wherever/you/moved/your/new/.pearrc. Move your saved /usr/bin/pear
and .pearrc back (I think the debian package uses /etc/pear/pear.conf
for the default /usr/bin/pear, so no .pearrc should be there). That
works fine here.
Cheers Jan