Re: PEAR installer missing on Windows + PHP 4.3.0 (pear.bat refers to missing file?)

From: Date: Mon, 30 Dec 2002 14:39:25 +0000
Subject: Re: PEAR installer missing on Windows + PHP 4.3.0 (pear.bat refers to missing file?)
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11959@lists.php.net to get a copy of this message
To all those interested: I got the installer working after I 1) Created the directory C:\Programs\PHP\pear\scripts (C:\Programs\PHP is my PHP installation path.) 2) Copied the file scripts\pear.in from the PEAR 1.0 package tar-file (PEAR-1[1].0.tar.gz) to this C:\Programs\PHP\pear\scripts and renamed a copy of this file to "pear". 3) Copied the file scripts\pear.bat from the PEAR 1.0 package tar-file to the directory C:\Programs\PHP and adapted the following lines: set PHP_BIN=c:\programs\php\cli\php.exe set BIN_DIR=c:\programs\php\pear\scripts set PEAR_PATH=c:\programs\php\pear %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 4) The installer works! Both pear list and pear search Auth produced plausible output. 5) From the output of pear config-show I could see that php_bin was still pointing to c:\php4\php.exe. I changed this with: pear config-set php_bin c:\programs\php\cli\php.exe The other settings seemed OK. 6) For example, installing the package Auth through the installer worked just fine. "Peter Zuidhoek" <pzuidhoek@xs4all.nl> wrote in message news:20021230021828.3358.qmail@pb1.pair.com... > 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 license@php.net so we can mail you a copy immediately. > > REM ---------------------------------------------------------------------- > > REM Authors: Alexander Merz (alexmerz@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 > > > > > >

« previous php.pear.dev (#11959) next »