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

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

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?

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:
Then, compile and install:

$ tar -zxf git-
$ cd git-
$ 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://

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?

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Friday in Jira Service Desk

Looking for anyone who has switched from Zendesk to Jira Service Desk

Hi Community! The Jira Service Desk marketing team is looking for customers who have successfully switched from Zendesk to Jira Service Desk!   We’d love to hear your thoughts on the pros and ...

49 views 2 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you