求助,如何更改gcc 默认搜索lib 的路径
Tofloor
poster avatar
登泰观海
deepin
2017-10-23 22:51
Author

工作中使用的很多软件要下载源码自己编译,deepin的 库文件位置在 /usr/lib/x86_64-gnu-linux 下,这就导致我在运行源码自带的configure 脚本时,默认寻找的是 /usr/lib 等位置,这就导致很多软件无法编译,需要在config时手动指定每个库的位置,动辄上百个库文件,手动做非常麻烦。以前在Ubuntu 和CentOS中就不会遇到这个问题。
请问下有没有什么简单的方法?
Reply Favorite View the author
All Replies
avatar
zouqilin
deepin
2017-10-23 22:55
#1
ld.so.conf
Reply View the author
avatar
155******38
deepin
2017-10-23 23:22
#2
配置path变量,还有就是修改makefile
Reply View the author
avatar
登泰观海
deepin
2017-10-24 01:51
#3

能说的详细一点吗
Reply View the author
avatar
woodelf
deepin
2017-10-24 04:07
#4
首先不应该怀疑configure脚本的问题么?deepin的ld.so.conf.d目录下面已经include了/usr/lib/x86_64-linux-gnu了。







    来自:Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0  (zh-CN)
    ——2017/10/23 下午8:07:36
    Reply View the author
    avatar
    登泰观海
    deepin
    2017-10-24 20:58
    #5
    https://bbs.deepin.org/post/147105
    首先不应该怀疑configure脚本的问题么?deepin的ld.so.conf.d目录下面已经include了/usr/lib/x86_64-linux- ...

    我们已经检查过了,configure 脚本自身没有问题,请问Id.so.conf.d 在哪里查看?
    Reply View the author
    avatar
    Lyvnee
    deepin
    2017-10-24 21:27
    #6
    ericbrown 发表于 2017-10-24 12:58
    我们已经检查过了,configure 脚本自身没有问题,请问Id.so.conf.d 在哪里查看? ...

    /etc/  下面
    Reply View the author
    avatar
    登泰观海
    deepin
    2017-10-30 22:50
    #7
    已经解决了~
    Reply View the author