php.zip安装教程,php安装zip报错的解决方法

报错如下

checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libra ries... yes

checking whether -lc should be explicitly linked in... no

checking dynamic linker characteristics... GNU/Linux ld.so

checking how to hardcode library paths into programs... immediate

checking whether stripping libraries is possible... yes

checking if libtool supports shared libraries... yes

checking whether to build shared libraries... yes

checking whether to build static libraries... no

creating libtool

appending configuration tag "CXX" to libtool

configure: creating ./config.status

config.status: creating config.h

[root@iZj6c9fycfu187h152lcsxZ zip-1.15.2]# make

/bin/sh /usr/src/zip-1.15.2/libtool --mode=compile cc -I/usr/local/include -I. - I/usr/src/zip-1.15.2 -DPHP_ATOM_INC -I/usr/src/zip-1.15.2/include -I/usr/src/zip -1.15.2/main -I/usr/src/zip-1.15.2 -I/usr/local/php/include/php -I/usr/local/php /include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php /Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/src/zip-1.15.2/php7 -DHAVE_CONFIG_H -g -O2 -c /usr/src/zip-1.15.2/ph p7/php_zip.c -o php7/php_zip.lo

mkdir php7/.libs

cc -I/usr/local/include -I. -I/usr/src/zip-1.15.2 -DPHP_ATOM_INC -I/usr/src/zip -1.15.2/include -I/usr/src/zip-1.15.2/main -I/usr/src/zip-1.15.2 -I/usr/local/ph p/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSR M -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/loca l/php/include/php/ext/date/lib -I/usr/src/zip-1.15.2/php7 -DHAVE_CONFIG_H -g -O2 -c /usr/src/zip-1.15.2/php7/php_zip.c -fPIC -DPIC -o php7/.libs/php_zip.o

In file included from /usr/src/zip-1.15.2/php7/php_zip.h:31,

from /usr/src/zip-1.15.2/php7/php_zip.c:36:

/usr/local/include/zip.h:59:21: error: zipconf.h: No such file or directory

In file included from /usr/src/zip-1.15.2/php7/php_zip.h:31,

from /usr/src/zip-1.15.2/php7/php_zip.c:36:

/usr/local/include/zip.h:258: error: expected specifier-qualifier-list before ‘z ip_int64_t’

In file included from /usr/src/zip-1.15.2/php7/php_zip.h:31,

from /usr/src/zip-1.15.2/php7/php_zip.c:36:

/usr/local/include/zip.h:285: error: expected specifier-qualifier-list before ‘z ip_uint64_t’

/usr/local/include/zip.h:307: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribu te__’ before ‘zip_flags_t’

/usr/local/include/zip.h:309: error: expected declaration specifiers or ‘...’ be fore ‘*’ token

/usr/local/include/zip.h:309: error: expected declaration specifiers or ‘...’ be

解决方法

在安装完新版的 libzip 时可能会出现打不到 zipconf.h,手动复制一下 cp /usr/local/lib/libzip/include/zipconf.h /usr/local/include/zipconf.h

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值