vim /etc/ld.so.conf
#添加如下几行
/usr/local/lib64
/usr/local/lib
/usr/lib
/usr/lib64
#保存退出
:wq
ldconfig -v # 使之生效
php安装执行configure报错error: off_t undefined; check your library configuration
本文介绍了如何在Linux中编辑/etc/ld.so.conf文件,添加本地库路径如/usr/local/lib64和/usr/local/lib,然后使用ldconfig-v命令使更改生效,确保动态链接器能正确查找库文件。

1516

被折叠的 条评论
为什么被折叠?



