当前位置: 首页 > news >正文

git编译安装报错

编译安装步骤

卸载旧的 yum -y remove gitcd /usr/local/src/wget https://www.kernel.org/pub/software/scm/git/git-2.15.1.tar.xztar -vxf git-2.15.1.tar.xzcd git-2.15.1make prefix=/usr/local/git allmake prefix=/usr/local/git installecho "export PATH=$PATH:/usr/local/git/bin" >> /etc/profilesource /etc/profilegit --version保存账号git config --global credential.helper store

报错:


make prefix=/usr/local/git allLINK git-credential-store
/opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/ld: /lib/../lib64/crti.o: unable to initialize decompress status for section .debug_aranges
/opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/ld: /lib/../lib64/crti.o: unable to initialize decompress status for section .debug_aranges
/opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/ld: /lib/../lib64/crti.o: unable to initialize decompress status for section .debug_aranges
/opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/ld: /lib/../lib64/crti.o: unable to initialize decompress status for section .debug_aranges
/lib/../lib64/crti.o: file not recognized: 不可识别的文件格式
collect2: error: ld returned 1 exit status
make: *** [Makefile:2171: git-credential-store] Error 1

检查ld

ll /opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/ld

执行命令换成正常的ld

rm -rf /opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/ld

ln -s /usr/bin/ld /opt/rh/devtoolset-8/root/usr/libexec/gcc/x86_64-redhat-linux/8/ld

http://www.lryc.cn/news/439644.html

相关文章:

  • 知识|智能网联汽车多域电子电气架构会如何发展?
  • 【C++算法】位运算
  • PMP--一模--解题--101-110
  • 为了有了ReentrantLock还需要ReentrantReadWriteLock?
  • Vite打包zip并改名为md5sum哈希案例
  • 并行编程实战——TBB中节点的数据结构
  • ClickHouse总结
  • Guava中Preconditions校验
  • 容器技术--Docker常用命令
  • 【Linux】网络层协议——IP
  • 【Echarts】vue3打开echarts的正确方式
  • 一些学习three的小记录
  • Porcupine - 语音关键词唤醒引擎
  • Golang | Leetcode Golang题解之第409题最长回文串
  • 【C++】STL数据结构最全函数详解2-向量vector
  • 阿里云 Quick BI使用介绍
  • LLMs之SuperPrompt:SuperPrompt的简介、使用方法、案例应用之详细攻略
  • Java中的Web服务开发:RESTful API的最佳实践
  • Linux创建虚拟磁盘并分区格式化
  • 面试经典150题——最后一个单词的长度
  • 【C++】入门基础(上)
  • Mac中Twig模版安装与SSTI漏洞学习
  • 【20.5 python中的FastAPI】
  • 研1日记13
  • Go语言错误处理详解
  • C++基础知识7 list
  • Android 车联网——汽车模块介绍(附1)
  • Windows下SDL2创建最简单的一个窗口
  • C++ | Leetcode C++题解之第406题根据身高重建队列
  • 【网络安全】-ssrf服务器请求伪造攻击-burp