fix pg gem error in ubuntu