Trafodion-1560 -- Improve script that sets up tools needed for Trafodion build
Fixed traf_tools_setup.sh to be more robust.
All stdout and stderr messages are logged and the requester only sees the
progress of the operation. If a tool fails to install, the script terminates
and details of the failure can be found in the log. Once the problem is fixed,
the script can be re-run. Upon rerun, tools already installed are skipped.
Failures may occur after the tools is partially installed, for example, failure
occurred during the make step after the tar file was downloaded. Upon rerun,
the tool will pickup where it left off and continue. In this case, the file
will not be downloaded again because it already exists.
Here is an example of the output: some tools have already been installed, some
have not been installed, and some are in various states of installation:
INFO: Starting tools build on Fri Oct 23 20:51:53 UTC 2015
INFO: Tar download location: /home/centos
INFO: Tool install directory location: /home/centos/tools
INFO: LogFile location: /home/centos/traf_tools_setup.log
***********************************************************
INFO: Installing MPI on Fri Oct 23 20:51:53 UTC 2015
INFO: downloaded tar file:
mpich-3.0.4.tar.gz
INFO: configure complete
INFO: make completed
INFO: make install complete, files placed in /home/centos/tools
INFO: MPI installation complete
***********************************************************
INFO: Installing Bison on Fri Oct 23 20:53:46 UTC 2015
INFO: downloaded tar file:
bison-3.0.tar.gz
INFO: configure complete
INFO: make completed
INFO: make install complete, files placed in /home/centos/tools
INFO: Bison installation complete
***********************************************************
INFO: Installing UDIS on Fri Oct 23 20:54:32 UTC 2015
INFO: UDIS is already installed, skipping to next tool
INFO: UDIS installation complete
***********************************************************
INFO: Installing LLVM on Fri Oct 23 20:54:32 UTC 2015
INFO: LLVM is already installed, skipping to next step
INFO: LLVM installation complete
***********************************************************
INFO: Installing ICU on Fri Oct 23 20:54:32 UTC 2015
INFO: ICU is already installed, skipping to next tool
INFO: ICU installation complete
***********************************************************
INFO: Installing ZooKeeper on Fri Oct 23 20:54:32 UTC 2015
INFO: tar file already downloaded, step skipped
INFO: source tree already exists
INFO: configure complete
INFO: make completed
INFO: make install complete, files placed in /home/centos/tools
INFO: ZooKeeper installation complete
***********************************************************
INFO: Installing Thrift on Fri Oct 23 20:54:41 UTC 2015
INFO: Thrift is already installed, skipping to next tool
INFO: Thrift installation complete
***********************************************************
INFO: Installing Maven on Fri Oct 23 20:54:41 UTC 2015
INFO: downloaded tar file: apache-maven-3.3.3-bin.tar.gz
INFO: Maven installation complete
***********************************************************
INFO: Completed tools build on Fri Oct 23 20:54:49 UTC 2015
INFO: List of tools directory:
apache-maven-3.3.3
bison_3_linux
dest-llvm-3.2
dest-mpich-3.0.4
icu4.4
thrift-0.9.0
udis86-1.7.2
zookeeper-3.4.5