Local and global solutions for the compressible navier-stokes equations near equilibria via the energy method