FORT MYERS, Fla.--Red Sox pitcher Chris Carpenter, who came to the Red Sox from the Chicago Cubs as compensation for Theo Epstein, wrote on his Twitter account Tuesday afternoon that he will have surgery to remove a bone spur from his throwing elbow.

The surgery, Carpenter tweeted, will be performed in Brimingham, Ala., by noted orthopedic surgeon James Andrews. Red Sox GM Ben Cherington confirmed the procedure.

Carpenter has thrown just two innings this spring and has not pitched since March 19. He made his spring debut on May 8 in Jupiter against the Cardinals, walked the first two batters he faced, gave up a single, then walked in a run. He faced the Twins and walked two more batters in two-thirds of an inning.