kela 发表于 2018-7-13 18:48:51

lnmp 安装PHP失败

Checking ...







licess 发表于 2018-7-13 20:39:05

/bin/sh /root/lnmp1.5/src/php-5.6.36/libtool --silent --preserve-dup-deps --mode=compile cc-Iext/openssl/ -I/root/lnmp1.5/src/php-5.6.36/ext/openssl/ -DPHP_ATOM_INC -I/root/lnmp1.5/src/php-5.6.36/include -I/root/lnmp1.5/src/php-5.6.36/main -I/root/lnmp1.5/src/php-5.6.36 -I/root/lnmp1.5/src/php-5.6.36/ext/date/lib -I/root/lnmp1.5/src/php-5.6.36/ext/ereg/regex -I/usr/include/libxml2 -I/usr/local/freetype/include/freetype2 -I/root/lnmp1.5/src/php-5.6.36/ext/mbstring/oniguruma -I/root/lnmp1.5/src/php-5.6.36/ext/mbstring/libmbfl -I/root/lnmp1.5/src/php-5.6.36/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I/root/lnmp1.5/src/php-5.6.36/ext/sqlite3/libsqlite -I/root/lnmp1.5/src/php-5.6.36/ext/zip/lib -I/root/lnmp1.5/src/php-5.6.36/TSRM -I/root/lnmp1.5/src/php-5.6.36/Zend    -I/usr/local/include -g -O2 -fvisibility=hidden-c /root/lnmp1.5/src/php-5.6.36/ext/openssl/openssl.c -o ext/openssl/openssl.lo
/root/lnmp1.5/src/php-5.6.36/ext/openssl/openssl.c:44:25: fatal error: openssl/evp.h: No such file or directory
#include <openssl/evp.h>
                         ^
compilation terminated.
make: *** Error 1
/bin/sh /root/lnmp1.5/src/php-5.6.36/libtool --silent --preserve-dup-deps --mode=compile cc-Iext/openssl/ -I/root/lnmp1.5/src/php-5.6.36/ext/openssl/ -DPHP_ATOM_INC -I/root/lnmp1.5/src/php-5.6.36/include -I/root/lnmp1.5/src/php-5.6.36/main -I/root/lnmp1.5/src/php-5.6.36 -I/root/lnmp1.5/src/php-5.6.36/ext/date/lib -I/root/lnmp1.5/src/php-5.6.36/ext/ereg/regex -I/usr/include/libxml2 -I/usr/local/freetype/include/freetype2 -I/root/lnmp1.5/src/php-5.6.36/ext/mbstring/oniguruma -I/root/lnmp1.5/src/php-5.6.36/ext/mbstring/libmbfl -I/root/lnmp1.5/src/php-5.6.36/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I/root/lnmp1.5/src/php-5.6.36/ext/sqlite3/libsqlite -I/root/lnmp1.5/src/php-5.6.36/ext/zip/lib -I/root/lnmp1.5/src/php-5.6.36/TSRM -I/root/lnmp1.5/src/php-5.6.36/Zend    -I/usr/local/include -g -O2 -fvisibility=hidden-c /root/lnmp1.5/src/php-5.6.36/ext/openssl/openssl.c -o ext/openssl/openssl.lo
/root/lnmp1.5/src/php-5.6.36/ext/openssl/openssl.c:44:25: fatal error: openssl/evp.h: No such file or directory
#include <openssl/evp.h>
                         ^
compilation terminated.
make: *** Error 1

你系统上的openssl有问题

xusy1988 发表于 2018-7-26 19:23:12

回复 2# 的帖子

你好,军哥,我也遇到同样的错误,我是先安装了pptp,后安装lnmp1.5,无论选择那个PHP版本都是错误,怎么解决?请指教。

licess 发表于 2018-7-27 10:17:30

回复 3# 的帖子

没日志没法说
页: [1]
查看完整版本: lnmp 安装PHP失败