Se instalo postgres dev con: apt-get install libpq-dev