Its a mental illness, therefore should be dealt with accordingly.
Throwing people in prison will not do anything will it? Putting people on a programme to control there feelings is what is needed.
Considering we have drugs which can completely remove all sex drive, doing this would also be on the cards.