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

git编译安装报错

编译安装步骤

卸载旧的 yum -y remove git


cd /usr/local/src/

wget https://www.kernel.org/pub/software/scm/git/git-2.15.1.tar.xz

tar -vxf git-2.15.1.tar.xz

cd git-2.15.1

make prefix=/usr/local/git all

make prefix=/usr/local/git install

echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/profile

source /etc/profile

git --version

 

保存账号

git config --global credential.helper store

报错:


make prefix=/usr/local/git all
    LINK 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.kler.cn/news/307777.html

相关文章:

  • 基于STM32的温度、电流、电压检测proteus仿真系统(OLED、DHT11、继电器、电机)
  • 计算机毕业设计 高校学术交流平台的设计与实现 Java实战项目 附源码+文档+视频讲解
  • 借助大模型将文档转换为视频
  • html+css+js网页设计 旅游 厦门旅游网10个页面
  • element-plus的面包屑组件el-breadcrumb
  • 使用 SuperCraft AI 设计书橱模型的指南
  • 简单代码实现视频转图片_py
  • 在Flask中实现日志记录
  • 动态ip切换频率是快点好还是慢点好
  • Mybatis批量操作
  • Java 使用 Redis
  • 并发容器(Map、List、Set)实战及其原理分析
  • 如何快速清理Docker中的停止容器?
  • HFish开源蜜罐系统常见问题排查
  • 10- 【JavaWeb】Tomcat、Servlet基础
  • springboot后端开发-常见注解及其用途
  • C++ this指针
  • 【高中数学/三角函数/判别式法】设x>0,y>0,x+2y=5,则(x+1)(2y+1)/(xy)^0.5的最小值为?
  • dedecms(四种webshell姿势)、aspcms webshell漏洞复现
  • VMWare中的Centos8:Errors during downloading metadata for repository ‘appstream‘
  • 0基础跟德姆(dom)一起学AI 数据处理和统计分析02-Linux进阶
  • S3C2440开发板点亮LED灯+PWM定时器
  • 深入理解图卷积网络(4)
  • 极狐GitLab DevSecOps 功能合集(七大安全功能)
  • Untiy中给资源名改大小写
  • 程易科技AI OS:赋能开发者,构建智慧未来
  • golang学习笔记21——golang协程管理及sync.WaitGroup的使用
  • Linux云计算 |【第三阶段】PROJECT1-DAY1
  • Spring Boot-自动配置问题
  • SQL题目分析:打折日期交叉问题--计算品牌总优惠天数