configure: error: off_t undefined; check your library configuration

错误描述

CentOS7 源码安装PHP7 执行 ./configure...命令后抛出错误:configure: error: off_t undefined; check your library configuration

解决办法

  • 添加搜索路径到配置文件
echo '/usr/local/lib64
/usr/local/lib
/usr/lib
/usr/lib64'>>/etc/ld.so.conf
  • 更新配置
ldconfig -v

你可能感兴趣的:(Linux,PHP,CentOS)