Constipation is not disease per say. It's your lifestyle. You have to indulge high fibres, adequate water , exercise for minimum 45 min and avoid taking foods or medicine which can aggravate constipation. No permanent solution as such. You need to modify your lifestyle.
Next Steps
increase high fibres , water, fruits, avoid wheat items, bakery items, caffeinated drinks.