RE: [PEAR-DEV] pear commad under win

From: Date: Mon, 30 Sep 2002 12:49:10 +0000
Subject: RE: [PEAR-DEV] pear commad under win
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-9713@lists.php.net to get a copy of this message
this demonstrates the problem we all have under windows when php is not installed under c:\php4 ! because the default settings of pear use the PHP constants predefined during the build. so the best you can do to prevent pear from thinking that it is installed under c:\php4 is to update the config. but in then pear will have to store your settings somewhere ... and it will choose c:\php4\pear.ini ! I think the best thing could be to load pear.ini from the current directory, and then, if the file doesn't exist, try to look in some default place ... > -----Original Message----- > From: LIMBOURG Arnaud [mailto:arnaud.limbourg@cegetel.fr] > Sent: lundi 30 septembre 2002 14:22 > To: pear-dev@lists.php.net > Subject: [PEAR-DEV] pear commad under win > > > Hello, > > to check how the pear command behaves under win i tried to install it from > scratch, here are the results > > 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:\PHP>pear install c:\DONNEES\HTTP_Upload-0.8.1.tgz > > Notice: Undefined index: SystemRoot in System.php on line 402 > install ok: HTTP_Upload 0.8.1 > > note: it *got* installed correctly under c:\php\pear\HTTP\Upload.php > > Due to the proxy configuration i could not get the remote* commands to > works. > > Arnaud. > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > ________________________________________________________________ > Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 > euros d'économies ! > Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot > + 1 mois de jeu en réseau offert ! > Clique ici : http://www.ifrance.com/_reloc/mail.etudiant ________________________________________________________________ Etudiant: Wanadoo t'offre le Pack eXtense Haut Débit soit 150,92 euros d'économies ! Et pour 1 euro de plus, reçois le CD-ROM du jeu Dark Age of Camelot + 1 mois de jeu en réseau offert ! Clique ici : http://www.ifrance.com/_reloc/mail.etudiant

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