From: yi.zhou on
Hello,



I am developing a web php/mysql application for which I would like to
use some pear packages. I executed batch file go-pear.bat and pear was
installed on my computer. I tested different pear commands and it
worked. However, " pear list" showed only the following packages were
installed:



INSTALLED PACKAGES, CHANNEL PEAR.PHP.NET:

=========================================

PACKAGE VERSION STATE

Archive_Tar 1.3.2 stable

Console_Getopt 1.2.3 stable

PEAR 1.6.1 stable

Structures_Graph 1.0.2 stable



I need to install several other packages including db,
html_template_it,, etc. but always got error "Cannot initialize
'channel:/pear/php.net/packagename ... install failed' ". I know I am
behind a firewall and I executed "pear config-set http_proxy
webproxy.int.westgroup.com" but still no hope.



If I execute "pear remote-list", it gives the error: "Connection to
'pear.php.net:80' failed: A connection attempt failed because the
connected party did not properly respond after a period of time, or
established connection failed because connected host has failed to
respond". By the way, I cannot ping the server pear.php.net (always
timeout).



I did extensive research online and could not found a solution. I tried
to manually download a package from pear.php.net site but surprised to
see only unix tar files were provided I am on Windows XP computer). Are
there win zipped files downloadable for Windows platform? Nevertheless,
I did downloaded a tar file to a Unix server, but when I tried to
extract it, it gave me "directory checksum error".



I believe I am not unique to be behind a firewall on Windows XP and
there has to be a solution. I could be that I missed some fundamental
steps.



Your help would be very much appreciated.



Sincerely,

Yi Zhou

Thomson Reuters/West San Francisco

Sr. Software Engineer

415-344-3943



From: "Chuck Burgess" on
Hi Yi,

That older version of PEAR core (1.6.1) is the problem. It uses an older
communication protocol that the PEAR website no longer supports. Go to
http://pear.php.net/ and have a look at the news item on the front page
dated January 3, 2008... that shows the instructions you'll need to follow
in order to upgrade your PEAR installation to 1.7.x. Once that's upgraded,
you should be able to run the various *pear* commands properly, including
the *pear install* commands that you're wanting to do.
--
CRB
From: "Brett Bieber" on
On Tue, Jul 1, 2008 at 1:26 PM, <yi.zhou(a)thomsonreuters.com> wrote:
> I need to install several other packages including db,
> html_template_it,, etc. but always got error "Cannot initialize
> 'channel:/pear/php.net/packagename ... install failed' ". I know I am
> behind a firewall and I executed "pear config-set http_proxy
> webproxy.int.westgroup.com" but still no hope.


I think you're just missing the http:// on the command.

When you are behind a proxy, you can export the HTTP_PROXY variable,
or set http_proxy using:
pear config-set http_proxy http://user:pass(a)domain:port


> I did extensive research online and could not found a solution. I tried
> to manually download a package from pear.php.net site but surprised to
> see only unix tar files were provided I am on Windows XP computer). Are
> there win zipped files downloadable for Windows platform? Nevertheless,
> I did downloaded a tar file to a Unix server, but when I tried to
> extract it, it gave me "directory checksum error".

You can download an install packages locally using: pear install Package.tgz

--
Brett Bieber

http://saltybeagle.com/
From: "Chuck Burgess" on
My mistake... it's 1.4.0 that's too old to work anymore...

See Brett's reply instead...
CRB

On Tue, Jul 1, 2008 at 1:39 PM, Chuck Burgess <demon.gene(a)gmail.com> wrote:

> Hi Yi,
>
> That older version of PEAR core (1.6.1) is the problem. It uses an older
> communication protocol that the PEAR website no longer supports. Go to
> http://pear.php.net/ and have a look at the news item on the front page
> dated January 3, 2008... that shows the instructions you'll need to follow
> in order to upgrade your PEAR installation to 1.7.x. Once that's upgraded,
> you should be able to run the various *pear* commands properly, including
> the *pear install* commands that you're wanting to do.
> --
> CRB