The U.S. economy closed out 2010 on a softer note than expected, with rising gasoline prices eroding consumers' purchasing power in December even as they helped lift retail sales.

Retail sales climbed 0.6 percent last month, the Commerce Department said on Friday. The sixth straight monthly increase showed consumers doing their part to support recovery, even though the data was a bit weaker than forecast by economists.

A separate report from the Federal Reserve showed U.S. industrial output rose 0.8 percent in December, the biggest gain since July, as a cold weather snap pushed utility production sharply higher.

Things should continue to roll along but no one's getting any sense that there's any underlying gusto or that the economy's got any heat in it at all, said Brian Bethune of IHS Global Insight in Lexington, Massachusetts.

A spike in gasoline prices last month helped lift the Consumer Price Index by 0.5 percent, the fastest pace in 1-1/2 years, although prices gained just 0.1 percent excluding volatile food and energy costs, the Labor Department said.

The rise in gasoline prices weighed on consumer sentiment, while another report showed business inventories grew much less than expected in November as sales kept up a strong pace.

The raft of data was in line with other recent signs the world's biggest economy strengthened somewhat in the final months of the year, although the pace of growth fell short of what is needed to make a big dent in unemployment.

Stocks rose modestly on Friday, bolstered by JPMorgan Chase earnings and a stronger first-quarter outlook for chip-maker Intel. JPMorgan Chase Chief Executive Jamie Dimon said demand for credit was growing.

Prices for U.S. government debt initially rose as the lukewarm data suggested the economy was not accelerating sharply. But prices drifted lower as a three-day weekend loomed.

COMMODITY PRICE PRESSURE

Fed Chairman Ben Bernanke said on Thursday the economy was moving in the right direction with the risk of troubling deflation falling. The latest batch of economic reports appeared unlikely to budge the Fed from its $600 billion bond buying program.

There will be a time when these aggressive actions need to be reversed, but first we need to get the economy on a much more solid footing, Boston Federal Reserve Bank President Eric Rosengren said.

In December, sales declined at electronics and general merchandise stores, but those drops were offset by increases in sales of gasoline, building materials and automobiles.

Sales for all of 2010 reversed two years of contraction with the biggest gain in more than a decade.

A strengthening of global demand, especially in fast-growing emerging economies, has lifted commodity prices and has led to a quickening in U.S. overall inflation.

The 1.6 percent increase in gasoline station sales last month reflected the rise in prices at the pump. Average gas prices rose about 20 cents in December to $3.05 a gallon.

That increase chilled consumer sentiment in January and raised inflation expectations, according to the Thomson Reuters/University of Michigan survey. However, optimism on the future rose.

Overall consumer prices rose 1.5 percent from the same month a year ago, while core consumer prices gained 0.8 percent in 2010, the slowest calendar year increase on record dating to 1958.

(Additional reporting by Corbett B. Daly and David Lawder in Washington, and Richard Leong and Karen Bretell in New York; Editing by Neil Stempleman and Dan Grebler)