Updated

MILWAUKEE (AP) — Casey McGehee hit a two-run, two-out single in the ninth, rallying the Milwaukee Brewers to a 3-2 victory over the Chicago Cubs on Tuesday night.

Facing Cubs reliever Carlos Marmol with runners on second and third and the Brewers trailing by one, McGehee rolled a single up the middle to score Rickie Weeks and Prince Fielder and give Milwaukee a much-needed home victory over their NL Central rivals.

Marmol (1-1) had converted six straight save opportunities.

It was another wasted effort for hard-luck Cubs starter Ted Lilly, who last won at Miller Park on April 24 and has gone eight straight starts without a win despite pitching fairly well. He was dominant Tuesday, allowing one run and four hits over eight innings while striking out eight.

Corey Hart hit his 15th home run of the season for Milwaukee.

Miller Park's giant electronic scoreboard began to malfunction in the seventh inning and went blank — but it didn't really matter, as neither team was putting up any big numbers.

The game was scoreless going into the eighth after dueling strong starts by Lilly and Milwaukee's Yovani Gallardo.

Kosuke Fukudome then hit a two-out single off Brewers reliever Carlos Villanueva, then stole second base. Villanueva walked struggling slugger Derrek Lee, and Tyler Colvin smacked a single to right to score Fukudome and give the Cubs a 1-0 lead.

But the lead wouldn't last, as Hart led off the Brewers' half of the eighth by smacking a ball into the seats in left field to tie the game.

Facing Brewers reliever John Axford (2-1) in the ninth, back-to-back singles by Koyie Hill and Starlin Castro gave the Cubs runners on first and third with one out. Pinch hitter Alfonso Soriano hit a grounder to shortstop and Hill scored on the play, giving the Cubs a 2-1 lead.

Marmol came in and hit Weeks with a pitch, then got Carlos Gomez to pop out on a bunt attempt. Weeks stole second and the Cubs intentionally walked Fielder, bringing up Ryan Braun. Castro then made an impressive play on a broken-bat grounder to get Braun, giving the Brewers runners on second and third with two outs.

McGehee delivered, handing the first game of the series to the Brewers.

It was another strong outing for Gallardo, who held the Cubs scoreless through seven innings before yielding to reliever Carlos Villanueva. Gallardo gave up four runs and two walks while striking out seven, but was taken out of the game after his pitch count reached 110.

Gallardo lost his first two starts of the season but hasn't lost since, becoming the bright spot in an otherwise shaky Brewers rotation. Coming into Tuesday, Gallardo had won his last two starts and was 6-0 with a 1.74 ERA in his previous nine.

It was the continuation of a trying road stretch for the Cubs, who finished a series in Houston on Sunday, flew to Pittsburgh to make up a rainout on Monday, then came to Milwaukee for the beginning of a three-game series.

Neither team had anything approaching a scoring chance until the Cubs' half of the fifth, when Marlon Byrd led off with an infield single, Castro smacked a two-out double to right and Gallardo walked Lilly to load the bases. But Ryan Theriot hit a soft grounder for a forceout at second base, ending the inning.

Lee hit a long fly ball in the sixth, but it sailed into the glove of Corey Hart at the warning track.

NOTES: Still fighting a sore thumb, Cubs third baseman Aramis Ramirez did not start Tuesday. ... Milwaukee reinstated RHP David Riske from the 60-day disabled list. Riske underwent Tommy John surgery on his right elbow last June. RHP LaTroy Hawkins was placed on the 60-day disabled list.