Re: go-pear!
| From: | Tomas V.V.Cox | Date: | Mon, 25 Mar 2002 07:34:21 +0000 |
| Subject: | Re: go-pear! | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5094@lists.php.net to get a copy of this message | ||
"Stig S. Bakken" wrote:
>
> On Sun, 2002-03-24 at 18:44, Mika Tuupola wrote:
> > On Sun, 24 Mar 2002, Martin Jansen wrote:
> >
> > > BTW: I'm not sure, if /usr/bin/pear should be the default
> > > location for the PEAR "binary": Working in /usr/bin will
> > > require root access on a lot of machines and there are a
> > > lot of people who don't have root access (but normal shell
> > > access) on their machines.
> >
> > Even when you have root access IMO the place should
> > be /usr/local/bin/pear.
>
> Come on guys, you can do better than that:
php-config
> --prefix/bin.
^^^-> can't?
Oh, php-config, why the hell I didn't notice that command before? Oh oh,
it's even under php4/pear/scripts/! :-) Well perhaps I should use this
php-config instead of the ugly thing I'm doing now in go-pear:
prefix=$(type -p php | perl -pe 's/\/bin\/php//; s/\//\\\//g')
Also if there is no 'php-config' command it would mean that the users
did compile his php with --without-pear. Umm, well, I guess that even
with --without-pear the PEAR installer could work if the user use "pear
-d php_dir=foo -s" no?
Tomas V.V.Cox