Difference between revisions of "Git: compile dari source code"

From OnnoWiki
Jump to navigation Jump to search
(New page: Sumber: http://www.mikepilat.com/blog/2011/06/how-to-build-git-from-source-on-ubuntu/ ==Buang git== sudo apt-get remove --purge git git-core apt-get autoremove ==Install aplikasi pend...)
 
 
(4 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
==Install aplikasi pendukung==
 
==Install aplikasi pendukung==
  
  sudo apt-get install bzip2 curl ssh expat zlib1g zlib1g-dev tk python
+
  sudo apt-get install bzip2 curl ssh expat zlib1g zlib1g-dev tk python \
 
+
libcurl3 libcurl3-dbg libcurl3-gnutls libcurl3-nss
  
 
==Download source code git==
 
==Download source code git==
Line 16: Line 16:
 
  curl -O https://www.kernel.org/pub/software/scm/git/git-2.0.2.tar.gz
 
  curl -O https://www.kernel.org/pub/software/scm/git/git-2.0.2.tar.gz
 
  tar zxvf git-2.0.2.tar.gz
 
  tar zxvf git-2.0.2.tar.gz
cd git-2.0.2
 
  
 +
curl -O https://www.kernel.org/pub/software/scm/git/git-core-0.99.6.tar.gz
 +
tar zxvf git-core-0.99.6.tar.gz
  
 
==Build==
 
==Build==
Line 25: Line 26:
 
  make
 
  make
 
  sudo make install
 
  sudo make install
 +
 +
cd /usr/local/src/git-core-0.99.6
 +
./configure
 +
make
 +
sudo make install
 +
 +
==Cek Versi==
  
 +
git --version
  
 
==Referensi==
 
==Referensi==
  
 
* http://www.mikepilat.com/blog/2011/06/how-to-build-git-from-source-on-ubuntu/
 
* http://www.mikepilat.com/blog/2011/06/how-to-build-git-from-source-on-ubuntu/

Latest revision as of 16:32, 19 July 2014

Sumber: http://www.mikepilat.com/blog/2011/06/how-to-build-git-from-source-on-ubuntu/

Buang git

sudo apt-get remove --purge git git-core
apt-get autoremove

Install aplikasi pendukung

sudo apt-get install bzip2 curl ssh expat zlib1g zlib1g-dev tk python \
libcurl3 libcurl3-dbg libcurl3-gnutls libcurl3-nss

Download source code git

cd /usr/local/src
curl -O https://www.kernel.org/pub/software/scm/git/git-2.0.2.tar.gz
tar zxvf git-2.0.2.tar.gz
curl -O https://www.kernel.org/pub/software/scm/git/git-core-0.99.6.tar.gz
tar zxvf git-core-0.99.6.tar.gz

Build

cd /usr/local/src/git-2.0.2
./configure
make
sudo make install

cd /usr/local/src/git-core-0.99.6
./configure
make
sudo make install

Cek Versi

git --version

Referensi