VPS侦探论坛

 找回密码
 注册
查看: 3113|回复: 1

ubuntu 14 无法安装 php出错

[复制链接]
发表于 2017-6-19 13:29:38 | 显示全部楼层 |阅读模式

请问如何解决
ubuntu 14  系统32位

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-6-19 20:31:49 | 显示全部楼层


/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: *** [ext/gd/libgd/gd_png.lo] Error 1
/bin/bash /root/lnmp1.4/src/php-5.5.38/libtool --silent --preserve-dup-deps --mode=compile cc -I/root/lnmp1.4/src/php-5.5.38/ext/gd/libgd -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -DENABLE_GD_TTF -Iext/gd/ -I/root/lnmp1.4/src/php-5.5.38/ext/gd/ -DPHP_ATOM_INC -I/root/lnmp1.4/src/php-5.5.38/include -I/root/lnmp1.4/src/php-5.5.38/main -I/root/lnmp1.4/src/php-5.5.38 -I/root/lnmp1.4/src/php-5.5.38/ext/date/lib -I/root/lnmp1.4/src/php-5.5.38/ext/ereg/regex -I/usr/include/libxml2 -I/usr/local/freetype/include/freetype2 -I/root/lnmp1.4/src/php-5.5.38/ext/mbstring/oniguruma -I/root/lnmp1.4/src/php-5.5.38/ext/mbstring/libmbfl -I/root/lnmp1.4/src/php-5.5.38/ext/mbstring/libmbfl/mbfl -I/usr/local/include -I/root/lnmp1.4/src/php-5.5.38/ext/sqlite3/libsqlite -I/root/lnmp1.4/src/php-5.5.38/TSRM -I/root/lnmp1.4/src/php-5.5.38/Zend    -I/usr/local/include -g -O2 -fvisibility=hidden  -c /root/lnmp1.4/src/php-5.5.38/ext/gd/libgd/gd_png.c -o ext/gd/libgd/gd_png.lo
In file included from /usr/include/png.h:536:0,
                 from /root/lnmp1.4/src/php-5.5.38/ext/gd/libgd/gd_png.c:10:
/usr/include/zlib.h:86:5: error: unknown type name ‘z_const’
     z_const Bytef *next_in;     /* next input byte */
     ^
/usr/include/zlib.h:86:19: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘*’ token
     z_const Bytef *next_in;     /* next input byte */
                   ^
In file included from /usr/include/zlib.h:34:0,
                 from /usr/include/png.h:536,
                 from /root/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 /root/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: *** [ext/gd/libgd/gd_png.lo] Error 1

不大清楚原因,只能选该系统的话,可以短消息我 ip和root密码,我看一下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-17 20:22 , Processed in 0.026271 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表