Here is Pope John Paul II on capitalism from Centesimus Annus (and remember, John Paul knew about living in a Marxist regime first hand):

The Marxist solution has failed, but the realities of marginalization and exploitation remain in the world, especially the Third World, as does the reality of human alienation, especially in the more advanced countries. Against these phenomena the Church strongly raises her voice. Vast multitudes are still living in conditions of great material and moral poverty. The collapse of the Communist system in so many countries certainly removes an obstacle to facing these problems in an appropriate and realistic way, but it is not enough to bring about their solution. Indeed, there is a risk that a radical capitalistic ideology could spread which refuses even to consider these problems, in the a priori belief that any attempt to solve them is doomed to failure, and which blindly entrusts their solution to the free development of market forces.