Your doctor may prescribe a laxative to soften the faeces 9e. g. lactulose syrup). You can buy laxatives over the counter from a pharmacist without a prescription. However, it is a good idea to see your doctor before trying laxatives as there are different types of laxative that work in different ways. Your GP will prescribe you one that is most suited to treat your condition. If you need pain relief you can take over-the-counter painkillers, e. g. paracetamol or ibuprofen.
Attribution: BUPA