unbuntu运行gcc出现collect2: fatal error: cannot find 'ld'
来源:互联网 发布:澳洲传媒硕士 知乎 编辑:程序博客网 时间:2024/05/01 18:24
今天在使用unbuntu的编译代码的时候出现了一个问题,之前编译ok的代码都编译不出来,一直报collect2: fatal error: cannot find 'ld'这个错误,百度了一大圈都没找到,然后在google上找到了解决办法,google确实比百度强大了好多啊,话不多说具体操作如下:
1.首先apt-get install binutils-gold。
2.在apt之后然后在软连接ln -s /usr/bin/ld.gold /usr/bin/x86_64-nptl-linux-gnu-ld.gold,等软连接之后再编译就OK了。
如果可以翻墙的话可以访问https://askubuntu.com/questions/798453/collect2-fatal-error-cannot-find-ld-compilation-terminated这个连接找到答案。
阅读全文
0 0
- unbuntu运行gcc出现collect2: fatal error: cannot find 'ld'
- gcc: collect2 cannot find 'ld'
- 编译时候出现/usr/bin/ld: cannot find -lssl /usr/bin/ld: cannot find -lcrypto collect2: error: ld returned
- linux下运行Qt出现cannot find -lGL和collect2: ld returned 1 exit status解决方法
- centos7.1 QT5编译出现:cannot find -lGL 和 collect2:error:ld returned 1 exit status 错误
- Ubuntu15.04 QT5编译出现cannot find -lGL 和 collect2:error:ld returned 1 exit status 错误
- centos7.1 QT5编译出现:cannot find -lGL 和 collect2:error:ld returned 1 exit status 错误
- /usr/bin/ld: cannot find -lGL collect2: error: ld returned 1 exit status
- svn 安装过程出现/usr/bin/ld: cannot find -lexpat collect2: ld returned 1 exit status make: *** [subversion/svn/svn] Error 1 解决方法
- Linux gcc编译error:"collect2: ld returned 1 exit status"
- ubuntu12.04中安装了qt5.3.1编译qt程序时出现/usr/bin/ld: cannot find -lGL collect2: ld 返回 1
- gcc连接静态库的时候的出现错误/usr/bin/ld: cannot find -lc
- /usr/bin/ld: error: cannot find -lGL
- /usr/bin/ld: error: cannot find -lGL
- /usr/bin/ld: error: cannot find -lGL
- /usr/bin/ld: error: cannot find -lGL
- linux--安装完qt出现 /usr/bin/ld: error: cannot find -lGL错误
- qt creator 提醒cannot find -lqtmaind collect2: ld returned 1 exit status
- 借由ARM CORTEX-M芯片分析C程序加载和存储模型
- 如何让li横排显示
- Spark性能调优:使用Kryo序列化库、RDD的压缩
- java.sql.SQLException: null, message from server: "Host 'xxx' is not allowed to connect to this MySQ
- ansible基础入门
- unbuntu运行gcc出现collect2: fatal error: cannot find 'ld'
- display:flex 布局教程 (赞,清晰)
- cain使用教程
- 苹果支持WebRTC
- CO01涉及到的透明表
- LeetCode 226. Invert Binary Tree (Easy)
- Android JNI报错:java.lang.UnsatisfiedLinkError: Native method not found ..........解决办法
- 查看linux系统内存使用情况
- 意外泄露!!!室友的C语言考了99分竟然是因为这张图...