|
|
|
|
![]() ![]() |
![]() Group: Members
Posts: 12 Joined: 5-August 08 Member No.: 66,061 |
Post
#1
Aug 7 2008, 04:41 PM
I recently installed PEAR into a PHP environment on a Linux machine, and as I did the installation I wrote down the steps for future use. I thought it might be useful for others. PEAR stands for PHP Extension and Application Repository. Basically I just use it for replacing php database connection functions. Download the go-pear.php script from http://go-pear.org/. Open a command line shell and run the script: [console]php go-pear.php[/console] QUOTE Welcome to go-pear! Go-pear will install the 'pear' command and all the files needed by it. This command is your tool for PEAR installation and maintenance. Go-pear also lets you download and install the PEAR packages bundled with PHP: MDB2. If you wish to abort, press Control-C now, or press Enter to continue: HTTP proxy (http://user:password@proxy.myhost.com:port), or Enter for none:: http://my-proxy-server.com:80 Below is a suggested file layout for your new PEAR installation. To change individual locations, type the number in front of the directory. Type 'all' to change all of them or simply press Enter to accept these locations. 1. Installation prefix : /usr 2. Binaries directory : $prefix/bin 3. PHP code directory ($php_dir) : $prefix/share/pear 4. Documentation base directory : $php_dir/docs 5. Data base directory : $php_dir/data 6. Tests base directory : $php_dir/tests 7. Temporary files directory : $prefix/temp 1-7, 'all' or Enter to continue: The following PEAR packages are bundled with PHP: MDB2. Would you like to install these as well? [Y/n] : Y Loading zlib: ok Downloading package: PEAR-stable......ok Downloading package: Archive_Tar-stable....ok Downloading package: Console_Getopt-stable....ok Downloading package: Structures_Graph-stable....ok Bootstrapping: PEAR...................(remote) ok Bootstrapping: Archive_Tar............(remote) ok Bootstrapping: Console_Getopt.........(remote) ok Downloading package: MDB2.............ok Extracting installer..................ok warning: pear/PEAR requires package "pear/Archive_Tar" (version >= 1.3.1) warning: pear/PEAR requires package "pear/Console_Getopt" (version >= 1.2) warning: pear/PEAR requires package "pear/Structures_Graph" (version >= 1.0.2) pear/PEAR can optionally use package "pear/XML_RPC" (version >= 1.4.0) pear/PEAR can optionally use package "pear/PEAR_Frontend_Web" (version >= 0.5.0)pear/PEAR can optionally use package "pear/PEAR_Frontend_Gtk" (version >= 0.4.0)install ok: channel://pear.php.net/PEAR-1.5.4 install ok: channel://pear.php.net/Archive_Tar-1.3.2 install ok: channel://pear.php.net/Console_Getopt-1.2.2 install ok: channel://pear.php.net/Structures_Graph-1.0.2 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) To install use "pear install pear/MDB2#featurename" The 'pear' command is now at your service at /usr/bin/pear You can now use PEAR to install PHP extensions. See http://www.go-pear.org/. |
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
1 | triggerhappy | 762 | 12th January 2009 - 08:25 PM Last post by: iG-cfraschetti |
|||
![]() |
4 | gpinvest | 1,927 | 29th October 2009 - 03:29 AM Last post by: iG- |
|||
![]() |
17 | pr3dr49 | 24,250 | 18th March 2009 - 07:08 AM Last post by: aloKNsh |
|||
![]() |
68 | BoSZ | 25,432 | 26th March 2009 - 03:10 PM Last post by: aloKNsh |
|||
![]() |
42 | stevey | 21,179 | 26th March 2009 - 03:16 PM Last post by: aloKNsh |
|||
![]() |
6 | stevey | 4,211 | 22nd April 2009 - 12:52 AM Last post by: mahesh2k |
|||
![]() |
4 | bttfpromo | 10,174 | 1st March 2009 - 07:34 PM Last post by: mc05w37 |
|||
![]() |
1 | hatebreed | 5,836 | 5th September 2004 - 02:05 PM Last post by: redsky |
|||
![]() |
23 | whatknows | 14,114 | 22nd April 2009 - 12:35 AM Last post by: mahesh2k |
|||
![]() |
4 | Saint_Michael | 3,909 | 29th September 2004 - 08:52 PM Last post by: alperuzi |
|||
![]() |
3 | elrohir | 1,476 | 8th April 2009 - 02:28 PM Last post by: varalu |
|||
![]() |
0 | odomike | 4,343 | 20th June 2006 - 06:01 AM Last post by: odomike |
|||
![]() |
4 | Lyon | 4,432 | 25th January 2005 - 11:06 PM Last post by: bjrn |
|||
![]() |
8 | jjhou | 6,782 | 1st March 2009 - 07:29 PM Last post by: mc05w37 |
|||
![]() |
0 | Oni_BlueEyes | 3,809 | 7th November 2004 - 04:39 AM Last post by: Oni_BlueEyes |
|||
|
Open Discussion | Time is now: 8th November 2009 - 07:42 AM |
Web Hosting Powered by ComputingHost.com.