标签:
./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
/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
标签:
原文地址:http://www.cnblogs.com/allenhaozi/p/5356036.html