RE: [PEAR] Installing of PEAR packages on windows

From: Date: Wed, 06 Nov 2002 10:56:39 +0000
Subject: RE: [PEAR] Installing of PEAR packages on windows
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2626@lists.php.net to get a copy of this message
> Sorry, I didn't post to the lists the last time (simply > replied ..), one > more little question. > > On my Windows XP - PC I have a Xitami Server. PHP is running > as CGI. Version > 4.2.3 > > What is the secret about pear? > In the manual there it is mentioned that pear is like CPAN. > http://pear.php.net/manual/en/introduction.php#about.pear > > Is there no way to download and install as easy as > Perl-Moduls from CPAN ? > ( http://www.cpan.org/ ) > > I'm trying > http://pear.php.net/manual/en/installation.getting.php ff > > > What downloads are you referring to? PEAR or the individual > packages or > > what? > > I'm using just the part of pear coming with the PHP download, > e.g. ITX-templates in the directory .../php/pear/HTML/ITX.php > > > When I run go-pear.php locally "php go-pear.php" I run > through the dialog > > and set the paths up properly and I *never* get a valid pear.bat. > > I searched, but there is no "go-pear.php". > I loaded the script from http://go-pear.org now. > > > As far > > as I know I should be able to type "pear" at the dos prompt > and get a list > > of options. Similarly I should be able to things like > "pear list" and > > "pear install" and that pear.bat does absolutely nothing. > > I found some scripts > \server\php\pear\scripts\ > - pear.bat > - pear.in > - pearwin.php > - ... more > and > \server\php\pear\PEAR\ > - Autoloader.php and more > - \Command\ > - \Frontend\CLI.php > > In pear.bat I can set some directories like > set PHP_PATH=c:\server\php > set PEAR_INSTALL_DIR=c:\server\php\pear > set PEAR_EXTENSION_DIR=c:\server\php\extensions > set PEAR_DOC_DIR=c:\server\php\pear\docs > > but when I execute I get > C:\server\php\pear\scripts>pear config-show > > CONFIGURATION: > ============== > bin_dir c:\php4 > doc_dir c:\php4\doc\pear > ext_dir c:\php4 > master_server pear.php.net > password <not set> > php_dir c:\php4\pear > preferred_state stable > username <not set> > verbose 1 > > Can anybody help me? Yes, there is a problem under windows with env vars. Try a pear config-set bin_dir c:/your-path-to-php pear config-set doc_dir c:/your-path-to-pear-doc-sir etc. for info here is my conf | PEAR executables | bin_dir | c:/www/ext/pear | | directory | | | | PEAR documentation | doc_dir | c:\www\ext\pear\docs | | directory | | | | PHP extension | ext_dir | c:\php\extensions | | directory | | | | PEAR directory | php_dir | c:\www\ext\pear | | PEAR Installer cache | cache_dir | C:\Winnt\Temp2\pear\cache | | directory | | | | PEAR data directory | data_dir | c:\www\ext\pear\data | | PEAR test directory | test_dir | c:\www\ext\pear\tests | After the conf is right you can do pear install HTTP_Upload for example > greetings, > Franz > > -- > "Nobody is perfect, but everybody can do his best!" > > Franz Alt > franz.alt@pfaffenhofen.de

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