RE: [PEAR] Re: help required with pear on debian

From: Date: Wed, 15 Feb 2006 13:01:29 +0000
Subject: RE: [PEAR] Re: help required with pear on debian
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22980@lists.php.net to get a copy of this message
Hi guys, Me again! On Saturday I thought I'd installed pear on my debian box. I never got round to testing until this morning when my script told me I had a pear problem (via a db->query() error message. I do not seem to be able to run the 'pear' command. If I type 'which pear' I get /usr/local/bin/pear Now /usr/local/bin/pear is a file, not a directory and it doesn't do anything. Typing 'more pear' gives me: ====================================================================== #!/bin/sh # first find which PHP binary to use if test "x$PHP_PEAR_PHP_BIN" != "x"; then PHP="$PHP_PEAR_PHP_BIN" else if test "/usr/local/bin/php" = '@'php_bin'@'; then PHP=php else PHP="/usr/local/bin/php" fi fi # then look for the right pear include dir if test "x$PHP_PEAR_INSTALL_DIR" != "x"; then INCDIR=$PHP_PEAR_INSTALL_DIR INCARG="-d include_path=$PHP_PEAR_INSTALL_DIR" else if test "/usr/local/lib/php" = '@'php_dir'@'; then INCDIR=dirname $0 INCARG="" else INCDIR="/usr/local/lib/php" INCARG="-d include_path=/usr/local/lib/php" fi fi exec $PHP -C -q $INCARG -d output_buffering=1 $INCDIR/pearcmd.php "$@" ====================================================================== Can anyone help me solve my problem? For info I have ssh access via PuTTY, and there is no windowing environment on the server. Cheers George > -----Original Message----- > From: Paul Scott [mailto:pscott@uwc.ac.za] > Sent: 11 February 2006 2:00 pm > To: Michael Rasmussen > Cc: pear-general@lists.php.net > Subject: Re: [PEAR] Re: help required with pear on debian > > > On Sat, 2006-02-11 at 14:36 +0100, Michael Rasmussen wrote: > > > Can anyone tell me how I can get PEAR sorted? > > 1) open a terminal > > 2) enter this command: su - > > 3) enter root's password when asked > > 4) enter this command: apt-get install php-pear > > I would be careful installing pear from the apt sources. Depending on > which sources you use, I have found many broken packages. > > Also, in the above example, you need to specify *which* php-pear to get, > i.e. php5-pear or php4-pear. > > If I were you, I would install pear manually: > > 1. Open a terminal > 2. su > 3. enter password ******* > 4. mkdir /usr/share/pear > 5. apt-get install lynx > 6. lynx -source http://go-pear.org/ | php > > --Paul > > -- > PEAR General Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.pear.general (#22980) next »