configure: error: off_t undefined; check your library configuration
發生背景:
編譯PHP時出現的提示,報錯信息為: configure: error: off_t undefined; check your library configuration 。
解決方案:
(1)輸入以下命令,添加搜索路徑到配置文件:
echo '/usr/local/lib64 /usr/local/lib /usr/lib /usr/lib64'>>/etc/ld.so.conf
(2)更新配置
ldconfig -v
參考資源:
https://www.kwx.gd/PHPEnvironment/CentOS-PHP-off-t.html。
https://blog.csdn.net/xlelou/article/details/86488710。