Go-Pear Install

Go-Pear Install

Posted by: vigna162
Posted on: 2006-06-27 08:09:00

I am attempting to install a PEAR Channel on one of my domains. Unfortunately, I am new to BASH. This process requires PHP5 (which I have setup using the DH control panel) and a local installation of PEAR. In order to install PEAR I need to execute the following command in my BASH session:

$ /usr/local/php5/bin/php go-pear.phar

Unfortunately this command seems to hang!

I tried downloading the .phar file to my Windows box and did the same thing and all worked well.

I checked the version of my /usr/local/php5/bin/php and it produces v5.1.2 which is cool.

So anyone have any ideas on how I can proceed with this effort?

Also I would appreciate any pointers on how to setup a local copy of PEAR on a DH domain from someone who has done so using the DH PHP5 install (**NOT YOUR OWN PHP5 Installation**).

Thanks.

Re: Go-Pear Install

Posted by: kchrist
Posted on: 2006-06-27 10:33:00

The PEAR site has instructions for installing PEAR in a shared hosting environment:
Installation of a local PEAR copy on a shared host

I've done something similar and it works fine on a Dreamhost server.


Re: Go-Pear Install

Posted by: guice
Posted on: 2006-06-27 12:00:00

Got your PM on this. Sorry I couldn't help you to much here. I have my own copy of PHP.

However, as kchrist pointed out, PEAR has a full step-by-step instruction on how to setup PEAR to use your personal archive.

Re: Go-Pear Install

Posted by: vigna162
Posted on: 2006-06-27 15:16:00

Well kchrist I tried your approach. Unfortunately I get the following Error after successfully creating a .pearrc using SSH:

[baht]$ pear install -o PEAR
Did not download optional dependencies: pear/XML_RPC, use --alldeps to download automatically
Skipping package "pear/PEAR", already installed as version 1.4.6
downloading Archive_Tar-1.3.1.tgz ...
Starting to download Archive_Tar-1.3.1.tgz (15,102 bytes)
.....done: 15,102 bytes
downloading Console_Getopt-1.2.tgz ...
Starting to download Console_Getopt-1.2.tgz (3,370 bytes)
...done: 3,370 bytes
ERROR: failed to write /usr/local/lib/php/Console/.tmpGetopt.php
ERROR: failed to write /usr/local/lib/php/Archive/.tmpTar.php
[baht]$ which php
/usr/local/bin/php
[baht]$

Any ideas?

Tags: pearphp5localunfortunatelyusrphpappreciatewindows boxcontrol panelpointersdomainsdomain