More than half a million people gathered in Peru to pray with their pope for the first time in nearly 30 years.