title: postgreSQL error initdb: command not found
body: <p>i was installing postgresql on ubuntu using linuxbrew:</p>
  
  <pre><code>brew install postgresql
  </code></pre>
  
  <p>it seems to work fine but after that because i was installing PostgreSQL for the first time i tried creating a database:</p>
  
  <pre><code>initdb /usr/local/var/postgres -E utf8
  </code></pre>
  
  <p>but it returned as:</p>
  
  <pre><code>initdb: command not found
  </code></pre>
  
  <p>i tried running the command with <code>sudo but that doesn't helped</code></p>