PEAR en windows
| From: | Javier | Date: | Tue, 08 Apr 2003 14:19:28 +0000 |
| Subject: | PEAR en windows | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-34901@lists.php.net to get a copy of this message | ||
Hola
Luego de leer acerca del paquete PEAR_DB, realizado por el ex-miembro
de la lista Tomas Cox, me decidi a poner manos a la obra e instalarlo
en mi W2K. Bueno, me he pasado un par de horas sudando y recorriendo
internet para ver como hacer para instalarlo ya que en la documentacion
de PEAR solo se habla de *nix.
Finalmente encontre esto que funciono bien:
-------------------------------------
In the 4.3 PHP distribution, there is the PHP client. Running the
php.exe
client alone in the CLI directory will result in error so you need to
have
php4ts.dll in the system path, or just put it in the same CLI
directory.
When you unrar the distribution, php4ts.dll will be located in the
C:\Php
root directory so make a copy of it and store it in the CLI directory.
Go to the CLI directory and type in the following:
php -n -r "include 'http://go-pear.org';"
as directed and just answer with the defaults. Upon execution, the pear
installer will download to the C:\Php\pear directory all the pear
packages
with directory structure intact.
--------------------------------------------------------------
Esto funciono bien y me ha instalado los paquetes basicos en
c:\php\pear.
Ahora bien, se supone que deberia tener un comando pear para poder
bajar mas paquetes. Pues no esta.
Segui buscando y encontre esto:
------------------------------------------
I got the installer working after I
>
> 1) Created the directory C:\Programs\PHP\pear\scripts
>
> (C:\Programs\PHP is my PHP installation path.)
>
> 2) Copied the file scripts\pear.in from the PEAR 1.0 package tar-file
> (PEAR-1[1].0.tar.gz) to this C:\Programs\PHP\pear\scripts and renamed
a
copy
> of this file to "pear".
>
> 3) Copied the file scripts\pear.bat from the PEAR 1.0 package
tar-file to
> the directory C:\Programs\PHP and adapted the following lines:
>
> set PHP_BIN=c:\programs\php\cli\php.exe
> set BIN_DIR=c:\programs\php\pear\scripts
> set PEAR_PATH=c:\programs\php\pear
>
> %PHP_BIN% -C -d output_buffer=1 -d include_path=%PEAR_PATH% -f
> %BIN_DIR%\pear -- %1 %2 %3 %4 %5 %6 %7 %8 %9
>
> 4) The installer works! Both
>
> pear list
>
> and
>
> pear search Auth
>
> produced plausible output.
>
> 5) From the output of
>
> pear config-show
>
> I could see that php_bin was still pointing to c:\php4\php.exe. I
changed
> this with:
>
> pear config-set php_bin c:\programs\php\cli\php.exe
>
> The other settings seemed OK.
---------------------------------------------------
Pues ahora no encuentro el directorio scripts ni nada por el estilo.
Alguien ha resuelto el tema y puede contar su experiencia ?
Gracias
<jl>