title: How can I configure mono to use the correct paths to etc/ directory when the prefix directory is relocated?
body: <p>I have compiled mono 2.10.9 and 3.0.3 on linux and would like to be able to move these installations to a different location without recompiling. The problem I am having is that mono-sgen is unable to find the etc/ directory after relocation. Interestingly, mono using the boehm GC <em>is</em> able to find that directory after relocation. Is there a reason the two executables behave differently? </p>
  
  <p>I have been able to specify the updated library paths using MONO_PATH like this:</p>
  
  <pre><code>export MONO_PATH=${PKG_DIR}/lib/mono/4.0:${PKG_DIR}/lib/mono/3.5:${PKG_DIR}/lib/mono/2.0:${PKG_DIR}/lib/mono/compat-2.0
  </code></pre>
  
  <p>but I am stuck on getting mono-sgen to find the etc/ directory. The exception I am receiving as a result is:</p>
  
  <pre><code>ConfigurationErrorsException: Error Initializing the configuration system.
  </code></pre>
  
  <p>If recompiling mono with the new prefix is the easiest solution I will go that route, but hopefully there is something else I can do to get this working. It's nice when you can relocate an entire program with all its dependencies and it still works.</p>