title: ERROR: could not open extension control file "/usr/pgsql-9.6/share/extension/postgis.control": No such file or directory
body: <p>I want to deploy my project to VPS Centos7. But i am getting error while installing postgres. When i type </p>
  
  <pre><code>create extension postgis;
  </code></pre>
  
  <p>Getting error </p>
  
  <blockquote>
    <p>ERROR:  could not open extension control file
    "/usr/pgsql-9.6/share/extension/postgis.control": No such file or
    directory</p>
  </blockquote>
  
  <p>Because postgis.contol is located in another place, </p>
  
  <pre><code>find /usr -name postgis.control
  
  /usr/share/pgsql/extension/postgis.control
  </code></pre>
  
  <p>But postgres trying to create it from <code>/usr/pgsql-9.6/share/extension/postgis.control</code></p>
  
  <p><strong>This question already was asked before, but my problem is other.</strong></p>