Check for missing deps before attempting to install.

For #10107