Linux 添加lib库文件

Linux下添加lib库文件

在 /etc/ld.so.conf 文件中添加库的搜索路径。

将自己可能存放库文件的路径都加入到/etc/ld.so.conf中是明智的选择

添加方法也极其简单,,将库文件的绝对路径直接写进去就OK了,一行一个。例如:

/usr/X11R6/lib

添加过路径后使用命令ldconfig 更新ld.so.cache

/etc/ld.so.cache 是一个非文本的数据文件,不能直接编辑,它是根据 /etc/ld.so.conf 中设置的搜索路径由 /sbin/ldconfig

我走得很慢!但我从不后退!

Linux 添加lib库文件

相关文章:

你感兴趣的文章:

标签云: