You must prepare the yum repo, and install git, and grant sudo without password to current user before this work.
- Touch a repo config file, config the repo server, and copy it to /etc/yum.repos.d
- Install git with yum command: yum install git
- Modify the /etc/sudoers, and sudo without password to current user
You can create the build environment via install/traf_checkset_env.sh, after you clone the code of Trafodion from github.
The workflow is as following:
- download the code of Trafodion
git clone git@github.com:apache/trafodion.git - run the traf_checkset_env.sh to prepare the build environment, change the directory to the root of Trafodion code.
./install/traf_checkset_env.sh
the log as following:
INFO: command yum exists
INFO: command lsb_release exists
INFO: command awk exists
INFO: command cut exists
INFO: command uname exists
INFO: os is [GNU/Linux], cpu architecture is [x86_64]
INFO: os distributor id is [ CentOS]
INFO: os version is [ 6.9]
INFO: install dependent library start
INFO: install dependent library [epel-release] success
......
INFO: Hadoop/HDFS libs on Wed Jan 24 08:07:08 UTC 2018
INFO: Hadoop/HDFS is already installed, skipping to next tool
***********************************************************
INFO: Waiting for all background builds. This might take a while.
INFO: Completed tools builds on Wed Jan 24 08:07:08 UTC 2018
INFO: List of tools directory:
apache-maven-3.3.3
bison_3_linux
dest-llvm-3.2
dest-mpich-3.0.4
hadoop-2.6.0
icu4c_4.4
protobuf-2.5.0
thrift-0.9.0
udis86-1.7.2
zookeeper-3.4.5
Install the required Build tools SUCCESS!
If you look the SUCCESS, you have created a environment for building.
Congratulations!