Write build log to file, and detect installation failure
Add a space