Re: Install Package Fails
| From: | Kristian Koehntopp | Date: | Wed, 25 Sep 2002 12:38:46 +0000 |
| Subject: | Re: Install Package Fails | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-9487@lists.php.net to get a copy of this message | ||
On Wed, Sep 25, 2002 at 02:25:28PM +0200, Pierre-Alain Joye wrote:
> // The *nix cool way
> # php -r "include
> 'http://pear.php.net/go-pear';"
Excuse me?
p15104972:~ # php -r "include 'http://pear.php.net/go-pear';"
Error in argument 1, char 2: option not found r
Error in argument 1, char 2: option not found r
Usage: php [-q] [-h] [-s [-v] [-i] [-f <file>] | {<file> [args...]}
-q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-w Display source with stripped comments and whitespace.
-f <file> Parse <file>. Implies -q'
-v Version number
-C Do not chdir to the script's directory
-c <path> Look for php.ini file in this directory
-a Run interactively
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-z <file> Load Zend extension <file>.
-l Syntax check only (lint)
-m Show compiled in modules
-i PHP information
-h This help
p15104972:~ # php -v
4.2.3
> # lynx -source http://pear.php.net/go-pear | php
..
[ basically all ok ]
./zend_execute.c(1727) : Freeing 0x0856628C (12 bytes), script=-
Last leak repeated 26 times
./zend_execute.c(1730) : Freeing 0x08558B84 (15 bytes), script=-
zend_variables.c(111) : Actual location (location was relayed)
Last leak repeated 26 times
But as a user I get
kris@p15104972:/home/www/servers/vvv.koehntopp.de/php > pear help
bash: /usr/bin/pear: bad interpreter: Permission denied
kris@p15104972:/home/www/servers/vvv.koehntopp.de/php > which pear
/usr/bin/pear
kris@p15104972:/home/www/servers/vvv.koehntopp.de/php > head -1 !!
head -1
hich pear
#!/usr/bin/php -Cq
kris@p15104972:/home/www/servers/vvv.koehntopp.de/php > ls -l /usr/bin/php
-rwxr-xr-x 1 root root 2063372 Sep 21 18:04 /usr/bin/php
kris@p15104972:/home/www/servers/vvv.koehntopp.de/php > /usr/bin/php -v
4.2.3
I need to install into this directory, and as this user a copy of pear (each
vhost gets a separate copy of PEAR so that I can upgrade independently
without breaking a thing).
Kristian
--
http://www.amazon.de/exec/obidos/wishlist/18E5SVQ5HJZXG