php7 install script

./configure --prefix=/home/admin/local/php7 --with-gd=/home/admin/local/libgd-2.1.1/ --with-jpeg-dir=/home/admin/local/jpeg/ --w
ith-png-dir=/home/admin/local/libpng/ --with-freetype-dir=/home/admin/local/freetype/ --with-pdo-mysql=/home/admin/local/mysql/ -
-with-config-file-path=/home/admin/local/php7/etc --with-libxml-dir=/home/admin/local/libxml2/ --enable-fpm --with-pcre-dir=/home
/admin/local/pcre/ --enable-mbstring --enable-pcntl --enable-mysqlnd --with-xpm-dir=/usr/lib64/

 

/home/admin/soft/php-7.0.5/ext/gd/gd.c:57:22: error: X11/xpm.h: No such file or directory

make: *** [ext/gd/gd.lo] Error 1

 

sudo yum install libXpm-devel.x86_64

rpm -ql libXpm

append this " --with-xpm-dir=/usr/lib64/"  to install php configure

install memcached 

 error: ext/standard/php_smart_str.h: No such file or directory 

 

 

 

 

 

 

 

 

posted @ 2016-04-05 17:43  hao.ma  阅读(342)  评论(0编辑  收藏  举报