I captured an enemy city, and my advisors informed me that the city will produce a lot of unhappiness until I build a courthouse there. However, the production in the city is 0, so no actual progress is being made. I don't have the option to buy the Courthouse either (all options under Purchase are grayed out, despite having more than enough gold).
So how am I supposed to build a courthouse?