<Tr> <Th_colspan="2"> Chronology </Th> </Tr> <Tr> <Th> Related shows </Th> <Td> The Andy Griffith Show </Td> </Tr> <P> Gomer Pyle, U.S.M.C. is an American situation comedy that originally aired on CBS from September 25, 1964, to May 2, 1969 . The series was a spin - off of The Andy Griffith Show, and the pilot episode was aired as the season finale of the fourth season of its parent series on May 18, 1964 . The show ran for a total of 150 half - hour episodes spanning over five seasons, first in black - and - white for the first season, and then in color for the remaining four seasons . In 2006, CBS Home Entertainment (distributed by Paramount) began releasing the series on DVD . The final season was released in November 2008 . </P> <P> Gomer Pyle, U.S.M.C. was a hit, never placing lower than tenth in the Nielsen ratings, and ended its run as the second - highest - rated series in the United States . It has enjoyed continued popularity through reruns and DVD releases . The series was created by Aaron Ruben, who also produced the show with Sheldon Leonard and Ronald Jacobs . Filmed and set in California (originally set in North Carolina), it stars Jim Nabors as Gomer Pyle, a naive but good - natured gas station attendant from the town of Mayberry, North Carolina, who enlists in the United States Marine Corps . Frank Sutton plays Gomer's high - octane, short - fused Gunnery Sergeant Vince Carter, and Ronnie Schell plays Gomer's friend Duke Slater . Roy Stuart portrayed Corporal Chuck Boyle, GySgt . Carter's good - natured sidekick . Allan Melvin played in the recurring role of Gunnery Sergeant Carter's rival, Staff Sergeant Charley Hacker . </P>

What was the name of the show with gomer pyle