Category:Technology -> Adventures with the naked Mac Mini Server -> PECL-Lion | ARTS & FARCES internet wiki

Category:Technology -> Adventures with the naked Mac Mini Server -> PECL-Lion

Category:Technology -> Adventures with the naked Mac Mini Server -> Install the PEAR libraries on Lion

Install the PEAR/PECL libraries for PHP

Mac OS X 10.7.x Lion is distributed with PEAR but not installed. Use these steps to install PEAR:

  1. Open a terminal session and enter cd/usr/lib/php.
  2. Enter sudo php install-pear-nozlib.phar.
  3. With your text editor of choice, edit the /etc/php.ini file.
  4. Find the line: ;include_path = “.:/php/includes” and change it to include_path = “.:/usr/lib/php/pear”.
  5. Add the following to the end of the /etc/php.ini file: [oauth]
    extension=”/usr/lib/php/extensions/no-debug-non-zts-20090626/oauth.so”.
  6. Save the /etc/php.ini file.
  7. Back in your terminal session, enter sudo pear channel-update pear.php.net.
  8. Enter sudo pecl channel-update pecl.php.net.
  9. Enter sudo pear upgrade-all.
  10. Enter sudo pear channel-discover pear.phpunit.de.
  11. Enter sudo pear channel-discover components.ez.no.
  12. Enter sudo pear channel-discover pear.symfony-project.com.
  13. Alternatively, enter sudo pear install phpunit/PHPUnit.
  14. Alternatively, enter sudo pear install phpunit/phpcpd.
  15. Alternatively, enter sudo pear install PHP_CodeSniffer.

Enter sudo apachectl restart to restart Apache.

Download and install the PECL OAuth component using these steps:

  1. Download the latest PCRE source code  and unzip on your desktop.
  2. Open a terminal session and enter cd ~/Desktop/pcre-8.12.
  3. Enter ./configure.
  4. Enter sudo cp pcre.h /usr/include/.
  5. Enter sudo pecl install oauth.
  6. With your text editor of choice, edit the /etc/php.ini file.
  7. Add the following to the end of the /etc/php.ini file: [oauth]
  8. extension=”/usr/lib/php/extensions/no-debug-non-zts-20090626/oauth.so”.
  9. Save the /etc/php.ini file.
  10. Open a terminal session and enter sudo apachectl restart to restart Apache.

Follow these steps to install PECL uploadprogress:

  1. Open a terminal session and enter: sudo pecl install uploadprogress. PECL upload progress will be installed and you’ll be prompted to edit your php.ini configuration file to include >extension=uploadprogress.so.”
  2. In your text editor of choice, open /etc/php.ini and add extension=uploadprogress.so to the end of the /etc/php.ini file.
  3. Save the /etc/php.ini file.
  4. Open a terminal session and enter sudo apachectl restart to restart Apache.

Categories:

Copyright © 1993–2012 ARTS & FARCES LLC. All rights reserved.