The only way to have a friend is to be one. Would both "to have" and "to be" be the infinitives
You can ask a new question or answer this question.