Hopefully you've done diags and had the system refilled first. Various components such as seals letting gas out, compressor clutch and valve can stop the air con starting up, and some of those can be replaced to fix.
If it's definitely the compressor itself, then ensure the whole system is...