pear commad under win
| From: | LIMBOURG Arnaud | Date: | Mon, 30 Sep 2002 12:22:17 +0000 |
| Subject: | pear commad under win | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-9712@lists.php.net to get a copy of this message | ||
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.