DEEPIN编译文件出现找不到链接库?
Tofloor
poster avatar
smr1113
deepin
2020-02-18 21:15
Author
ld: cannot find crti.o: 没有那个文件或目录
ld: cannot find -lc
ld: cannot find crtn.o: 没有那个文件或目录
collect2: error: ld returned 1 exit status

已经设置了LDLIB:
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnuLD_LIBRARY_PATH

centos都没这个问题。
deepin如何解决?

Reply Favorite View the author
All Replies
avatar
Feng Yu
deepin
2020-02-18 21:38
#1
那个环境变量不要乱设置,错误的搞法。不要用centos的做法去玩deepin,根本就是瞎搞。乱设置这个环境变量就已经破坏了系统查找动态链接库的方式。
你不要乱百度,应该找一本专门讲解系统的书去系统学一下。以Debian/Ubuntu为主,国内讲红帽的书可以扔了,基本都是垃圾
Reply View the author
avatar
电脑迷
deepin
2020-02-20 00:30
#2
The user is banned, and the content is hidden.
avatar
wangnet
deepin
2020-02-20 01:30
#3
我觉得为啥linux软件没有绿色版本一样,很少,如果可行,咱们也封装一些,毕竟改变习惯有点痛苦
Reply View the author
avatar
laoliu945
deepin
2020-02-20 03:50
#4
参考 https://www.jianshu.com/p/9fbdfd919fc0
Reply View the author
avatar
zhangn1985
deepin
2020-02-20 05:51
#5
ld 和LD_LIBRARY_PATH无关, ld要用-L -l
Reply View the author