php pear installation

I recently got a linux server running on a cloud and migrated few of my sites including this site. However, I forgot that the main page of this site requires DB package to be installed which can be installed through PEAR, and to cut the story short I end up installing PEAR just to get the DB package installed. Below is how to install PEAR on Linux specifically on Ubuntu 12.04.

<br />
wget  http://pear.php.net/go-pear.phar</p>
<p>sudo php -q go-pear.phar<br />
<br />
Below is a suggested file layout for your new PEAR installation.  To<br />
change individual locations, type the number in front of the<br />
directory.  Type 'all' to change all of them or simply press Enter to<br />
accept these locations.</p>
<p> 1. Installation base ($prefix)                   : /usr<br />
 2. Temporary directory for processing            : /tmp/pear/install<br />
 3. Temporary directory for downloads             : /tmp/pear/install<br />
 4. Binaries directory                            : /usr/bin<br />
 5. PHP code directory ($php_dir)                 : /usr/share/pear<br />
 6. Documentation directory                       : /usr/docs<br />
 7. Data directory                                : /usr/data<br />
 8. User-modifiable configuration files directory : /usr/cfg<br />
 9. Public Web Files directory                    : /usr/www<br />
10. Tests directory                               : /usr/tests<br />
11. Name of configuration file                    : /etc/pear.conf</p>
<p>1-11, 'all' or Enter to continue:<br />
Beginning install...<br />
Configuration written to /etc/pear.conf...<br />
Initialized registry...<br />
Preparing to install...<br />
installing phar:///root/go-pear.phar/PEAR/go-pear-tarballs/Archive_Tar-1.3.7.tar...<br />
installing phar:///root/go-pear.phar/PEAR/go-pear-tarballs/Console_Getopt-1.3.0.tar...<br />
installing phar:///root/go-pear.phar/PEAR/go-pear-tarballs/PEAR-1.9.4.tar...<br />
installing phar:///root/go-pear.phar/PEAR/go-pear-tarballs/Structures_Graph-1.0.4.tar...<br />
installing phar:///root/go-pear.phar/PEAR/go-pear-tarballs/XML_Util-1.2.1.tar...<br />
install ok: channel://pear.php.net/Archive_Tar-1.3.7<br />
install ok: channel://pear.php.net/Console_Getopt-1.3.0<br />
install ok: channel://pear.php.net/Structures_Graph-1.0.4<br />
install ok: channel://pear.php.net/XML_Util-1.2.1<br />
install ok: channel://pear.php.net/PEAR-1.9.4<br />
PEAR: Optional feature webinstaller available (PEAR's web-based installer)<br />
PEAR: Optional feature gtkinstaller available (PEAR's PHP-GTK-based installer)<br />
PEAR: Optional feature gtk2installer available (PEAR's PHP-GTK2-based installer)<br />
PEAR: To install optional features use "pear install pear/PEAR#featurename"</p>
<p>The 'pear' command is now at your service at /usr/bin/pear</p>
<p>** The 'pear' command is not currently in your PATH, so you need to<br />
** use '/usr/bin/pear' until you have added<br />
** '/usr/bin' to your PATH environment variable.</p>
<p>Run it without parameters to see the available actions, try 'pear list'<br />
to see what packages are installed, or 'pear help' for help.</p>
<p>For more information about PEAR, see:</p>
<p>  http://pear.php.net/faq.php<br />
  http://pear.php.net/manual/</p>
<p>Thanks for using go-pear!<br />

Once you have successfully installed PEAR, you can start installing PEAR packages by invoking pear.

</p>
<p>pear install DB</p>
<p>

That’s about it, let me know should you encounter installation issues with PEAR.

Leave a Reply

Your email address will not be published. Required fields are marked *