Cent OS上搭建Intellij、SBT、Scala和Spark
2017-04-11 17:25
405 查看
1)安装最新版的Git
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
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.
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
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 requiredpackagesbefore 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 therequirements 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
相关文章推荐
- spark开发环境搭建intellij+Scala+sbt
- 0070 IntelliJ IDEA+Scala+Hadoop +Spark的开发环境搭建
- Intellij IDEA使用Maven搭建spark开发环境(scala)
- IDEA搭建spark-scala的sbt编辑环境实现WorldCount练习
- Spark-Scala-IntelliJ开发环境搭建和编译Jar包流程
- Intellij IDEA开发环境搭建,scala配置及打包,jar包在spark中的运行
- Spark开发环境搭建(IDEA、Scala、SVN、SBT)
- Spark Scala IntelliJ IDEA开发环境搭建(入门)
- Ubuntu+Spark+IDEA+SBT+scala项目搭建流程记录
- Spark学习: Spark-Scala-IntelliJ开发环境搭建和编译Jar包流程
- IntelliJ IDEA Maven,Eclispe Maven,sbt 创建spark Scala和Java项目
- idea中spark工程创建(scala+sbt)
- intellij搭建Scala开发环境
- Spark1.6.1平台搭建(hadoop-2.7.2 scala-2.11.8)
- Playframework,Scala开发环境搭建(IntelliJ+ Windows)
- windows下使用sbt搭建Scala开发环境
- IntelliJ IDEA13.1.3+Scala2.11.1环境搭建
- MAC系统中搭建Spark大数据平台(包括Scala)
- Intellij Idea搭建Spark开发环境