Can't seem to install Git 1.8 unto EC2 for Stash install

joseffb November 25, 2012

Wondering if you guys have run into this issue before. EC2 has git 1.4.2 installed and when I installed via make git --version still says git 1.4.2.

So how do you install git 1.8 unto an EC2 instance? thanks!

2 answers

0 votes
joseffb November 25, 2012

So i ended up manually installing and it was installing into /usr/local/bin/ rather then /usr/bin/git. I symlinked it over and seems to be working now.

symlinked with: ln -s /usr/local/bin/git /us/bin/git

0 votes
Shamil Nunhuck November 25, 2012

What operating system is installed in your instance?

Also, how are you installing git?

If it's CentOS, I assume your making it from the tarball available from Git?

joseffb November 25, 2012

Using the EC2 Linux (CentOS clone) from Amazon.

I just noticed that I didn't have automake installed and thats why the manual make install didn't work.

Trying this will let you know what happens.
$ yum install curl-devel expat-devel gettext-devel \
  openssl-devel zlib-devel

When you have all the necessary dependencies, you can go ahead and grab the latest snapshot from the Git web site:

http://git-scm.com/download
Then, compile and install:

$ tar -zxf git-1.7.2.2.tar.gz
$ cd git-1.7.2.2
$ make all (removed prefix)
$ sudo make install (removed prefix)
After this is done, you can also get Git via Git itself for updates: $ git clone git://git.kernel.org/pub/scm/git/git.git

UPDATE: No luck with above. I've tried with prefix=/usr/bin/ as wella nd nothing. git --version continues to give a -bash: /usr/bin/git: No such file or directory error.

Anyone know of a yum for this?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events