php 7.3.3安装问题记录
1、checking for libzip... not found
configure: error: Please reinstall the libzip distribution
参考:https://www.cnblogs.com/gyfluck/p/10478386.html
实际上已经安装libzip,可能版本问题,删除默认,重新手动安装 https://libzip.org/download/
(1)移除旧的libzip:
yum remove libzip
(2)安装新版本:
curl-O https://libzip.org/download/libzip-1.5.2.tar.gz tar -zxvf libzip-1.5.2.tar.gz cd libzip-1.5.2 mkdir build cd build cmake .. make && make install
实际没安装cmake,安装过程:https://cmake.org/download/
参考 https://blog.csdn.net/jiang_xinxing/article/details/77945478
wget https://cmake.org/files/v3.6/cmake-3.6.2.tar.gz tar xvf cmake-3.6.2.tar.gz cd cmake-3.6.2/ ./bootstrap gmake gmake install #安装目录 /usr/local/bin/cmake #新建软连接 #ln -s /usr/local/bin/cmake /usr/bin/
2 error: off_t undefined; check your library configuration
依据 https://bugs.php.net/bug.php?id=73943
was caused by the correct path to libzip library missing from the LD_LIBRARY_PATH
解决方法:https://segmentfault.com/q/1010000007346459
# 添加搜索路径到配置文件 echo '/usr/local/lib64 /usr/local/lib /usr/lib /usr/lib64'>>/etc/ld.so.conf # 更新配置 ldconfig -v
但依据此帖其他人说法,可能会出现问题。