Compile apc and ssh2 for PHP 5.2.xx in Linux (ssh2, apc)

APC for Php 5.2.xx:

  1. wget http://pecl.php.net/package/apc
  2. unzip the download file
  3. run phpize in the unzip folder
  4. ./configure –enable-apc –with-php-config=/usr/local/bin/php-config
  5. make && make install
  6. enable the apc.so in php.ini

SSH2 for Php 5.2.xx

  1. wget http://www.libssh2.org/download/libssh2-1.2.5.tar.gz
  2. wget http://pecl.php.net/get/ssh2
  3. unzip all downloaded files
  4. in libssh2 folder
  5. ./configure && make && make install
  6. in SSH2 folder
  7. phpize
  8. ./configure && make && make install
  9. enable the ssh2.so in php.ini
Share

Update Boost in CentOS 5 x86_64

yum install libicu-devel
yum install libicu
yum install icu

export ICU_PATH=/usr
export ICU_LINK=-L/usr/lib64
export EXPAT_INCLUDE=/usr/include
export EXPAT_LIBPATH=/usr/lib64

yum install openmpi-devel

yum install expat-devel

./bootstrap.sh --prefix=/usr

Edit project-config.jam
add
using mpi;

./bjam install

Share