Peter Zuidhoek
22 years ago
I installed PEAR on top of a clean PHP 4.3.0 installation on a Windows XP
Pro machine. See output below. The base packages all seem to have been
installed correctly (for example, a simple test with DB works). But the
installer file "pear.bat" is missing. There is just a file named
"pear.bat_old".
The warning
** WARNING! Backed up old pear to C:\\Programs\\PHP\pear.bat_old
is misleading, considering that there was no file "pear.bat" when I started
the installation of PEAR.
If I rename "pear.bat_old" to "pear.bat" and fix the paths in it, it does
not work. The file contains the command
%PHP_BIN% -C -d output_buffer=1 -d include_path=%PEAR_PATH% -f
%BIN_DIR%\pear -- %1 %2 %3 %4 %5 %6 %7 %8 %9
But the file "%BIN_DIR%\pear" -- as referred to by the -f option -- is
missing. (What directory should %BIN_DIR% point to anyway?)
I have searched CVS, I can't find any such file. What's the status on all
this?
Peter Zuidhoek
-------------------------
1. Installation output
-------------------------
C:\Programs\PHP>cli\php -r "readfile('http://go-pear.org/');" | php
Content-type: text/html
X-Powered-By: PHP/4.3.0
Welcome to go-pear!
Go-pear will install the 'pear' command and all the files needed by
it. This command is your tool for PEAR installation and maintenance.
Go-pear also lets you download and install the PEAR packages bundled
with PHP: DB, Net_Socket, Net_SMTP, Mail, XML_Parser.
If you wish to abort, press Control-C now, or press Enter to continue:
HTTP proxy (host:port), or Enter for none:
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 prefix : c:\php4
2. Binaries directory : $prefix
3. PHP code directory : $prefix\pear
4. Documentation base directory : $php_dir\docs
5. Data base directory : $php_dir\data
6. Tests base directory : $php_dir\tests
1-6, 'all' or Enter to continue: 1
Installation prefix [c:\php4] : c:\programs\php
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 prefix : c:\programs\php
2. Binaries directory : $prefix
3. PHP code directory : $prefix\pear
4. Documentation base directory : $php_dir\docs
5. Data base directory : $php_dir\data
6. Tests base directory : $php_dir\tests
1-6, 'all' or Enter to continue:
The following PEAR packages are bundled with PHP: DB, Net_Socket, Net_SMTP,
Mail, XML_Parser.
Would you like to install these as well? [Y/n] : Y
Downloading package: PEAR.............ok
Downloading package: Archive_Tar......ok
Downloading package: Console_Getopt...ok
Downloading package: XML_RPC..........ok
Bootstrapping: PEAR...................ok
Bootstrapping: Archive_Tar............ok
Bootstrapping: Console_Getopt.........ok
Downloading package: DB...............ok
Downloading package: Net_Socket.......ok
Downloading package: Net_SMTP.........ok
Downloading package: Mail.............ok
Downloading package: XML_Parser.......ok
Extracting installer..................ok
install ok: PEAR 1.0
install ok: Archive_Tar 0.9
install ok: Console_Getopt 1.0
install ok: XML_RPC 1.0.4
install ok: DB 1.3
install ok: Net_Socket 1.0.1
install ok: Net_SMTP 1.0
install ok: Mail 1.0.2
install ok: XML_Parser 1.0
** WARNING! Backed up old pear to C:\\Programs\\PHP\pear.bat_old
The 'pear' command is now at your service at c:\programs\php\pear
** The 'pear' command is not currently in your PATH, so you need to
** use 'c:\programs\php\pear' until you have added
** 'c:\programs\php' to your PATH environment variable.
Run it without parameters to see the available actions, try 'pear list'
to see what packages are installed, or 'pear help' for help.
For more information about PEAR, see:
http://pear.php.net/faq.php
http://cvs.php.net/co.php/pearweb/doc/pear_package_manager.txt?p=1
http://pear.php.net/manual/
Thanks for using go-pear!
C:\Programs\PHP>
-------------------------
pear_old.bat
-------------------------
@ECHO OFF
REM ----------------------------------------------------------------------
REM PHP version 4.0
REM ----------------------------------------------------------------------
REM Copyright (c) 1997-2002 The PHP Group
REM ----------------------------------------------------------------------
REM This source file is subject to version 2.02 of the PHP license,
REM that is bundled with this package in the file LICENSE, and is
REM available at through the world-wide-web at
REM http://www.php.net/license/2_02.txt.
REM If you did not receive a copy of the PHP license and are unable to
REM obtain it through the world-wide-web, please send a note to
REM ***@php.net so we can mail you a copy immediately.
REM ----------------------------------------------------------------------
REM Authors: Alexander Merz (***@php.net)
REM ----------------------------------------------------------------------
REM
REM $Id: pear.bat,v 1.11 2002/12/13 02:10:23 ssb Exp $
REM change this lines to match the paths of your system
REM -------------------
set PHP_BIN=@php_bin@
set BIN_DIR=@bin_dir@
set PEAR_PATH=@include_path@
%PHP_BIN% -C -d output_buffer=1 -d include_path=%PEAR_PATH% -f
%BIN_DIR%\pear -- %1 %2 %3 %4 %5 %6 %7 %8 %9
@ECHO ON
Pro machine. See output below. The base packages all seem to have been
installed correctly (for example, a simple test with DB works). But the
installer file "pear.bat" is missing. There is just a file named
"pear.bat_old".
The warning
** WARNING! Backed up old pear to C:\\Programs\\PHP\pear.bat_old
is misleading, considering that there was no file "pear.bat" when I started
the installation of PEAR.
If I rename "pear.bat_old" to "pear.bat" and fix the paths in it, it does
not work. The file contains the command
%PHP_BIN% -C -d output_buffer=1 -d include_path=%PEAR_PATH% -f
%BIN_DIR%\pear -- %1 %2 %3 %4 %5 %6 %7 %8 %9
But the file "%BIN_DIR%\pear" -- as referred to by the -f option -- is
missing. (What directory should %BIN_DIR% point to anyway?)
I have searched CVS, I can't find any such file. What's the status on all
this?
Peter Zuidhoek
-------------------------
1. Installation output
-------------------------
C:\Programs\PHP>cli\php -r "readfile('http://go-pear.org/');" | php
Content-type: text/html
X-Powered-By: PHP/4.3.0
Welcome to go-pear!
Go-pear will install the 'pear' command and all the files needed by
it. This command is your tool for PEAR installation and maintenance.
Go-pear also lets you download and install the PEAR packages bundled
with PHP: DB, Net_Socket, Net_SMTP, Mail, XML_Parser.
If you wish to abort, press Control-C now, or press Enter to continue:
HTTP proxy (host:port), or Enter for none:
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 prefix : c:\php4
2. Binaries directory : $prefix
3. PHP code directory : $prefix\pear
4. Documentation base directory : $php_dir\docs
5. Data base directory : $php_dir\data
6. Tests base directory : $php_dir\tests
1-6, 'all' or Enter to continue: 1
Installation prefix [c:\php4] : c:\programs\php
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 prefix : c:\programs\php
2. Binaries directory : $prefix
3. PHP code directory : $prefix\pear
4. Documentation base directory : $php_dir\docs
5. Data base directory : $php_dir\data
6. Tests base directory : $php_dir\tests
1-6, 'all' or Enter to continue:
The following PEAR packages are bundled with PHP: DB, Net_Socket, Net_SMTP,
Mail, XML_Parser.
Would you like to install these as well? [Y/n] : Y
Downloading package: PEAR.............ok
Downloading package: Archive_Tar......ok
Downloading package: Console_Getopt...ok
Downloading package: XML_RPC..........ok
Bootstrapping: PEAR...................ok
Bootstrapping: Archive_Tar............ok
Bootstrapping: Console_Getopt.........ok
Downloading package: DB...............ok
Downloading package: Net_Socket.......ok
Downloading package: Net_SMTP.........ok
Downloading package: Mail.............ok
Downloading package: XML_Parser.......ok
Extracting installer..................ok
install ok: PEAR 1.0
install ok: Archive_Tar 0.9
install ok: Console_Getopt 1.0
install ok: XML_RPC 1.0.4
install ok: DB 1.3
install ok: Net_Socket 1.0.1
install ok: Net_SMTP 1.0
install ok: Mail 1.0.2
install ok: XML_Parser 1.0
** WARNING! Backed up old pear to C:\\Programs\\PHP\pear.bat_old
The 'pear' command is now at your service at c:\programs\php\pear
** The 'pear' command is not currently in your PATH, so you need to
** use 'c:\programs\php\pear' until you have added
** 'c:\programs\php' to your PATH environment variable.
Run it without parameters to see the available actions, try 'pear list'
to see what packages are installed, or 'pear help' for help.
For more information about PEAR, see:
http://pear.php.net/faq.php
http://cvs.php.net/co.php/pearweb/doc/pear_package_manager.txt?p=1
http://pear.php.net/manual/
Thanks for using go-pear!
C:\Programs\PHP>
-------------------------
pear_old.bat
-------------------------
@ECHO OFF
REM ----------------------------------------------------------------------
REM PHP version 4.0
REM ----------------------------------------------------------------------
REM Copyright (c) 1997-2002 The PHP Group
REM ----------------------------------------------------------------------
REM This source file is subject to version 2.02 of the PHP license,
REM that is bundled with this package in the file LICENSE, and is
REM available at through the world-wide-web at
REM http://www.php.net/license/2_02.txt.
REM If you did not receive a copy of the PHP license and are unable to
REM obtain it through the world-wide-web, please send a note to
REM ***@php.net so we can mail you a copy immediately.
REM ----------------------------------------------------------------------
REM Authors: Alexander Merz (***@php.net)
REM ----------------------------------------------------------------------
REM
REM $Id: pear.bat,v 1.11 2002/12/13 02:10:23 ssb Exp $
REM change this lines to match the paths of your system
REM -------------------
set PHP_BIN=@php_bin@
set BIN_DIR=@bin_dir@
set PEAR_PATH=@include_path@
%PHP_BIN% -C -d output_buffer=1 -d include_path=%PEAR_PATH% -f
%BIN_DIR%\pear -- %1 %2 %3 %4 %5 %6 %7 %8 %9
@ECHO ON
--
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php