Re: What's up with pear?

From: Date: Mon, 17 Feb 2003 02:17:55 +0000
Subject: Re: What's up with pear?
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3790@lists.php.net to get a copy of this message
"Limbourg Arnaud" <arnaud.limbourg@cegetel.fr> wrote in message news:40043BDD1EC9D211946400A024A6E1840D6F8EFB@cassandre.sfr.com... > > Echoes a command line. > > > > >D:\PHP\php.exe -d output_buffering=1 -d include_path=D:\PHP\pear > > > > -f D:\PHP\pear\pear - list > > > > > > > > Which produces the error message: Could not open input file: > > D:\PHP\pear\pear. > > No, i suggest you grab the latest pear.in from CVS > (php4/pear/scripts/pear.in) and put in in d:\php\pear renamed as pear > > This should work. > > Arnaud. > Arnaud, Actually it's a lot more that what you say above: To install PEAR on Windows, run the script at: http://go-pear.org by using: >php -n -r "include 'http://go-pear.org';" Which will produce the following install into C:\php4: ==================================================================== C:\>php -n -r "include 'http://go-pear.org';" 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: 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.1 install ok: Archive_Tar 1.0 install ok: Console_Getopt 1.0 install ok: XML_RPC 1.0.4 install ok: DB 1.4b1 install ok: Net_Socket 1.0.1 install ok: Net_SMTP 1.1.1 install ok: Mail 1.0.2 install ok: XML_Parser 1.0 The 'pear' command is now at your service at c:\php4\pear 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:\> ==================================================================== Then after the PEAR install, in the file C:\PHP4\pear.bat make the following edits: The following: set PHP_BIN=@php_bin@ set BIN_DIR=@bin_dir@ set PEAR_PATH=@include_path@ is changed to: set PHP_BIN=D:\PHP\php.exe set BIN_DIR=C:\PHP4 set PEAR_PATH=C:\PHP4\pear The following line: %PHP_BIN% -C -d output_buffering=1 -d include_path=%PEAR_PATH% -f %BIN_DIR%\pear -- %1 %2 %3 %4 %5 %6 %7 %8 %9 is changed to: %PHP_BIN% -C -d output_buffering=1 -d include_path=%PEAR_PATH% -f %BIN_DIR%\.tmppear -- %1 %2 %3 %4 %5 %6 %7 %8 %9 Note: also the "php.ini" must contain: ; Windows: "\path1;\path2" include_path=".;c:\php4\pear" Note: any "php.ini" changes require an Apache restart in order to work. The http://localhost/test.php to see if you "php.ini" are in effect. ==================================================================== Then try this: C:>pear ==================================================================== Then try this: C:>pear config-show

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