title: Configuring PostGis on Dreamhost
body: <p>I've installed PostGIS on my Dreamhost hosted VPS and have gotten to the configure section of the process as detailed here: <a href="http://postgis.refractions.net/documentation/manual-2.0/postgis_installation.html#installation_configuration" rel="nofollow">http://postgis.refractions.net/documentation/manual-2.0/postgis_installation.html#installation_configuration</a></p>
  
  <p>In the last line when I run ./configure I get this error:</p>
  
  <pre><code>configure: error: could not find pg_config within the current 
  path. You may need to try re-running configure with a --with-pgconfig parameter.
  </code></pre>
  
  <p>And I see in the instructions say:</p>
  
  <pre><code>--with-pgconfig=FILE
  </code></pre>
  
  <p>PostgreSQL provides a utility called pg_config to enable extensions like PostGIS to locate the PostgreSQL installation directory. Use this parameter (--with-pgconfig=/path/to/pg_config) to manually specify a particular PostgreSQL installation that PostGIS will build against. </p>
  
  <p>However, I can't find a way to find where this file is. I know I have PostGre installed because it says so when I run this:</p>
  
  <pre><code>aptitude show postgresql | grep State
  </code></pre>
  
  <p>coming back with</p>
  
  <pre><code>State: installed
  </code></pre>
  
  <p>But I don't know where to go from here. Any help is appreciated. Thanks!</p>