您的位置:首页 > 其它

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

2017-04-11 17:25 405 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: