Wednesday, December 25, 2019

git - building from source on CentOS 6

I wanted to revise my knowledge and skills in git.

Taking a GitHub course sounded like a good idea, but git is invasive into user/credentials/config matters so I didn't dare to do it from my main user.

Old CentOS 6 machine collects dust under my desk and no one cares about it. Why cannot I make my git lessons on it?

$ git --version
$ git version 1.7. ..
(cannot recall the last digit)

Upgrade does not help - the official RHEL repository only has outdated version.
Should I add another repository and try upgrading from there?.. Or perhaps just try building from source?

Let's get source:

$ mkdir gitsource
$ cd gitsource
$ git clone https://github.com/git/git

Now I have the source in gitsource/git. Googling for build instructions leads me here and I do exactly as it reads:

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

This provides me with old as my life gcc version 4.4.7 and all rusty rest.

Let's start building:

$ cd git $ make prefix=/usr/local/git all

It runs... Uuups! git-http-fetch error 1

Googling the error. Answers look unrelated.

Looking up the terminal. Compiler goes to anaconda directory at different user. What is in the PATH? Exactly! The path to anaconda goes first. Remove it.

No more errors.

$ make prefix=/usr/local/git install
$ echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc

It's not the best idea to change global PATH, just have stumbled at it, but at least adding it at the end.

Checking:

$ git --version
$ git version 2.24.GIT

Now I can start learning.

2 comments:

  1. Betting Sites with a Virtual Horse Racing App - SmF.info
    With virtual horse racing betting sites, you can bet on all kinds of events 에스엠카지노 and races (if you're serious), with 선시티카지노 races on any given day, from pre-race

    ReplyDelete
  2. 7BitCasino is a great crypto gambling web site and a perfect place for players who wish to explore as many games until they find the right one. In terms of online popularity, BitStarz is remarkably well-liked among each amateurs and veteran gamblers. It boasts a four.5 of 5 on Casino Rankings and four.four of 5 on Trustpilot primarily based on thousands of verified rankings. Lisa Nower, a Rutgers University professor and director of its Center for Gambling Studies, said sports activities betting contributes. Arnie Wexler, an authorized counselor and former director of the Council on Compulsive Gambling of New Jersey, told the Assembly in current testimony that America is destroying its youth by making it really easy to develop a gambling dependancy. But gambling analysts and dependancy 카지노사이트 specialists say that has made gambling extra accessible to youth who can’t legally gamble outcome of|as a outcome of} they’re not 21 years old.

    ReplyDelete