Lt. Gov. Beverly Perdue and Charlotte Mayor Pat McCrory will compete for the right to replace Mike Easley in the governor’s mansion.