how to change install postgis location? postgres : <p>When I am in my postgres db and tried to create an extension for my db, I get this error</p>

<p><code>ERROR:  could not open extension control file "/usr/share/postgresql/9.5/extension/postgis.control": No such file or directory</code></p>

<p>I know there are so many posts out there with this error and solutions and I tried them all too.  Found so much in stackoverflow but none of them worked.</p>

<p>I realized in my <code>postgresql</code> directory there are <code>9.2</code>, <code>9.3</code>, <code>9.4</code>, <code>9.5</code>, <code>9.6</code>, </p>

<p>I went into the directory in the error and I realized there is really no <code>postgis.control</code> inside <code>9.5</code></p>

<p>I checked my psql version and showed 9.6.1</p>

<p>I went into <code>9.6</code> folder and I DO see a <code>postgis.control</code> in it.</p>

<p>I want to changed the installation directory so when i run</p>

<p><code>create extension postgis</code></p>

<p>it would go</p>

<p><code>"/usr/share/postgresql/9.6/extension/postgis.control"</code></p>

<p>instead of</p>

<p><code>"/usr/share/postgresql/9.5/extension/postgis.control"</code></p>

<p>Can someone please give me a hand?</p>

<p>Thanks in advance.</p>

<p>P.S. Using Ubuntu 14.04 and also have Ubuntu 16.04 as desktop which I haven't try to install postgis yet</p>
