For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > December 2005 > Re: [PEAR] How to install a local copy of PEAR and after use it in









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR] How to install a local copy of PEAR and after use it in
Norbert Mocsnik

2005-12-13, 7:00 pm

Reynier Perez Mira wrote:
> Well:
> I read line by line this: http://pear.php.net/manual/en/installation.getting.php and say this:
>
> Quote:
> After you have downloaded and installed PHP, you have to manually execute the batch file located in e.g. c:\php\go-pear.bat. The setup will ask you some questions and afterwards the PEAR Package Manager will be installed in the path, which you have spec

ific during installation. Finally you have to add that installation path to your PATH environment. Either do this manually (Start > Control Panel > System > Environment) or run (double-click) the newly generated PEAR_ENV.reg that's now found in the PHP so
urce directory. After that you can access the PEAR Package Manager by running the command pear in a Windows Command Prompt.
>
> After do it, I not need to configure some pear-config.ini?


After you do it, you will have the "pear" command on your system.

(This additionally installs a system-wide PEAR that you don't
want to use, because you will create a PEAR installation
locally for each project, so you can simply use FTP
to transfer it to your shared host with the projects' files.)

Now that you have the "pear" command, you can follow the
steps in my blog.


P.S. You could also use the system-wide PEAR installation directly
but having seperate local installations pays off in the long run
(this way you can have different packages installed for different
projects and you can upgrade them in the future seperately in
a very easy way).

--
Norbert Mocsnik
http://norbert.mocsnik.hu/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com