ubuntu编译安装php5.6.28

下载并解压php5.6后

1. cd php5.6

2. sudo ./configure --prefix=/usr/local/php5.6 --enable-mbstring --enable-ftp --with-gd  --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-openssl --with-pdo-mysql=mysqlnd --with-pear --enable-sockets --enable-gd-native-ttf --with-zlib --with-xmlrpc --enable-zip --enable-fpm --enable-xml --enable-sockets --with-iconv --enable-zip --enable-soap --enable-pcntl --enable-cli

3.  提示:configure: error: Cannot find OpenSSL's <evp.h>
   解决:sudo apt-get install openssl openssl-dev

  再configure
  如果还未解决:

  则 sudo apt-get install libssl-dev

  再次 configure

  其他的提示缺少什么, 则 sudo apt-get install lib<缺少文件名>-dev(le)

4.make & sudo make install

 

posted on 2016-12-02 14:09  D&L  阅读(254)  评论(0编辑  收藏  举报