Compilation
After saving software packages to specified directories and preparing the environment, you can run the compile_build.sh script to compile involved software. The compilation takes more than 60 minutes. If version switching is involved, run the compile_clean.sh script to clear residual compilation data.
compile_build.sh:
source ./compile_liboath.sh # Import the compile_liboath.sh script.
source ./compile_zookeeper.sh # Import the compile_zookeeper.sh script.
source ./compile_client.sh # Import the compile_client.sh script.
source ./compile_server.sh # Import the compile_server.sh script.
set "-e"
function main()
{
cd /home
compile_liboath_build # Build liboath.
compile_zookeeper_build # Build ZooKeeper.
compile_client_build # Build client software.
compile_server_build # Build server software.
}
main
Perform compilation.
sh compile_build.sh
Parent topic: Usage Example