checking forlibzip... in defaultpath: found in /usr/local
checking forzip_open in -lzip... yes
checking forzip_file_set_encryption in -lzip... yes
checking forzip_libzip_version in -lzip... no
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking forstdbool.h... yes
checking fts.h usability... yes
checking fts.h presence... yes
checking forfts.h... yes
checking forint8_t... (cached) yes
checking forint16_t... (cached) yes
checking forint32_t... (cached) yes
checking forint64_t... (cached) yes
checking foruint8_t... (cached) yes
checking foruint16_t... (cached) yes
checking foruint32_t... (cached) yes
checking foruint64_t... (cached) yes
checking forssize_t... yes
checking size of short... (cached) 2
checking size of int... (cached) 4
checking size of long... (cached) 8
checking size of long long... (cached) 8
checking size of off_t... 0
configure: error: off_t undefined; check your library configuration
off_t 类型是在 头文件 unistd.h中定义的, 在32位系统 编程成 long int ,64位系统则编译成 long long int , 在进行编译的时候 是默认查找64位的动态链接库, 但是默认情况下 centos 的动态链接库配置文件/etc/ld.so.conf里并没有加入搜索路径, 这个时候需要将 /usr/local/lib64 /usr/lib64 这些针对64位的库文件路径加进去。
1
2
3
4
5
6
7
8
#添加搜索路径到配置文件
echo'/usr/local/lib64
/usr/local/lib
/usr/lib
/usr/lib64'>>/etc/ld.so.conf
#然后 更新配置
ldconfig -v
安装
1
make && make install
报错 usr/local/include/zip.h:59:21: fatal error: zipconf.h: No such file or directory
Warning: "continue"targeting switchis equivalent to "break". Did you mean to use"continue 2"? in phar:///home/flame/software/php-7.3.0/pear/install-pear-nozlib.phar/PEAR/PackageFile/v2/Validator.php on line 1933
[PEAR] Archive_Tar - installed: 1.4.3
[PEAR] Console_Getopt - installed: 1.4.1
[PEAR] Structures_Graph- installed: 1.1.1
[PEAR] XML_Util - installed: 1.4.2
[PEAR] PEAR - installed: 1.10.5
Wrote PEAR system config file at: /usr/local/php/etc/pear.conf
You may want to add: /usr/local/php/lib/php to your php.ini include_path