Compressor gasket problem

If it has a machined groove in the flat you can try an o ring.