The DeepMind Lab library uses Bazel as the build tool, which in turn requires Java. The book's code repository has a script that you can run to easily set up DeepMind Lab. You can find the script under the chapter9 folder at https://github.com/PacktPublishing/Hands-On-Intelligent-Agents-with-OpenAI-Gym/tree/master/ch9. You can run the script using the following command:
(rl_gym_book) praveen@ubuntu:~/HOIAWOG/ch9$./setup_deepmindlab.sh
This script will take some time to finish, but will automatically install all the necessary packages and libraries, including Bazel and its dependencies, and set everything up for you.