ubuntu1404构建pthreads

  1. 安装libxml和autoconf

    sudo apt-get install libxml2

    sudo apt-get install libxml2-dev

    sudo apt-get install autoconf

      1. 获取php源码wget http://www.php.net/distributions/php-5.5.9.tar.gz

      2. wget/git pthreads source-code

      3. 解压并移动

    tar zxvf php-5.5.9.tar.gz

    mv pthreads source-code to php/ext

    编译

    ./configure --prefix=/usr --with-config-file-path=/etc --enable-maintainer-zts --enable-pthreads 

4. 如果pthreads选项不可用

  ./configure --help | grep pthread

  ./buildconf --force

 rm aclocal.m4 

 rm autom4te.cache -rf

5. make && make install