How to install PEAR on Dreamhost
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
DreamHost Log , L.A.M.P.Related Entries
- Install Zend Optimizer 3.3 on Customized PHP 5.2.3
- Install customized PHP5 on Dreamhost
- One-Click install of Joomla! 1.5 on Dreamhost
- Let Dreamhost PHP support Zip extension
- Install Zend Optimizer 3.2.8 on Ubuntu 7.04 Server
- Upgrade phpBB 2 to phpBB3 (part 1)
- Install MovableType 4 on Dreamhost
- WPMU can not signup on IE with 404 error
- Some problems when Install ispconfig on Ubuntu 6.10 Server
- Setup a New Ubuntu 6.10 Server
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