RE: [PEAR] Installing of PEAR packages on windows

From: Date: Wed, 06 Nov 2002 14:12:45 +0000
Subject: RE: [PEAR] Installing of PEAR packages on windows
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2635@lists.php.net to get a copy of this message
When you say install a fresh php 4.2.3 does it matter if you do it as CGI or Apache module? --Tony On Wed, 6 Nov 2002, LIMBOURG Arnaud wrote: > Ok, apparently you use an outdated version of the pear command. > > I recommend you clean you install. Here is a post i made a while ago > explaining the steps i had to follow to install the pear command under NT. > Note that PEAR version is now 1.0b1 and not 0.91-dev anymore. > > 1. install a fresh php 4.2.3 > > 2. copy go-pear locally > > 3. run c:\php\php-cli c:\php\go-pear installing files under c:\php (default) > Warning: failed to create c:\php\pear > install ok: PEAR 0.91-dev > install ok: Archive_Tar 0.9 > install ok: Console_Getopt 1.0 > install ok: XML_RPC 1.0.3 > install ok: DB 1.3 > install ok: Net_Socket 1.0.1 > install ok: Net_SMTP 1.0 > install ok: Mail 1.0.1 > install ok: XML_Parser 1.0 > > note: the script created c:\php4\pear\tests > > 4. add c:\php\pear to the include-path > > 5. try it > > C:\PHP>pear list > PHP Fatal error: Call to undefined function: getoptions() in > c:\php\pear\scripts\pear.in on line 35 > > 6. update to latest pear.in (1.64) from CVS > > 7. set register_argc_argv = on in php.ini > > 8. pear config-show shows that it considers pear installed under > c:\php4\pear > > C:\PHP>pear config-show > CONFIGURATION: > ============== > +---------------------+-----------------+------------------------+ > | PEAR executables | bin_dir | c:\php4 | > | directory | | | > | PEAR documentation | doc_dir | c:\php4\pear\docs | > | directory | | | > | PHP extension | ext_dir | c:\php4 | > | directory | | | > | PEAR directory | php_dir | c:\php4\pear | > | PEAR data directory | data_dir | c:\php4\pear\data | > | PEAR test directory | test_dir | c:\php4\pear\tests | > | HTTP Proxy Server | http_proxy | xxxxxxxxxxxxxxxxxxxxxx | > | Address | | | > | PEAR server | master_server | pear.php.net | > | PEAR password (for | password | <not set> | > | maintainers) | | | > | PEAR username (for | username | <not set> | > | maintainers) | | | > | Preferred Package | preferred_state | stable | > | State | | | > | Unix file mask | umask | <not set> | > | Debug Log Level | verbose | 1 | > +---------------------+-----------------+------------------------+ > > 9. Ip updated all the settings to match the real configuration > > +---------------------+-----------------+------------------------+ > | PEAR executables | bin_dir | c:\php | > | directory | | | > | PEAR documentation | doc_dir | c:\php\pear\docs | > | directory | | | > | PHP extension | ext_dir | c:\php\extensions | > | directory | | | > | PEAR directory | php_dir | c:\php\pear | > | PEAR data directory | data_dir | c:\php\pear\data | > | PEAR test directory | test_dir | c:\php\pear\tests | > | HTTP Proxy Server | http_proxy | xxxxxxxxxxxxxxxxxxxxxx | > | Address | | | > | PEAR server | master_server | pear.php.net | > | PEAR password (for | password | <not set> | > | maintainers) | | | > | PEAR username (for | username | <not set> | > | maintainers) | | | > | Preferred Package | preferred_state | stable | > | State | | | > | Unix file mask | umask | <not set> | > | Debug Log Level | verbose | 1 | > +---------------------+-----------------+------------------------+ > > 10. it seems to work > > C:\PHP>pear list > INSTALLED PACKAGES: > =================== > +----------------+----------+--------+ > | PACKAGE | VERSION | STATE | > | Archive_Tar | 0.9 | stable | > | Console_Getopt | 1.0 | stable | > | DB | 1.3 | stable | > | Mail | 1.0.1 | stable | > | Net_SMTP | 1.0 | stable | > | Net_Socket | 1.0.1 | stable | > | PEAR | 0.91-dev | beta | > | XML_Parser | 1.0 | stable | > | XML_RPC | 1.0.3 | stable | > +----------------+----------+--------+ > > > > > > > C:\server\php\pear\scripts>pear list-installed > > > > INSTALLED PACKAGES: > > =================== > > + > > + > > > > ? But I'm using ITX from C:\server\php\pear\HTML\ITX.php > > sucessfully !? > > > > C:\server\php\pear\scripts>pear config-show > > > > CONFIGURATION: > > ============== > > bin_dir c:\server\php\pear > > doc_dir c:\server\php\pear\docs > > ext_dir c:\server\php\pear > > master_server pear.php.net > > password ******** (phpfi) > > php_dir c:\server\php\ > > preferred_state stable > > username cvsread > > verbose 1 > > > > > > I played with "go-pear.php". It seems to create similiar > > pear.bat like I > > already have on my local PC. And the same Errors: > > C:\server\php>pear list > > <font color=ff0000><br /> > > <b>Fatal error</b>: Call to undefined function: getoptions() in > > <b>c:\server\p > > hp\pear\scripts\pear.in</b> on line <b>35</b><br /> > > </font> > > > > ??? > > > > I found 2 other ways to install/Update pear: > > WinCSV: > > http://www.phpconcept.net/articles/article.en.php?id=1 > > Webinstaller: > > > > http://www-user.tu-chemnitz.de/~meal/php/peardoc/peardoc.allge > mein.installat > ion.html ( german ) > > > -- > "Nobody is perfect, but everybody can do his best!" > > Franz Alt > franz.alt@pfaffenhofen.de > > > >

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