WASHINGTON — Rick Perry, the governor of Texas, believes that climate change is a “contrived, phony mess.” The federal income tax was the “great milestone on the road to serfdom.” And the Boy Scouts of America are under attack by “a radical homosexual movement.”

Mr. Perry also thinks that senators should be chosen by legislatures, not the people. And he says that Social Security, the retirement program for the nation’s elderly, is a “failure” enacted during a power grab called the New Deal and is “something we have been forced to accept.”

Those blunt assertions are in two books Mr. Perry wrote while building a deep base of support in Texas among evangelical voters and Tea Party supporters. But the books have drawn new scrutiny now that Mr. Perry, a Republican, is running for president.

On Wednesday, Mr. Perry is likely to be asked about some of the statements he makes in the books when he takes the stage in his first nationally televised presidential debate. How he responds, and whether he defends the ideas or distances himself from them, will be an early test of his campaign.