• Online Tools
  • - Calculators
    • Character Count
  • - Download
    • TikTok Download
    • DouYin Download
  • - Web Tools
    • BASE64
    • Base64 to Image
    • Image to Base64
    • URL Encoding
    • JavaScript
    • Timestamp
    • Unicode Converter
    • JSON Format
    • Modify Extension
    • Make List
    • CSS Optimizer
  • - Encryption Tools
    • MD5 Encryption
    • Random Generator
  • - Image Tools
    • Image Compression
    • QR Code Generator
    • QR Code Reader
    • Wallpaper Preview
    • Image EXIF
  • - Info Sheets
    • Blood Type Heredity
    • Clothing Sizes
    • app.tool_clock
  • [email protected]
DopuBox
  • English
  • Español
  • Français
  • 日本語
  • 한국어
  • 简体中文
  • 繁體中文
全部 ニュース Meta Code 文化・アート
Centos 7 yumインストールgitサーバ
2021-12-27

gitのインストール

yum install git

gitバージョンの確認

git –version

新しいバージョンではないか、私たちが望んでいるバージョンではないことがわかりました。

このバージョンgitを削除

yum remove git

コンパイルツールのダウンロード

yum -y groupinstall Development Tools

依存パッケージのダウンロード

yum -y install zlib-devel perl-ExtUtils-MakeMaker asciidoc xmlto openssl-devel

Gitの最新バージョンのソースコードをダウンロード

wget https://www.kernel.org/pub/software/scm/git/git-2.32.0.tar.gz

ログインhttps://github.com/git/git/releasesgitの最新版を表示します。-rc付きのものをダウンロードしないでください。これは、パブリケーションの候補バージョンを表しています。

https://github.com/git/git/archive/refs/tags/v2.32.0.tar.gz

解凍

tar -zxvf git-2.9.5.tar.gz

ディレクトリ構成へのアクセス

cd git-2.32.0

./configure –prefix=/usr/local/git

インストール

make && make install

グローバルパスの設定

export PATH="/usr/local/git/bin:$PATH"

source /etc/profile

以上がインストールのすべての手順です。

その後の使用中にエラーが発生しました

Unable to find remote helper for ‘https’

解決方法:

/usr/libexec/git-coreをPATHに組み入れ、少なくともgitを使用する前にPATHを設定します。

PATH=$PATH:/usr/libexec/git-core

または、/etc/profileで直接変更します。

環境変数の代替シナリオを設定します。

[root@bogon git-2.3.0]# echo "export PATH=$PATH:/usr/local/git/bin" > /etc/profile.d/git.sh

[root@bogon git-2.3.0]# source /etc/profile.d/git.sh

[root@bogon git-2.3.0]# git --version

次は補足です

SSHを使用してGITサーバーを構築するには、以下の準備を行います。

1.gitをサーバとクライアント機器に別々にインストールする

2、サーバにsshサービスをインストールする

3、クライアント機器にSSHクライアントをインストールする

make cleanパージコンパイル

yum remove gitアンインストール

サービス・エンドのインストール:

(1)まずシステムを更新する

sudo yum update

(2)依存パッケージのインストール

sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker

(3)gitソースをダウンロードして解凍する

wget https://Github.com/Git/Git/archive/v2.32.0.tar.gz

tar zxvf v2.32.0.tar.gz

cd git-2.32.0

make prefix=/usr/local/git all

エラーが発生した場合:

libgit.a(utf8.o): In function reencode_string_iconv': /root/git-2.3.0/utf8.c:463: undefined reference tolibiconv’ libgit.a(utf8.o): In function reencode_string_len': /root/git-2.3.0/utf8.c:502: undefined reference tolibiconv_open’ /root/git-2.32.0/ut

make prefix=/usr/local/git install

libiconvのインストール

ダウンロード

cd /usr/local

wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz

tar -zxvf libiconv-1.14.tar.gz

cd libiconv-1.14

./configure –prefix=/usr/local/libiconv && make && make install

ソフトリンクを/usr/libに作成

ln -s /usr/local/lib/libiconv.so /usr/lib

ln -s /usr/local/lib/libiconv.so.2 /usr/lib

gitディレクトリに戻ってコンパイルを続行

< /home/git/.ssh/id_rsa.pub //初始化

make prefix=/usr/local/git all

make prefix=/usr/local/git install

**(5)git--versionを使用してgitバージョンを表示すると、gitは1.8.1バージョンのままであることがわかります。これは、デフォルトで「/usr/bin」のgitが使用されているためです。**

gitが存在するパスを次のコマンドで表示できます。

$ whereis git


ソース元URL:https://dopubox.com/article/p/e1ab0cf1d49ce667

Other Tools
  • Character Count TikTok Download DouYin Download BASE64 Base64 to Image Image to Base64 URL Encoding JavaScript Timestamp Unicode Converter JSON Format Modify Extension Make List CSS Optimizer MD5 Encryption Random Generator Image Compression QR Code Generator QR Code Reader Wallpaper Preview Image EXIF Blood Type Heredity Clothing Sizes app.tool_clock
  • 週末見たい展覧会5選。今週は木下佳通代の個展、テルマエ展、UESHIMA MUSEUMなど。【2024年6月第1週】
    2024-05-29

    原作者の意向は取り入れられたと日テレ
    2024-05-30

    制作期間「足りていなかった可能性」
    2024-05-31

    黒柳徹子さん、北京で特別授業 「日本語勉強続けて」
    2024-05-31

    【6月1日~2日】週末必見の“アート&デザイン”まとめ!
    2024-06-01

    デザインジャーナリストによる新しいデザイン誌の登場です!
    2024-06-01

    〈テロ事件と「美の復讐」〉15世紀末・イタリア「メディチ家兄弟暗殺計画」とルネサンスの画家たち
    2024-06-01

    元アシスタントが語る Dr.スランプ「あのキャラ」の誕生秘話
    2024-06-01

    エリザベートコンクールで吉田さん6位入賞
    2024-06-01

    映像化は「作家の意向第一」と小学館が指針
    2024-06-02

    知ってる? 「登録博物館等マーク」
    2024-06-05

    「CLAMP展」が国立新美術館で7月より開催。展示数は史上最多の約800点
    2024-06-04

    太宰府天満宮で「Fukuoka Art Book Fair」が開催へ
    2024-06-04

    ユージーン・スタジオが東南アジアに美術館を建設予定。新法人YES__pte.ltdを設立し、インドネシア・ジャカルタに美術館準備室を開設
    2024-06-04

    古今東西 かしゆか商店【つづら】
    2024-06-05

    田名網敬一の巨大インスタレーションが、世界初大規模回顧展「田名網敬一 記憶の冒険」に登場。国立新美術館で8月7日から
    2024-06-06

    「art stage OSAKA 2024」が9月に開催。大阪・関西万博への機運も醸成
    2024-06-05

    京都・祇園祭の「長刀鉾」稚児決まる 記者会見で「頑張ります」
    2024-06-06

    長山智美 デザイン狩人|HAY DOGS♡
    2024-06-06

    ブリン・バン・バン・ボンが1位 ビルボード、上半期人気曲
    2024-06-06

    ©  Dopu Box
    💛