title: "pkg-config script could not be found" on OSX
body: <p>I am trying to install some software on my mac; however I keep receiving the same error:</p>
  
  <pre><code>configure: error: The pkg-config script could not be found or is too old.  Make sure it
  is in your PATH or set the PKG_CONFIG environment variable to the full
  path to pkg-config.
  
  Alternatively, you may set the environment variables XMEDCON_GLIB_CFLAGS
  and XMEDCON_GLIB_LIBS to avoid the need to call pkg-config.
  See the pkg-config man page for more details.
  
  To get pkg-config, see &lt;http://pkg-config.freedesktop.org/&gt;.
  See `config.log' for more details
  </code></pre>
  
  <p>I am not quite sure how to go about adding the pkg-config to the PATH. I have seen online (see link) that I should add the following:</p>
  
  <p><a href="http://www.fantageek.com/318/install-pkg-config-for-mac-osx/">Link showing how to direct PATH variable</a></p>
  
  <pre><code>export PATH=$PATH:/opt/local/bin     # Fixed typo as mentioned in comment
  </code></pre>
  
  <p>which is where I have placed pkg-config. I still keep getting the error though every time I try to configure the files using ./configure. Any help would be super appreciated!</p>