Home > Archive > PHP PEAR Questions and Answers > September 2005 > Re: [PEAR-QA] important task - test go-pear.php with PEAR 1.4.0
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: [PEAR-QA] important task - test go-pear.php with PEAR 1.4.0
|
|
| bertrand Gugger 2005-09-16, 7:56 am |
| Bonjour
Greg Beaver wrote:
>Hi all,
>
>Before Sunday, we need to get go-pear.php working with PEAR 1.4.0. I
>don't think it will involve many changes, but if people could test the
>existing one with PEAR 1.4.0, that would be a very good thing.
>
>Thanks,
>Greg
>
>
>
I just hope I've something wrong here:
[root@ancilla ~]# wget http://pear.php.net/go-pear.phar
--11:07:49-- http://pear.php.net/go-pear.phar
=> `go-pear.phar'
Resolving pear.php.net... 216.92.131.66
Connecting to pear.php.net|216.92.131.66|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 645,120 (630K) [text/plain]
100%[===================================
=>] 645,120 62.84K/s
ETA 00:00
11:08:00 (61.21 KB/s) - `go-pear.phar' saved [645120/645120]
[root@ancilla ~]# php5 go-pear.phar
Content-type: text/html
X-Powered-By: PHP/5.1.0RC2-dev
Below is a suggested file layout for your new PEAR installation. To
change individual locations, type the number in front of the
directory. Type 'all' to change all of them or simply press Enter to
accept these locations.
1. Installation base ($prefix) : /usr/local
2. Binaries directory : /usr/local/bin
3. PHP code directory ($php_dir) : $this->prefix/lib/php
4. Documentation directory : $this->prefix/lib/php/docs
5. Data directory : $this->prefix/lib/php/data
6. Tests directory : $this->prefix/lib/php/tests
7. Name of configuration file :
1-7, 'all' or Enter to continue:
Beginning install...
Configuration written to ...
Initialized registry...
Preparing to install...
installing
phar://go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.1.tar...
installing
phar://go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.2.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.4.0RC2.tar...
installing phar://go-pear.phar/PEAR/go-pear-tarballs/XML_RPC-1.4.1.tar...
WARNING: channel "pear.php.net" has updated its protocols, use
"channel-update pear.php.net" to update
install ok: channel://pear.php.net/Archive_Tar-1.3.1
install ok: channel://pear.php.net/Console_Getopt-1.2
install ok: channel://pear.php.net/XML_RPC-1.4.1
install ok: channel://pear.php.net/PEAR-1.4.0RC2
PEAR: Optional feature remoteinstall available (adds the ability to
install packages to a remote ftp server)
PEAR: Optional feature webinstaller available (PEAR's web-based installer)
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based
installer)
To install use "pear install PEAR#featurename"
****************************************
**************************************
WARNING! The include_path defined in the currently used php.ini does not
contain the PEAR PHP directory you just specified:
<$this->prefix/lib/php>
If the specified directory is also not in the include_path used by
your scripts, you will have problems getting any PEAR packages working.
Would you like to alter php.ini </usr/local/lib/php.ini>? [Y/n] : n
I will add a workaround for this in the 'pear' command to make sure
the installer works, but please look over your php.ini or Apache
configuration to make sure $this->prefix/lib/php is in your include_path.
Current include path :
..:/home/bertrand/pear/cvs/pear/Text_Wiki:/usr/share/pear:/usr/local/lib/php
Configured directory : $this->prefix/lib/php
Currently used php.ini (guess) : /usr/local/lib/php.ini
Press Enter to continue:
The 'pear' command is now at your service at /usr/local/bin/pear
[root@ancilla ~]# ll /usr/local/bin/pear
-rwxr-xr-x 1 root root 737 Sep 16 11:09 /usr/local/bin/pear
[root@ancilla ~]# pear list
Error in argument 7, char 2: option not found >
.....
actual command:
php5 -C -q -d include_path=->prefix/lib/php -d output_buffering=1
->prefix/lib/php/pearcmd.php list
[root@ancilla ~]# cat /usr/local/bin/pear
#!/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 "/home/bertrand/php/php5-200509111630/sapi/cli/php" =
'@'php_bin'@'; then
PHP=php
else
PHP="/home/bertrand/php/php5-200509111630/sapi/cli/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 "$this->prefix/lib/php" = '@'php_dir'@'; then
INCDIR=`dirname $0`
INCARG=""
else
INCDIR="$this->prefix/lib/php"
INCARG="-d include_path=$this->prefix/lib/php"
fi
fi
echo $PHP -C -q $INCARG -d output_buffering=1 $INCDIR/pearcmd.php "$@"
exec $PHP -C -q $INCARG -d output_buffering=1 $INCDIR/pearcmd.php "$@"
.... no comment
à+
--
bertrand "toggg" Gugger
| |
| Greg Beaver 2005-09-16, 6:56 pm |
| bertrand Gugger wrote:
> Bonjour
> Greg Beaver wrote:
>
> I just hope I've something wrong here:
Thanks bertrand, that is an important issue to fix. I was actually
talking about go-pear.*php* instead of *phar*, but as always, any bug
needs fixin.
Greg
| |
| Greg Beaver 2005-09-17, 4:02 am |
| bertrand Gugger wrote:
> Bonjour
> Greg Beaver wrote:
>
> I just hope I've something wrong here:
>
> [root@ancilla ~]# wget http://pear.php.net/go-pear.phar
> --11:07:49-- http://pear.php.net/go-pear.phar
Hi Bertrand,
I just fixed the problem, I think. If you could test, that would be
very helpful.
Thanks,
Greg
| |
| bertrand Gugger 2005-09-17, 4:02 am |
| Salut
Greg Beaver wrote:
>bertrand Gugger wrote:
>
>
>
>Hi Bertrand,
>
>I just fixed the problem, I think. If you could test, that would be
>very helpful.
>
>Thanks,
>Greg
>
>
>
Tested OK: the default config for PHP layout is now fine :)
1. Installation base ($prefix) : /usr/local
2. Binaries directory : /usr/local/bin
3. PHP code directory ($php_dir) : /usr/local/lib/php
4. Documentation directory : /usr/local/lib/php/docs
5. Data directory : /usr/local/lib/php/data
6. Tests directory : /usr/local/lib/php/tests
7. Name of configuration file :
Congrats !
à+
--
bertrand "toggg" Gugger
|
|
|
|
|