美文网首页
Linux安装源码git

Linux安装源码git

作者: 野草_疯长 | 来源:发表于2021-12-29 17:51 被阅读0次

1、下载、解压、安装依赖软件包、编译

wget https://github.com/git/git/archive/refs/tags/v2.34.1.zip
unzip v2.34.1.zip
cd git-2.34.1/
yum -y install gcc openssl-devel.x86_64 curl-devel expat-devel libtool
yum -y remove git
cd /usr/local/src/
wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz
tar -zxvf libiconv-1.15.tar.gz 
cd libiconv-1.15/
./configure --prefix=/usr/local/libiconv && make && make install
ln -s /usr/local/lib/libiconv.so /usr/lib
ln -s /usr/local/lib/libiconv.so.2 /usr/lib
cd /opt/git-2.34.1/
make configure
./configure --prefix=/usr/local/git --with-iconv=/usr/local/libiconv
make && make install

2、配置环境变量

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

3、查看git是否成功安装

git --version

相关文章

  • 安装git

    windows下面安装git: linux上安装,以centos 6.6为例: yum命令安装: 编译git源码安装:

  • Ubuntu-Linux内核更新

    安装前需要工具 一、下载源码 如果安装了git 或者从The Linux Kernel Archives下载源码解...

  • phalcon 学习笔记—— linux安装

    linux下编译安装phalcon 1、下载源码包运行命令: git clone --depth=1 git:/...

  • Linux中源码安装git

    由于Linux中使用yum安装的git版本过于老旧,我们通过源码安装的方式安装最新版的Git。 先安装Git依赖项...

  • 基于CentOS搭建 Git 服务

    官方安装详细介绍https://git-scm.com/download/linux 本文介绍通过源码安装 1、下...

  • 源码安装 Git [CentOS]

    起步 - 源码安装 Git [CentOS] 1.1 yum 安装 如果你想在 Linux 上用二进制安装程序来安...

  • git使用

    一.Git命令(bash) 一.1.安装 Linux:先从Git官网下载源码,然后解压,依次输入:./config...

  • cJSON库使用

    cJSON安装 在Linux下,使用下面命令下载源码git clone https://github.com/D...

  • Linux Git 源码安装

    Git官网源码地址: https://mirrors.edge.kernel.org/pub/software/s...

  • Linux安装源码git

    1、下载、解压、安装依赖软件包、编译 2、配置环境变量 3、查看git是否成功安装

网友评论

      本文标题:Linux安装源码git

      本文链接:https://www.haomeiwen.com/subject/uvtbqrtx.html