Archive · February 27, 2010
ubuntu install PEAR
primax@blue:~$ sudo apt-get install php-pear [sudo] password for primax: Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: php5-dev php4-dev The following NEW packages will be installed: php-pear 0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded. Need to get 355kB of archives. After this operation, 2695kB of additional disk space will be used. Get:1 http://us.archive.ubuntu.com hardy-updates/main php-pear 5.2.4-2ubuntu5.10 [355kB] Fetched 355kB in 1s (321kB/s) Selecting previously deselected package php-pear. (Reading database ... 302251 files and directories currently installed.) Unpacking php-pear (from .../php-pear_5.2.4-2ubuntu5.10_all.deb) ... Setting up php-pear (5.2.4-2ubuntu5.10) ... primax@blue:~$ sudo pear install MDB2 downloading MDB2-2.4.1.tgz ... Starting to download MDB2-2.4.1.tgz (119,790 bytes) ..........................done: 119,790 bytes install ok: channel://pear.php.net/MDB2-2.4.1 MDB2: Optional feature fbsql available (Frontbase SQL driver for MDB2) MDB2: Optional feature ibase available (Interbase/Firebird driver for MDB2) MDB2: Optional feature mysql available (MySQL driver for MDB2) MDB2: Optional feature mysqli available (MySQLi driver for MDB2) MDB2: Optional feature mssql available (MS SQL Server driver for MDB2) MDB2: Optional feature oci8 available (Oracle driver for MDB2) MDB2: Optional feature pgsql available (PostgreSQL driver for MDB2) MDB2: Optional feature querysim available (Querysim driver for MDB2) MDB2: Optional feature sqlite available (SQLite2 driver for MDB2) MDB2: To install optional features use "pear install pear/MDB2#featurename" primax@blue:~$
get PEAR info: primax@blue:~$ pear list Installed packages, channel pear.php.net: ========================================= Package Version State Archive_Tar 1.3.2 stable Console_Getopt 1.2.3 stable MDB2 2.4.1 stable PEAR 1.6.1 stable Structures_Graph 1.0.2 stable pear config-show need to edit php.ini so that it can reference the PEAR install "Getting Started with Pear"