title: Command 'pg_dump' not found in rails
body: <p>I am using pg_dump to transfer databases on a rail app between my local drive and my server (heroku). I get the following error message</p>
  
  <pre><code>Command 'pg_dump' not found
  </code></pre>
  
  <p>Which I do not manage to resolve</p>
  
  <p>I have looked at <a href="https://stackoverflow.com/questions/10263299/pg-dump-not-found-in-rails">this post</a>.</p>
  
  <p>I have also tried to re-install postgresql as requested by the console</p>
  
  <pre><code>sudo apt install postgresql-client-common
  </code></pre>
  
  <p>I am using the following version of postgresql</p>
  
  <pre><code>psql (PostgreSQL) 10.5 (Ubuntu 10.5-1.pgdg16.04+1)
  </code></pre>
  
  <p>When I run</p>
  
  <pre><code>sudo dpkg -l|grep postgresql-client
  </code></pre>
  
  <p>I get a 4 lines ouputs</p>
  
  <pre><code>ii postgresql-client 10+192.pgd16.04+1 all front-end programes for PostgreSQL (supported version)
  ii postgresql-client-10 10.5-1.pgd16.04+1 amd64 front-end programes for PostgreSQL 10
  ii postgresql-client-9.5 9.5.14-1.pgd16.04+1 amd64 front-end programes for PostgreSQL 9.5
  ii postgresql-client-common 192.pgd16.04+1 all manager for multiple PostgrSQL client versions
  </code></pre>
  
  <p>I am running out of options. Could anyone give me some tips to have the command work?</p>