what to do?

What should I give my baby who is constipated? This is the first time it happened to him and he's crying and I don't know what to do? He's 7 months.