php52_install_dependencies.sh 948 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh
  2. # To install DbUnit, we have to install everything
  3. pear channel-discover pear.phpunit.de
  4. pear channel-discover pear.symfony-project.com
  5. pear update-channels
  6. # remove any existing phpunit packages
  7. pear uninstall -n pear.phpunit.de/PHPUnit
  8. pear uninstall -n pear.phpunit.de/PHP_CodeCoverage
  9. pear uninstall -n pear.phpunit.de/PHPUnit_MockObject
  10. pear uninstall -n pear.phpunit.de/File_Iterator
  11. pear uninstall -n pear.phpunit.de/Text_Template
  12. pear uninstall -n pear.phpunit.de/PHP_Timer
  13. pear uninstall -n pear.symfony-project.com/YAML
  14. # memcache 2.1.0 is the last version to support the php 5.2 branch
  15. pecl download memcached-2.1.0
  16. tar zxvf memcached*.tgz && cd memcached*
  17. make clean
  18. printf "\n" | phpize
  19. ./configure --with-libmemcached-dir=/usr/local && make && make install
  20. printf "\n" | pecl uninstall memcache
  21. printf "\n" | pecl install memcache
  22. # Install
  23. pear install -o pear.phpunit.de/PHPUnit
  24. pear install pear.phpunit.de/DbUnit