lnmp安装php失败
阿里云 系统Ubuntu 14.04 64位安装到最后提示
Add php-fpm service at system startup...
Adding system startup for /etc/init.d/php-fpm ...
/etc/rc0.d/K20php-fpm -> ../init.d/php-fpm
/etc/rc1.d/K20php-fpm -> ../init.d/php-fpm
/etc/rc6.d/K20php-fpm -> ../init.d/php-fpm
/etc/rc2.d/S20php-fpm -> ../init.d/php-fpm
/etc/rc3.d/S20php-fpm -> ../init.d/php-fpm
/etc/rc4.d/S20php-fpm -> ../init.d/php-fpm
/etc/rc5.d/S20php-fpm -> ../init.d/php-fpm
Starting php-fpm /etc/init.d/php-fpm: 57: /etc/init.d/php-fpm: /usr/local/php/sbin/php-fpm: not found
failed
============================== Check install ==============================
Checking ...
Nginx: OK
MySQL: OK
Error: PHP install failed.
Sorry, Failed to install LNMP!
Please visit https://bbs.vpser.net/forum-25-1.html feedback errors and logs.
You can download /root/lnmp-install.log from your server,and upload lnmp-install.log to LNMP Forum. In file included from /usr/include/zlib.h:34:0,
from /usr/include/png.h:536,
from /data/lnmp1.4/src/php-5.5.38/ext/gd/libgd/gd_png.c:10:
/usr/include/zlib.h:1025:29: error: unknown type name ‘z_const’
typedef unsigned (*in_func) OF((void FAR *,
^
/usr/include/zlib.h:1029:33: error: unknown type name ‘in_func’
ZEXTERN int ZEXPORT inflateBack OF((z_streamp strm,
^
In file included from /usr/include/png.h:536:0,
from /data/lnmp1.4/src/php-5.5.38/ext/gd/libgd/gd_png.c:10:
/usr/include/zlib.h:1349:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Z_ARG’
ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...));
^
/usr/include/zlib.h:1673:5: error: unknown type name ‘z_off64_t’
z_off64_t pos;
^
/usr/include/zlib.h:1748:1: error: unknown type name ‘z_crc_t’
ZEXTERN const z_crc_t FAR * ZEXPORT get_crc_table OF((void));
^
/usr/include/zlib.h:1758:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Z_ARG’
ZEXTERN int ZEXPORTVA gzvprintf Z_ARG((gzFile file,
^
make: *** Error 1
不清楚原因,可以尝试换个php版本或系统版本试试 换了php版本也一样
回复 2# 的帖子
换了php版本也一样回复 4# 的帖子
那就只能换其他系统版本或发行版了
页:
[1]