Re: Installing of PEAR packages on windows
| From: | Franz Alt | Date: | Wed, 06 Nov 2002 11:39:56 +0000 |
| Subject: | Re: Installing of PEAR packages on windows | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-2627@lists.php.net to get a copy of this message | ||
> > 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
> >
> 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
> |
>
config-set with
data_dir, cache_dir
"fails"
> After the conf is right you can do pear install HTTP_Upload for example
Error:
C:\server\php\pear\scripts>pear install HTTP_Upload
downloading http://pear.php.net/get/HTTP_Upload?uncompress=yes
...
C:\\DOKUME~1\\Admin\\LOKALE~1\\Temp\peaBD.tmp\HTTP_Upload?uncompress=yes:
write
failed
(fopen("C:\\DOKUME~1\\Admin\\LOKALE~1\\Temp\peaBD.tmp\HTTP_Upload?uncompr
ess=yes", "w") - Invalid argument)
What to do? Should I try an other way to install / upgrade pear?
--
"Nobody is perfect, but everybody can do his best!"
Franz Alt
franz.alt@pfaffenhofen.de