krish – 起死回生 [Wake up from death & return to life.]

September 29, 2009

Installing git client

Filed under: GNU/Linux — krish @ 9:21 pm
Tags: , ,

Git is available at http://kernel.org/pub/software/scm/git/ as source distribution.

It has to be built on a box first and then can be used by porting it on any client (debatable).

Prerequisites

1. Install gcc
# yum install gcc

2. Install zlib-devel
# yum install zlib-devel

3. Install curl-devel
# yum install curl-devel

Download and Unpack

Browse http://kernel.org/pub/software/scm/git/ and choose the version that you need to install.

The latest stable at the time of writing this documentation is 1.6.4.4

# wget http://kernel.org/pub/software/scm/git/git-1.6.4.4.tar.gz

# tar xvzf git-1.6.4.4.tar.gz

Building the Source

1. Create a build target directory

  1. mkdir /home/dimdim

2. Configure the source tree

  1. cd git-1.6.4.4
  2. ./configure –prefix=/home/dimdim/git_root
  3. make
  4. make install

3. Archive the build target if you need it to be used on different machine

  1. cd /home/dimdim
  2. tar cvzf git_root.tgz git_root

Setting up environment to use Git

# echo “PATH=/home/dimdim/git_root/bin:$PATH” >> ~/.bash_profile

# echo “export PATH” >> ~/.bash_profile

# source ~/.bash_profile

Using Git

# mkdir -p /usr/local/mygitsources

# cd /usr/local/mygitsources

# git clone git://git.bingocardcreator.com/abingo.git

To use it on other machines

1. Copy the git_root.tgz archive on the target machine. (use scp, ftp… as per your convenience)

2. Unpack git_root.tgz in your target path

# cd /my/target/path

# tar xvzf git_root.tgz

3. Set up environment variable for PATH

# echo “PATH=/my/target/path/git_root/bin:$PATH” >> ~/.bash_profile

# echo “export PATH” >> ~/.bash_profile

# source ~/.bash_profile

4. Start using `git` from anywhere on the filesystem.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Please leave a Reply / Discuss this topic here :)

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

The Male Factor

On behalf of the ignored gender

Rough Draft

by Atteris Amarth and Darrek Ringo

The Kochi Post.

Read by all + Influenced by none

JumboMake

A signature of Kiran

SAAYAM CHEDDAM FOUNDATION

This blog is just for additional and extension share of it's main frames. No activity is planned from here

krish - 起死回生 [Wake up from death & return to life.]

Get a sneak peek into krish's life, work and passion.

WordPress.com

WordPress.com is the best place for your personal blog or business site.

A Tale of Two and a Half

Monika Amita Bakshi

%d bloggers like this: