Cent OS上搭建Intellij、SBT、Scala和Spark

来源:互联网 发布:php的图书管理系统 编辑:程序博客网 时间:2024/04/28 06:21

1)安装最新版的Git

Installing Required Packages

In order to install Git, you need to ensure that the required packages have been installed on the system. Please key in the following command to install the required packagesbefore you begin compiling the Git source:

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

1.2.2 Step 2: Downloading and CompilingGit Source

Once installation of the required packages is done, you must download the Git source code from the kernel git. You may use the following command to download Git:

cd /usr/src
wget https://www.kernel.org/pub/software/scm/git/git-2.0.1.tar.gz
tar xzf git-2.0.1.tar.gz

The latest Git version at this time is 2.0.1. To find the latest available version when you follow this guide, go to this URL https://www.kernel.org/pub/software/scm/git/ and search for the git-VERSION.tar.gz with the highest version number.

Once you have successfully downloaded and extracted the Git source code, please key in the following command in order to compile the source code:

cd git-2.0.1
make prefix=/usr/local/git all
make prefix=/usr/local/git install
echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
source /etc/bashrc

The above command shall help you compile the source code, and you are not ready to move on to the next step.

1.2.3 Step 3: Checking the Git Version

The above steps successfully install the Git in software on your system. However, Git is a highly versatile software that comes in various versions to suit the requirements of users across the board. Every version has different commands to fetch the desired data. So, before you start using this software, you should know exactly what version you are using. This will help you to derive the desired results quickly. The command to check the version of Git is:

git -version

gitconfig --global user.name "John Doe"

gitconfig --global user.email peterdrucker@sample.com

gitconfig --global user.email peterdrucker@sample.com



0 0
原创粉丝点击