title: How to resolve Failed running '/usr/lib/pkgconfig/../../bin/mod-mono-server2 --filename /tmp/mod_mono_server_global --nonstop --master
body: <p>I'm trying to get mod_mono working on CentOS 6.5. I have many failed attempts where either something does not compile at all or fails when trying to run a website. I've tried both latest from git, tarball from git releases, and tarballs of different versions from <a href="http://download.mono-project.com/sources/mono/" rel="nofollow">http://download.mono-project.com/sources/mono/</a>. All fail in one way or another.</p>
  
  <p>So far the "most" working solution I've found is to download this: <a href="http://download.pokorra.de/mono/tarballs/mono-3.2.6.tar.bz2" rel="nofollow">http://download.pokorra.de/mono/tarballs/mono-3.2.6.tar.bz2</a> and use latest xsp and mod_mono from under mono-project site.</p>
  
  <p>Problem is even though mod_mono installation went ok, i get this in httpd/error_log:</p>
  
  <blockquote>
    <p>[error] Failed running '/usr/lib/pkgconfig/../../bin/mod-mono-server2 --filename /tmp/mod_mono_server_global --nonstop --master (null) (null) (null) (null) (null) (null) (null) (null)'. Reason: No such file or directory</p>
  </blockquote>
  
  <p>So mod_mono does not run. What could be causing this? There are no errors in make or make install output. </p>
  
  <p>Most importantly:</p>
  
  <pre><code>locate mod-mono-server
  /usr/local/src/xsp-3.0.11/man/mod-mono-server.1
  /usr/local/src/xsp-3.0.11/scripts/mod-mono-server
  /usr/local/src/xsp-3.0.11/scripts/mod-mono-server2
  /usr/local/src/xsp-3.0.11/scripts/mod-mono-server4
  /usr/local/src/xsp-3.0.11/src/Mono.WebServer.Apache/mod-mono-server2.exe
  /usr/local/src/xsp-3.0.11/src/Mono.WebServer.Apache/mod-mono-server2.exe.mdb
  /usr/local/src/xsp-3.0.11/src/Mono.WebServer.Apache/mod-mono-server4.exe
  /usr/local/src/xsp-3.0.11/src/Mono.WebServer.Apache/mod-mono-server4.exe.mdb
  /usr/local/src/xsp-3.0.11/test/mod-mono-server.exe.config
  /usr/share/man/man1/mod-mono-server.1
  </code></pre>
  
  <p>There are no mod-mono-servers anywhere else except under sources. </p>
  
  <p>Mono itself is fine, I can run a small console application using mono mytestapp.exe. </p>
  
  <p>I installed mod_mono (like mono and xsp) using prefix /usr:</p>
  
  <pre><code>./configure --prefix=/usr
  make &amp;&amp; make install
  </code></pre>
  
  <p>I can see mod_mono.conf generated correctly.</p>
  
  <p>Please forgive me if this is really a hilariously silly question, but what's going on? I would have expected to see something under /usr/bin and /usr/lib but there's nothing even though mod_mono installs without errors.</p>
  
  <p>Edit: Just a side note, as opposed to some other installation, xsp runs fine. With other mono installations I had exceptions in the xsp output. </p>