libpgm-dev will add the dependency on libpgm 5.2.0 or 5.1.0 automatically according to the ubuntu version