Introduction
PEAR (The PHP Extension and Application Repository) provides some features needed in the Triangle Admin system. PEAR provides well written and well maintained components that cannot be found in other Frameworks.
Please note the commands outlined here are based on Ubuntu.
Initial Commands
Similar to apt-get pear needs to update its package listing the channel update provides the command to download the latest list.
- sudo pear channel-update pear.php.net
Setting the preferred state to Alpha may not seem the most sensible thing to do; but some packages simply never seem to get out of the Alpha stage even though they are very mature.
- sudo pear config-set preferred_state alpha
Upgrade all the current packages - this will usually update PEAR from the one downloaded through apt-get.
Downloading And Install A Tarball
Sometimes it may be necessary to simply download a package and install it seperatly.
- sudo pear download pager
- sudo pear install pager-2.4.2.tgz
PEAR Packages Required
Alphabetical list of PEAR packages that are required by the admin programme. Package name first, (include file in parentheses).
- PEAR_HTTP_Download - pear install -a HTTP_Download
- PEAR_Archive_Zip - pear install -a Archive_Zip
- PEAR_Benchmark - pear install -a Benchmark
- PEAR_CacheLite - pear install -a Cache_Lite
- PEAR_PHP_Compat - pear install -a PHP_Compat
- PEAR_Date - pear install -a Date
- PEAR_MDB2 - pear install -a MDB2
- PEAR_MDB2_Driver_mysql - pear install -a MDB2_Driver_mysql
- PEAR_MDB2_Driver_mysqli - pear install -a MDB2_Driver_mysqli
- PEAR_DB_DataObject - pear install -a DB_DataObject
- PEAR_DB_DataObject_Formbuilder - pear install -a DB_DataObject_FormBuilder
- PEAR_HTML_Table - pear install -a HTML_Table
- PEAR_HTML_QuickForm - pear install -a HTML_QuickForm
- PEAR_HTTP_Upload - pear install -a HTTP_Upload
- PEAR_Log - pear install -a Log
- PEAR_Mail - pear install -a Mail
- PEAR_Mail_Mime - pear install -a Mail_Mime
- PEAR_Net_FTP - pear install -a Net_FTP
- PEAR_Pager - pear install -a Pager
- PEAR_Services_ExchangeRates - pear install -a Services_ExchangeRates
- PEAR_HTTP_Request - pear install -a HTTP_Request
- PEAR_Structures_DataGrid - pear install -a Structures_DataGrid
- All Datasources - pear install -a Structures_DataGrid#datasources
- All Renderers - pear install -a Structures_DataGrid#renderers
- PEAR_Text_Captcha - pear install -a Text_Captcha
- PEAR_Text_Wiki_BBCode - pear install -a Text_Wiki_BBCode
- PEAR_Text_Wiki - pear install -a Text_Wiki
- PEAR_Translation2 - pear install -a Translation2
Please follow the instructions for setting up the Translation2 decorator cache. PEAR_Translation2
External Links
|