How to install PEAR on Dreamhost

| | Comments (0) | TrackBacks (0)

I have two news, one good, one bad.
The bad news is Dreamhost has no PEAR default.
The good news is we can install it by ourselves.

Let us go through the steps of install PEAR on Dreamhost.
1) SSH to Dreamhost.

2) Enter the command

pear config-create $HOME .pearrc

3) Enter the install command

pear install -o PEAR

Now you can enter pear help to see the information of PEAR you just installed.

The PEAR environment is installed.

What about install the package?
Just one command:

pear install pear/PackageName

If you want to install a beta version of package and get the following error like:

Failed to download pear/Console_ProgressBar within preferred state "stable", latest release is
version 0.5.0beta, stability "beta", use channel://pear.php.net/Console_ProgressBar-0.5.0beta"
to install
Cannot initialize 'channel://pear.php.net/Console_ProgressBar', invalid or missing package file

Just change the preferred setting by command:

pear config-get preferred_state beta

After installing the beta package, enter the following command to change it back to stable.

pear config-get preferred_state stable


Categories

,

0 TrackBacks

Listed below are links to blogs that reference this entry: How to install PEAR on Dreamhost.

TrackBack URL for this entry: http://www.yinfor.com/mtcgi/mt-tb-trackback.cgi/2132

Leave a comment

Earn $$ with WidgetBucks!
Earn $$ with Bidvertiser!
DreamHost!
Sponsored Review!

Online Tools

About this Entry

This page contains a single entry by David Yin published on April 19, 2008 1:50 AM.

Upgrade your Ubuntu from 7.10 to 8.04 was the previous entry in this blog.

Testfreaks is the next entry in this blog.