<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://opensimulator.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://opensimulator.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Click170</id>
		<title>OpenSimulator - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://opensimulator.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Click170"/>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Special:Contributions/Click170"/>
		<updated>2026-05-11T03:48:44Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.19.9</generator>

	<entry>
		<id>http://opensimulator.org/wiki/Build_Instructions</id>
		<title>Build Instructions</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Build_Instructions"/>
				<updated>2007-09-12T18:54:21Z</updated>
		
		<summary type="html">&lt;p&gt;Click170: &amp;quot;check the Troubleshooting...&amp;quot; &amp;gt;&amp;gt; &amp;quot;the slightly outdated Troubleshooting...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Installing from source=&lt;br /&gt;
&lt;br /&gt;
==MS Windows==&lt;br /&gt;
&lt;br /&gt;
OpenSim requires either the .Net framework version 2.0, or the latest Mono. It also is compiled with the C# and not the C++ IDE for those who are using the no-cost Express Editions from MS.&lt;br /&gt;
&lt;br /&gt;
=== Subversion Repository ===&lt;br /&gt;
&lt;br /&gt;
1. Get the source code from the svn repository:&lt;br /&gt;
&lt;br /&gt;
 http://opensimulator.org/svn/opensim/trunk&lt;br /&gt;
&lt;br /&gt;
=== Building ===&lt;br /&gt;
&lt;br /&gt;
2. In the top-level directory, run the '&amp;lt;tt&amp;gt;runprebuild.bat&amp;lt;/tt&amp;gt;' file. This will create both a VS2005 solution file, and a nant build file.&lt;br /&gt;
&lt;br /&gt;
3. Open the resulting sln file with visual studio, and build it there, or if you prefer to use nant, run nant in the same top-level directory. This will build the executables.&lt;br /&gt;
&lt;br /&gt;
If you don't care about physics (walking on prims, etc), ignore the rest of this section.&lt;br /&gt;
&lt;br /&gt;
==== Physics ====&lt;br /&gt;
&lt;br /&gt;
===== Open Dynamics Engine (ODE) =====&lt;br /&gt;
&lt;br /&gt;
If you want to implement collision-based physics, OpenDynamicsEngine (ODE) is the furthest along at the moment (9/07).  It is not fully supported, but is starting to work somewhat reliably using a small number of regions per sim.&lt;br /&gt;
&lt;br /&gt;
As installed from svn, ODE does not work on all platforms.  If you get an ODE-related crash, and/or an &amp;lt;i&amp;gt;ode.dll not found&amp;lt;/i&amp;gt; type of error (which can occur even though the dll is present!), try using the debug version of the dll, available here:&lt;br /&gt;
&lt;br /&gt;
http://www.squiggle.com/opensim/ode-debug.dll &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Rename it &amp;lt;tt&amp;gt;ode.dll&amp;lt;/tt&amp;gt; and put it in &amp;lt;tt&amp;gt;.\bin&amp;lt;/tt&amp;gt;, replacing the stock &amp;lt;tt&amp;gt;ode.dll&amp;lt;/tt&amp;gt;.  You can also try building &amp;lt;tt&amp;gt;ode.dll&amp;lt;/tt&amp;gt; from the latest version of the source (http://www.ode.org/; make sure to enable trimesh)&lt;br /&gt;
&lt;br /&gt;
=== Running ===&lt;br /&gt;
&lt;br /&gt;
Double-click on the &amp;lt;tt&amp;gt;OpenSim.exe&amp;lt;/tt&amp;gt; executable file in the &amp;lt;tt&amp;gt;bin&amp;lt;/tt&amp;gt; directory. This will start up OpenSim in standalone mode.&lt;br /&gt;
&lt;br /&gt;
The debugger in VS2005 C# may be used to step through the code. For those that use a Cygwin shell, you may find that one or more dll's have permissions that cause problems running. Most find that a &amp;quot;&amp;lt;tt&amp;gt;chmod 777 *&amp;lt;/tt&amp;gt;&amp;quot; from the &amp;lt;tt&amp;gt;bin&amp;lt;/tt&amp;gt; directory solves this.&lt;br /&gt;
&lt;br /&gt;
Physics can be invoked by adding the appropriate line to the [Startup] section of &amp;lt;tt&amp;gt;OpenSim.ini&amp;lt;/tt&amp;gt;.  For ODE, that would be:&lt;br /&gt;
&lt;br /&gt;
 physics = OpenDynamicsEngine&lt;br /&gt;
&lt;br /&gt;
You can also add a command line option to a shortcut, or run from a command prompt with:&lt;br /&gt;
&lt;br /&gt;
 -physics=OpenDynamicsEngine&lt;br /&gt;
&lt;br /&gt;
==Linux/Mac OS X==&lt;br /&gt;
&lt;br /&gt;
=== Subversion Repository ===&lt;br /&gt;
&lt;br /&gt;
To check out the latest revision:&lt;br /&gt;
&lt;br /&gt;
 svn co http://opensimulator.org/svn/opensim/trunk opensim&lt;br /&gt;
&lt;br /&gt;
Note: The &amp;lt;tt&amp;gt;libopenjpeg-libsl-...so&amp;lt;/tt&amp;gt; is not really working. For this reason you should download the newest libsecondlife from http://www.libsecondlife.org/, and build your own libopenjpeg library. If you use this instead of the SVN version, your sim will work fine.&lt;br /&gt;
&lt;br /&gt;
Notes to Mac OS X users: &lt;br /&gt;
&lt;br /&gt;
* OS X does not come packaged with subversion, so you will need to either install it or access the repository from a computer that does have subversion.&lt;br /&gt;
* You'll also need to install Mono.&lt;br /&gt;
* The version of Mono in MacPorts (formerly DarwinPorts) seems to be out of date and produced compilation errors on my system. You may have better luck installing the newest package from http://www.mono-project.com/Downloads&lt;br /&gt;
* Even with the newer version, there's a config problem with NAnt. There's a blog post here: http://bleepsoft.com/tyler/index.php?itemid=82 which explains how to fix the script (the blog post shows the path for 1.1.18 -- you'll need to replace this with 1.2.5 if you install the latest version from mono-project.com).&lt;br /&gt;
&lt;br /&gt;
=== Building (Mono) ===&lt;br /&gt;
&lt;br /&gt;
 cd opensim&lt;br /&gt;
 ./runprebuild.sh&lt;br /&gt;
 nant&lt;br /&gt;
&lt;br /&gt;
If you encounter any errors while trying this, check the slightly outdated [[Troubleshooting]] page for help.&lt;br /&gt;
&lt;br /&gt;
==== Physics (Unix) ====&lt;br /&gt;
&lt;br /&gt;
If you want to implement collision-based physics, OpenDynamicsEngine (ODE) is the furthest along at the moment (9/07).  It is not fully supported, but is starting to work somewhat reliably using a small number of regions per sim.&lt;br /&gt;
&lt;br /&gt;
===== Open Dynamics Engine (ODE) =====&lt;br /&gt;
&lt;br /&gt;
As installed from svn, ODE does not work on all platforms.  If you get an ODE-related crash, and/or a &amp;lt;i&amp;gt;libode.so not found&amp;lt;/i&amp;gt; type of error, you will need to build libode from source.&lt;br /&gt;
&lt;br /&gt;
Remove &amp;lt;tt&amp;gt;libode.so&amp;lt;/tt&amp;gt; from the &amp;lt;tt&amp;gt;./bin&amp;lt;/tt&amp;gt; folder.  (Note that subsequent svn updates may replace it again; best fix is to copy your built &amp;lt;tt&amp;gt;libode.so&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;bin&amp;lt;/tt&amp;gt;).  Do NOT remove &amp;lt;tt&amp;gt;ode.net.dll&amp;lt;/tt&amp;gt;!  Download the latest source packages from http://www.ode.org/.  When compiling, make sure to use the following configure options:&lt;br /&gt;
&lt;br /&gt;
 --with-trimesh=gimpact &lt;br /&gt;
 --enable-shared&lt;br /&gt;
&lt;br /&gt;
Make sure the configure script confirms these choices, and always compile with single precision (I believe that's the default).  Try &amp;lt;code&amp;gt; make -k &amp;lt;/code&amp;gt; if you get errors relating to drawstuff, test*, or openGL.  &amp;lt;code&amp;gt; make install &amp;lt;/code&amp;gt; should put &amp;lt;tt&amp;gt;libode.so&amp;lt;/tt&amp;gt; in the proper place (usually &amp;lt;tt&amp;gt;/usr/local/lib&amp;lt;/tt&amp;gt;), and it should be seen by opensim (&amp;lt;tt&amp;gt;ode.net.dll&amp;lt;/tt&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
=== Running (Mono) ===&lt;br /&gt;
&lt;br /&gt;
 cd bin&lt;br /&gt;
 mono OpenSim.exe&lt;br /&gt;
&lt;br /&gt;
to invoke ODE, add the option:&lt;br /&gt;
 -physics=OpenDynamicsEngine&lt;br /&gt;
&lt;br /&gt;
or add &amp;lt;code&amp;gt;  physics = OpenDynamicsEngine &amp;lt;/code&amp;gt; to the [Startup] section of &amp;lt;tt&amp;gt;OpenSim.ini&amp;lt;/tt&amp;gt;.  Same deal for other physics engines, when available.&lt;br /&gt;
&lt;br /&gt;
=Binary releases=&lt;br /&gt;
&lt;br /&gt;
Nightly builds, in tar-gzip format:&lt;br /&gt;
&lt;br /&gt;
http://ruth.petitbe.be/build/&lt;/div&gt;</summary>
		<author><name>Click170</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/wiki/Troubleshooting</id>
		<title>Troubleshooting</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Troubleshooting"/>
				<updated>2007-09-12T18:42:08Z</updated>
		
		<summary type="html">&lt;p&gt;Click170: Specified when/where some errors appear&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the beginnings of a troubleshooting page.  This advice is towards troubleshooting compiling OpenSIM on a Linux Debian system, these commands and error messages are from and in relation to this OS only.  &lt;br /&gt;
&lt;br /&gt;
Starting with a base Debian 4.0r0 system, and I will go through each of the steps to install Opensim intentionally incorrectly executing each item.  The first thing is to cd into your favorite directory and SVN the latest source.&lt;br /&gt;
&lt;br /&gt;
Before we begin, we need to prep the system.  Your sources file ['''/etc/apt/sources.list'''] must include 'unstable' entries, and you should '''apt-get dist-upgrade''' your system after doing so to catch your system up to date with all the new files.  In my experience, if you do not use 'unstable' then the packages are not up to date enough, and you run into version issues, which lead to the two error messages seen below which appear at the very end of the process when you run OpenSim.exe;&lt;br /&gt;
&lt;br /&gt;
'''Failed generating terrain map: System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---&amp;gt; System.DllNotFoundException: gdiplus.dll&lt;br /&gt;
  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&amp;amp;,System.Drawing.GdiplusStartupInput&amp;amp;,System.Drawing.GdiplusStartupOutput&amp;amp;)&lt;br /&gt;
  at System.Drawing.GDIPlus..cctor () [0x00000] --- End of inner exception stack trace ---&lt;br /&gt;
 &lt;br /&gt;
  at &amp;lt;0x00000&amp;gt; &amp;lt;unknown method&amp;gt;&lt;br /&gt;
  at System.Drawing.Bitmap..ctor (System.String filename, Boolean useIcm) [0x00000]&lt;br /&gt;
  at System.Drawing.Bitmap..ctor (System.String filename) [0x00000]&lt;br /&gt;
  at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (string)&lt;br /&gt;
  at OpenSim.Region.Terrain.TerrainEngine.ExportJpegImage (System.String gradientmap) [0x00000]&lt;br /&gt;
adding asset 845d07f0-2146-4708-964f-56311f0185c7&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
And &lt;br /&gt;
&lt;br /&gt;
'''Failed generating terrain map: System.DllNotFoundException: ./libopenjpeg-libsl-2.1.2.0.so&lt;br /&gt;
  at (wrapper managed-to-native) OpenJPEGNet.OpenJPEG:LibslAllocDecoded (OpenJPEGNet.OpenJPEG/LibslImage&amp;amp;)&lt;br /&gt;
  at OpenJPEGNet.OpenJPEG.Encode (System.Byte[] decoded, Int32 width, Int32 height, Int32 components, Boolean lossless) [0x00000]&lt;br /&gt;
  at OpenJPEGNet.OpenJPEG.EncodeFromImage (System.Drawing.Bitmap bitmap, Boolean lossless) [0x00000]&lt;br /&gt;
  at OpenSim.Region.Terrain.TerrainEngine.ExportJpegImage (System.String gradientmap) [0x00000]&lt;br /&gt;
adding asset e8df7745-d263-49b0-ab46-7055e71a5094'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And then we begin.&lt;br /&gt;
&lt;br /&gt;
'''# svn co http://opensimulator.org/svn/opensim/trunk opensim'''&lt;br /&gt;
&lt;br /&gt;
'''-bash: svn: command not found'''&lt;br /&gt;
&lt;br /&gt;
Ok this ones a gimme.  If you don't know why your getting this message, just go home, there is no hope for you.&lt;br /&gt;
This message clearly means you do not have Subversion installed.  To rectify this:&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install subversion'''&lt;br /&gt;
&lt;br /&gt;
Now that you have subversion, run the command again to get yourself a copy of the source.&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step says to cd into your opensim.new/trunk directory wherever you put it, and run the following:&lt;br /&gt;
&lt;br /&gt;
'''# mono bin/Prebuild.exe /target nant'''&lt;br /&gt;
&lt;br /&gt;
If you see:&lt;br /&gt;
&lt;br /&gt;
'''-bash: mono: command not found'''&lt;br /&gt;
&lt;br /&gt;
Again, this one is a gimme.  This means you do not have mono installed.  Mono does not come installed on the base system and must be retrieved via apt:&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install mono'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Spoiler!!''':  If you '''apt-get install mono nant mono-gmcs mono-mjs libmono-microsoft8.0-cil libmono-system-runtime2.0-cil'''  Then you won't encounter the errors described below on this page, and can cruise through the mono, and nant build process without incident.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now that we have mono we can try running that nifty mono command again:&lt;br /&gt;
'''# mono bin/Prebuild.exe /target nant'''&lt;br /&gt;
&lt;br /&gt;
If you see:&lt;br /&gt;
&lt;br /&gt;
'''The assembly mscorlib.dll was not found or could not be loaded.'''&lt;br /&gt;
&lt;br /&gt;
'''It should have been installed in the `/usr/lib/mono/['''1.0/2.0''']/mscorlib.dll' directory.'''&lt;br /&gt;
&lt;br /&gt;
This indicates that you are missing one of the mscor libs that comes with nant.  This is easily solved by getting '''nant''' which comes with both versions 1.0 and 2.0 of the required lib.&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install nant'''&lt;br /&gt;
&lt;br /&gt;
Fixes this.  Rerun the mono command.  At this stage we have successfully created a NAnt build file. (Yay!)  The next step is '''# nant -buildfile:OpenSim.build'''&lt;br /&gt;
&lt;br /&gt;
Which very likely will fail if you've been following these steps, with the following error:&lt;br /&gt;
&lt;br /&gt;
[nant] /usr/src/opensim.new/trunk/OpenSim/Framework/Console/OpenSim.Framework.Console.dll.build build&lt;br /&gt;
            Buildfile: file:///usr/src/opensim.new/trunk/OpenSim/Framework/Console/OpenSim.Framework.Console.dll.build&lt;br /&gt;
            Target framework: Mono 2.0 Profile&lt;br /&gt;
            Target(s) specified: build &lt;br /&gt;
            &lt;br /&gt;
            &lt;br /&gt;
            build:&lt;br /&gt;
            &lt;br /&gt;
                 [echo] Build Directory is /usr/src/opensim.new/trunk/OpenSim/Framework/Console/bin/Release&lt;br /&gt;
                  [csc] Compiling 4 files to '/usr/src/opensim.new/trunk/OpenSim/Framework/Console/bin/Release/OpenSim.Framework.Console.dll'.&lt;br /&gt;
                  [csc] Cannot open assembly /usr/lib/pkgconfig/../../lib/mono/2.0/gmcs.exe.&lt;br /&gt;
            &lt;br /&gt;
            BUILD FAILED - 0 non-fatal error(s), 1 warning(s)&lt;br /&gt;
            &lt;br /&gt;
            /usr/src/opensim.new/trunk/OpenSim/Framework/Console/OpenSim.Framework.Console.dll.build(10,10):&lt;br /&gt;
            External Program Failed: /usr/lib/pkgconfig/../../lib/mono/2.0/gmcs.exe (return code was 2)&lt;br /&gt;
            &lt;br /&gt;
            Total time: 0.2 seconds.&lt;br /&gt;
            &lt;br /&gt;
&lt;br /&gt;
BUILD FAILED&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is quickly fixed by retrieving '''mono-gmcs'''.&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install mono-gmcs'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next error that I come across is this one:&lt;br /&gt;
&lt;br /&gt;
'''     [nant] /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/OpenSim.Region.Terrain.BasicTerrain.dll.build build&lt;br /&gt;
            Buildfile: file:///usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/OpenSim.Region.Terrain.BasicTerrain.dll.build&lt;br /&gt;
            Target framework: Mono 2.0 Profile&lt;br /&gt;
            Target(s) specified: build &lt;br /&gt;
            &lt;br /&gt;
            &lt;br /&gt;
            build:&lt;br /&gt;
            &lt;br /&gt;
                 [echo] Build Directory is /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/bin/Release&lt;br /&gt;
                [mkdir] Creating directory '/usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/bin/Release'.&lt;br /&gt;
                  [csc] Compiling 28 files to '/usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/bin/Release/OpenSim.Region.Terrain.BasicTerrain.dll'.&lt;br /&gt;
                  [csc] /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs(33,17): error CS0234: The type or namespace name `JScript' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?&lt;br /&gt;
                  [csc] /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs(33,1): error CS0246: The type or namespace name `Microsoft.JScript' could not be found. Are you missing a using directive or an assembly reference?&lt;br /&gt;
                  [csc] /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs(33,17): error CS0234: The type or namespace name `JScript' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?&lt;br /&gt;
                  [csc] /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs(33,1): error CS0246: The type or namespace name `Microsoft.JScript' could not be found. Are you missing a using directive or an assembly reference?&lt;br /&gt;
                  [csc] Compilation failed: 4 error(s), 0 warnings&lt;br /&gt;
            &lt;br /&gt;
            BUILD FAILED - 0 non-fatal error(s), 4 warning(s)&lt;br /&gt;
            &lt;br /&gt;
            /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/OpenSim.Region.Terrain.BasicTerrain.dll.build(10,10):&lt;br /&gt;
            External Program Failed: /usr/lib/pkgconfig/../../lib/mono/2.0/gmcs.exe (return code was 1)&lt;br /&gt;
            &lt;br /&gt;
            Total time: 0.9 seconds.&lt;br /&gt;
            &lt;br /&gt;
&lt;br /&gt;
BUILD FAILED'''&lt;br /&gt;
&lt;br /&gt;
Note that it says Jscript over and over again.  Hint perhaps?&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install mono-mjs libmono-microsoft8.0-cil'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next error encountered is:&lt;br /&gt;
&lt;br /&gt;
'''[nant] /usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build build&lt;br /&gt;
            Buildfile: file:///usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build&lt;br /&gt;
            Target framework: Mono 2.0 Profile&lt;br /&gt;
            Target(s) specified: build &lt;br /&gt;
            &lt;br /&gt;
            &lt;br /&gt;
            build:&lt;br /&gt;
            &lt;br /&gt;
                 [echo] Build Directory is /usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/bin/Release&lt;br /&gt;
                [mkdir] Creating directory '/usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/bin/Release'.&lt;br /&gt;
                  [csc] Compiling 6 files to '/usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/bin/Release/OpenSim.Region.Communications.OGS1.dll'.&lt;br /&gt;
                  [csc] /usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs(7,40): error CS0234: The type or namespace name `Tcp' does not exist in the namespace `System.Runtime.Remoting.Channels'. Are you missing an assembly reference?&lt;br /&gt;
                  [csc] /usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs(7,1): error CS0246: The type or namespace name `Channels.Tcp' could not be found. Are you missing a using directive or an assembly reference?&lt;br /&gt;
                  [csc] Compilation failed: 2 error(s), 0 warnings&lt;br /&gt;
            &lt;br /&gt;
            BUILD FAILED - 0 non-fatal error(s), 2 warning(s)&lt;br /&gt;
            &lt;br /&gt;
            /usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build(10,10):&lt;br /&gt;
            External Program Failed: /usr/lib/pkgconfig/../../lib/mono/2.0/gmcs.exe (return code was 1)&lt;br /&gt;
            &lt;br /&gt;
            Total time: 0.7 seconds.&lt;br /&gt;
            &lt;br /&gt;
&lt;br /&gt;
BUILD FAILED'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This one is taken care of with a quick&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install libmono-system-runtime2.0-cil'''&lt;br /&gt;
&lt;br /&gt;
After this final install, re-running the specified nant command should build successfully. &amp;lt;&amp;lt;BUILD SUCCEEDED&amp;gt;&amp;gt;&lt;br /&gt;
Build time is only 24~ seconds on a 2Ghz Intel Core 2 Duo Macbook with 2GB Ram, you can approximate for your own systems.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using the mono &amp;quot;Linux Installer for x86 (All distributions)&amp;quot; stable installer on a base Debian system.&lt;br /&gt;
If you start with a base Debian system as we did at the top of the page, but instead of using the apt version of mono you would rather use the up-to-date installer from their website, then these are some of the issues you may encounter.&lt;br /&gt;
&lt;br /&gt;
After getting the .bin file from http://www.mono-project.com/Downloads, and executing it as per it's instructions, upon finishing, you may find that if you try to run `mono --version` you are presented with this friendly message:&lt;br /&gt;
&lt;br /&gt;
'''mono: error while loading shared libraries: libgthread-2.0.so.0: cannot open shared object file: No such file or directory'''&lt;br /&gt;
&lt;br /&gt;
This one means you need to install '''libglib2.0-0'''.&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install libglib2.0-0'''&lt;br /&gt;
&lt;br /&gt;
If you retry your `mono --version` you should see the following, perhaps with a more recent version number.&lt;br /&gt;
&lt;br /&gt;
'''&lt;br /&gt;
# mono --version&lt;br /&gt;
Mono JIT compiler version 1.2.5 (tarball)&lt;br /&gt;
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com&lt;br /&gt;
        TLS:           __thread&lt;br /&gt;
        GC:            Included Boehm (with typed GC)&lt;br /&gt;
        SIGSEGV:       normal&lt;br /&gt;
        Architecture:  x86&lt;br /&gt;
        Disabled:      none&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
At this stage, trying to run the mono command will work, but trying to run NAnt will not.&lt;br /&gt;
&lt;br /&gt;
'''&lt;br /&gt;
BUILD FAILED&lt;br /&gt;
&lt;br /&gt;
The current runtime framework 'mono-2.0' is not correctly configured in the NAnt configuration file.&lt;br /&gt;
    Unable to locate 'mono' module using pkg-config. Download the Mono development packages from http://www.mono-project.com/downloads/.&lt;br /&gt;
&lt;br /&gt;
For more information regarding the cause of the build failure, run the build again in debug mode.&lt;br /&gt;
&lt;br /&gt;
Try 'nant -help' for more information&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
This one seems to be fixed by retrieving the apt version of nant.&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install nant'''&lt;br /&gt;
&lt;br /&gt;
It should now build without incident.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you run your Opensim.exe (with mono, duh) and you get a funky error message, like the two seen at the very top of this page, then you need to upgrade your system to 'unstable' and repeat the entire process.&lt;br /&gt;
&lt;br /&gt;
Information will be added here as it is encountered.&lt;/div&gt;</summary>
		<author><name>Click170</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/wiki/Troubleshooting</id>
		<title>Troubleshooting</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Troubleshooting"/>
				<updated>2007-09-11T04:43:50Z</updated>
		
		<summary type="html">&lt;p&gt;Click170: Added additional info on DllNotFound openjpeg.dll and gdiplus.dll&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the beginnings of a troubleshooting page.  This advice is towards troubleshooting compiling OpenSIM on a Linux Debian system, these commands and error messages are from and in relation to this OS only.  &lt;br /&gt;
&lt;br /&gt;
Starting with a base Debian 4.0r0 system, and I will go through each of the steps to install Opensim intentionally incorrectly executing each item.  The first thing is to cd into your favorite directory and SVN the latest source.&lt;br /&gt;
&lt;br /&gt;
Before we begin, we need to prep the system.  Your sources file ['''/etc/apt/sources.list'''] must include 'unstable' entries, and you should '''apt-get dist-upgrade''' your system after doing so to catch your system up to date with all the new files.  In my experience, if you do not use 'unstable' then the packages are not up to date enough, and you run into version issues, which lead to the two error messages seen below;&lt;br /&gt;
&lt;br /&gt;
'''Failed generating terrain map: System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---&amp;gt; System.DllNotFoundException: gdiplus.dll&lt;br /&gt;
  at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&amp;amp;,System.Drawing.GdiplusStartupInput&amp;amp;,System.Drawing.GdiplusStartupOutput&amp;amp;)&lt;br /&gt;
  at System.Drawing.GDIPlus..cctor () [0x00000] --- End of inner exception stack trace ---&lt;br /&gt;
 &lt;br /&gt;
  at &amp;lt;0x00000&amp;gt; &amp;lt;unknown method&amp;gt;&lt;br /&gt;
  at System.Drawing.Bitmap..ctor (System.String filename, Boolean useIcm) [0x00000]&lt;br /&gt;
  at System.Drawing.Bitmap..ctor (System.String filename) [0x00000]&lt;br /&gt;
  at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (string)&lt;br /&gt;
  at OpenSim.Region.Terrain.TerrainEngine.ExportJpegImage (System.String gradientmap) [0x00000]&lt;br /&gt;
adding asset 845d07f0-2146-4708-964f-56311f0185c7&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
And &lt;br /&gt;
&lt;br /&gt;
'''Failed generating terrain map: System.DllNotFoundException: ./libopenjpeg-libsl-2.1.2.0.so&lt;br /&gt;
  at (wrapper managed-to-native) OpenJPEGNet.OpenJPEG:LibslAllocDecoded (OpenJPEGNet.OpenJPEG/LibslImage&amp;amp;)&lt;br /&gt;
  at OpenJPEGNet.OpenJPEG.Encode (System.Byte[] decoded, Int32 width, Int32 height, Int32 components, Boolean lossless) [0x00000]&lt;br /&gt;
  at OpenJPEGNet.OpenJPEG.EncodeFromImage (System.Drawing.Bitmap bitmap, Boolean lossless) [0x00000]&lt;br /&gt;
  at OpenSim.Region.Terrain.TerrainEngine.ExportJpegImage (System.String gradientmap) [0x00000]&lt;br /&gt;
adding asset e8df7745-d263-49b0-ab46-7055e71a5094'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And then we begin.&lt;br /&gt;
&lt;br /&gt;
'''# svn co http://opensimulator.org/svn/opensim/trunk opensim'''&lt;br /&gt;
&lt;br /&gt;
'''-bash: svn: command not found'''&lt;br /&gt;
&lt;br /&gt;
Ok this ones a gimme.  If you don't know why your getting this message, just go home, there is no hope for you.&lt;br /&gt;
This message clearly means you do not have Subversion installed.  To rectify this:&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install subversion'''&lt;br /&gt;
&lt;br /&gt;
Now that you have subversion, run the command again to get yourself a copy of the source.&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step says to cd into your opensim.new/trunk directory wherever you put it, and run the following:&lt;br /&gt;
&lt;br /&gt;
'''# mono bin/Prebuild.exe /target nant'''&lt;br /&gt;
&lt;br /&gt;
If you see:&lt;br /&gt;
&lt;br /&gt;
'''-bash: mono: command not found'''&lt;br /&gt;
&lt;br /&gt;
Again, this one is a gimme.  This means you do not have mono installed.  Mono does not come installed on the base system and must be retrieved via apt:&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install mono'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Spoiler!!''':  If you '''apt-get install mono nant mono-gmcs mono-mjs libmono-microsoft8.0-cil libmono-system-runtime2.0-cil'''  Then you won't encounter the errors described below on this page, and can cruise through the mono, and nant build process without incident.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now that we have mono we can try running that nifty mono command again:&lt;br /&gt;
'''# mono bin/Prebuild.exe /target nant'''&lt;br /&gt;
&lt;br /&gt;
If you see:&lt;br /&gt;
&lt;br /&gt;
'''The assembly mscorlib.dll was not found or could not be loaded.'''&lt;br /&gt;
&lt;br /&gt;
'''It should have been installed in the `/usr/lib/mono/['''1.0/2.0''']/mscorlib.dll' directory.'''&lt;br /&gt;
&lt;br /&gt;
This indicates that you are missing one of the mscor libs that comes with nant.  This is easily solved by getting '''nant''' which comes with both versions 1.0 and 2.0 of the required lib.&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install nant'''&lt;br /&gt;
&lt;br /&gt;
Fixes this.  Rerun the mono command.  At this stage we have successfully created a NAnt build file. (Yay!)  The next step is '''# nant -buildfile:OpenSim.build'''&lt;br /&gt;
&lt;br /&gt;
Which very likely will fail if you've been following these steps, with the following error:&lt;br /&gt;
&lt;br /&gt;
[nant] /usr/src/opensim.new/trunk/OpenSim/Framework/Console/OpenSim.Framework.Console.dll.build build&lt;br /&gt;
            Buildfile: file:///usr/src/opensim.new/trunk/OpenSim/Framework/Console/OpenSim.Framework.Console.dll.build&lt;br /&gt;
            Target framework: Mono 2.0 Profile&lt;br /&gt;
            Target(s) specified: build &lt;br /&gt;
            &lt;br /&gt;
            &lt;br /&gt;
            build:&lt;br /&gt;
            &lt;br /&gt;
                 [echo] Build Directory is /usr/src/opensim.new/trunk/OpenSim/Framework/Console/bin/Release&lt;br /&gt;
                  [csc] Compiling 4 files to '/usr/src/opensim.new/trunk/OpenSim/Framework/Console/bin/Release/OpenSim.Framework.Console.dll'.&lt;br /&gt;
                  [csc] Cannot open assembly /usr/lib/pkgconfig/../../lib/mono/2.0/gmcs.exe.&lt;br /&gt;
            &lt;br /&gt;
            BUILD FAILED - 0 non-fatal error(s), 1 warning(s)&lt;br /&gt;
            &lt;br /&gt;
            /usr/src/opensim.new/trunk/OpenSim/Framework/Console/OpenSim.Framework.Console.dll.build(10,10):&lt;br /&gt;
            External Program Failed: /usr/lib/pkgconfig/../../lib/mono/2.0/gmcs.exe (return code was 2)&lt;br /&gt;
            &lt;br /&gt;
            Total time: 0.2 seconds.&lt;br /&gt;
            &lt;br /&gt;
&lt;br /&gt;
BUILD FAILED&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is quickly fixed by retrieving '''mono-gmcs'''.&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install mono-gmcs'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next error that I come across is this one:&lt;br /&gt;
&lt;br /&gt;
'''     [nant] /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/OpenSim.Region.Terrain.BasicTerrain.dll.build build&lt;br /&gt;
            Buildfile: file:///usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/OpenSim.Region.Terrain.BasicTerrain.dll.build&lt;br /&gt;
            Target framework: Mono 2.0 Profile&lt;br /&gt;
            Target(s) specified: build &lt;br /&gt;
            &lt;br /&gt;
            &lt;br /&gt;
            build:&lt;br /&gt;
            &lt;br /&gt;
                 [echo] Build Directory is /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/bin/Release&lt;br /&gt;
                [mkdir] Creating directory '/usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/bin/Release'.&lt;br /&gt;
                  [csc] Compiling 28 files to '/usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/bin/Release/OpenSim.Region.Terrain.BasicTerrain.dll'.&lt;br /&gt;
                  [csc] /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs(33,17): error CS0234: The type or namespace name `JScript' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?&lt;br /&gt;
                  [csc] /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs(33,1): error CS0246: The type or namespace name `Microsoft.JScript' could not be found. Are you missing a using directive or an assembly reference?&lt;br /&gt;
                  [csc] /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs(33,17): error CS0234: The type or namespace name `JScript' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?&lt;br /&gt;
                  [csc] /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs(33,1): error CS0246: The type or namespace name `Microsoft.JScript' could not be found. Are you missing a using directive or an assembly reference?&lt;br /&gt;
                  [csc] Compilation failed: 4 error(s), 0 warnings&lt;br /&gt;
            &lt;br /&gt;
            BUILD FAILED - 0 non-fatal error(s), 4 warning(s)&lt;br /&gt;
            &lt;br /&gt;
            /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/OpenSim.Region.Terrain.BasicTerrain.dll.build(10,10):&lt;br /&gt;
            External Program Failed: /usr/lib/pkgconfig/../../lib/mono/2.0/gmcs.exe (return code was 1)&lt;br /&gt;
            &lt;br /&gt;
            Total time: 0.9 seconds.&lt;br /&gt;
            &lt;br /&gt;
&lt;br /&gt;
BUILD FAILED'''&lt;br /&gt;
&lt;br /&gt;
Note that it says Jscript over and over again.  Hint perhaps?&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install mono-mjs libmono-microsoft8.0-cil'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next error encountered is:&lt;br /&gt;
&lt;br /&gt;
'''[nant] /usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build build&lt;br /&gt;
            Buildfile: file:///usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build&lt;br /&gt;
            Target framework: Mono 2.0 Profile&lt;br /&gt;
            Target(s) specified: build &lt;br /&gt;
            &lt;br /&gt;
            &lt;br /&gt;
            build:&lt;br /&gt;
            &lt;br /&gt;
                 [echo] Build Directory is /usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/bin/Release&lt;br /&gt;
                [mkdir] Creating directory '/usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/bin/Release'.&lt;br /&gt;
                  [csc] Compiling 6 files to '/usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/bin/Release/OpenSim.Region.Communications.OGS1.dll'.&lt;br /&gt;
                  [csc] /usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs(7,40): error CS0234: The type or namespace name `Tcp' does not exist in the namespace `System.Runtime.Remoting.Channels'. Are you missing an assembly reference?&lt;br /&gt;
                  [csc] /usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs(7,1): error CS0246: The type or namespace name `Channels.Tcp' could not be found. Are you missing a using directive or an assembly reference?&lt;br /&gt;
                  [csc] Compilation failed: 2 error(s), 0 warnings&lt;br /&gt;
            &lt;br /&gt;
            BUILD FAILED - 0 non-fatal error(s), 2 warning(s)&lt;br /&gt;
            &lt;br /&gt;
            /usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build(10,10):&lt;br /&gt;
            External Program Failed: /usr/lib/pkgconfig/../../lib/mono/2.0/gmcs.exe (return code was 1)&lt;br /&gt;
            &lt;br /&gt;
            Total time: 0.7 seconds.&lt;br /&gt;
            &lt;br /&gt;
&lt;br /&gt;
BUILD FAILED'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This one is taken care of with a quick&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install libmono-system-runtime2.0-cil'''&lt;br /&gt;
&lt;br /&gt;
After this final install, re-running the specified nant command should build successfully. &amp;lt;&amp;lt;BUILD SUCCEEDED&amp;gt;&amp;gt;&lt;br /&gt;
Build time is only 24~ seconds on a 2Ghz Intel Core 2 Duo Macbook with 2GB Ram, you can approximate for your own systems.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using the mono &amp;quot;Linux Installer for x86 (All distributions)&amp;quot; stable installer on a base Debian system.&lt;br /&gt;
If you start with a base Debian system as we did at the top of the page, but instead of using the apt version of mono you would rather use the up-to-date installer from their website, then these are some of the issues you may encounter.&lt;br /&gt;
&lt;br /&gt;
After getting the .bin file from http://www.mono-project.com/Downloads, and executing it as per it's instructions, upon finishing, you may find that if you try to run `mono --version` you are presented with this friendly message:&lt;br /&gt;
&lt;br /&gt;
'''mono: error while loading shared libraries: libgthread-2.0.so.0: cannot open shared object file: No such file or directory'''&lt;br /&gt;
&lt;br /&gt;
This one means you need to install '''libglib2.0-0'''.&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install libglib2.0-0'''&lt;br /&gt;
&lt;br /&gt;
If you retry your `mono --version` you should see the following, perhaps with a more recent version number.&lt;br /&gt;
&lt;br /&gt;
'''&lt;br /&gt;
# mono --version&lt;br /&gt;
Mono JIT compiler version 1.2.5 (tarball)&lt;br /&gt;
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com&lt;br /&gt;
        TLS:           __thread&lt;br /&gt;
        GC:            Included Boehm (with typed GC)&lt;br /&gt;
        SIGSEGV:       normal&lt;br /&gt;
        Architecture:  x86&lt;br /&gt;
        Disabled:      none&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
At this stage, trying to run the mono command will work, but trying to run NAnt will not.&lt;br /&gt;
&lt;br /&gt;
'''&lt;br /&gt;
BUILD FAILED&lt;br /&gt;
&lt;br /&gt;
The current runtime framework 'mono-2.0' is not correctly configured in the NAnt configuration file.&lt;br /&gt;
    Unable to locate 'mono' module using pkg-config. Download the Mono development packages from http://www.mono-project.com/downloads/.&lt;br /&gt;
&lt;br /&gt;
For more information regarding the cause of the build failure, run the build again in debug mode.&lt;br /&gt;
&lt;br /&gt;
Try 'nant -help' for more information&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
This one seems to be fixed by retrieving the apt version of nant.&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install nant'''&lt;br /&gt;
&lt;br /&gt;
It should now build without incident.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you run your Opensim.exe (with mono, duh) and you get a funky error message, like the two seen at the very top of this page, then you need to upgrade your system to 'unstable' and repeat the entire process.&lt;br /&gt;
&lt;br /&gt;
Information will be added here as it is encountered.&lt;/div&gt;</summary>
		<author><name>Click170</name></author>	</entry>

	<entry>
		<id>http://opensimulator.org/wiki/Troubleshooting</id>
		<title>Troubleshooting</title>
		<link rel="alternate" type="text/html" href="http://opensimulator.org/wiki/Troubleshooting"/>
				<updated>2007-09-11T04:27:30Z</updated>
		
		<summary type="html">&lt;p&gt;Click170: updated svn command to match the install page of this wiki&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is the beginnings of a troubleshooting page.  This advice is towards troubleshooting compiling OpenSIM on a Linux Debian system, these commands and error messages are from and in relation to this OS only.  &lt;br /&gt;
&lt;br /&gt;
Starting with a base Debian 4.0r0 system, and I will go through each of the steps to install Opensim intentionally incorrectly executing each item.  The first thing is to cd into your favorite directory and SVN the latest source.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''# svn co http://opensimulator.org/svn/opensim/trunk opensim'''&lt;br /&gt;
&lt;br /&gt;
'''-bash: svn: command not found'''&lt;br /&gt;
&lt;br /&gt;
Ok this ones a gimme.  If you don't know why your getting this message, just go home, there is no hope for you.&lt;br /&gt;
This message clearly means you do not have Subversion installed.  To rectify this:&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install subversion'''&lt;br /&gt;
&lt;br /&gt;
Now that you have subversion, run the command again to get yourself a copy of the source.&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next step says to cd into your opensim.new/trunk directory wherever you put it, and run the following:&lt;br /&gt;
&lt;br /&gt;
'''# mono bin/Prebuild.exe /target nant'''&lt;br /&gt;
&lt;br /&gt;
If you see:&lt;br /&gt;
&lt;br /&gt;
'''-bash: mono: command not found'''&lt;br /&gt;
&lt;br /&gt;
Again, this one is a gimme.  This means you do not have mono installed.  Mono does not come installed on the base system and must be retrieved via apt:&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install mono'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Spoiler!!''':  If you '''apt-get install mono nant mono-gmcs mono-mjs libmono-microsoft8.0-cil libmono-system-runtime2.0-cil'''  Then you won't encounter the errors described below on this page, and can cruise through the mono, and nant build process without incident.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now that we have mono we can try running that nifty mono command again:&lt;br /&gt;
'''# mono bin/Prebuild.exe /target nant'''&lt;br /&gt;
&lt;br /&gt;
If you see:&lt;br /&gt;
&lt;br /&gt;
'''The assembly mscorlib.dll was not found or could not be loaded.'''&lt;br /&gt;
&lt;br /&gt;
'''It should have been installed in the `/usr/lib/mono/['''1.0/2.0''']/mscorlib.dll' directory.'''&lt;br /&gt;
&lt;br /&gt;
This indicates that you are missing one of the mscor libs that comes with nant.  This is easily solved by getting '''nant''' which comes with both versions 1.0 and 2.0 of the required lib.&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install nant'''&lt;br /&gt;
&lt;br /&gt;
Fixes this.  Rerun the mono command.  At this stage we have successfully created a NAnt build file. (Yay!)  The next step is '''# nant -buildfile:OpenSim.build'''&lt;br /&gt;
&lt;br /&gt;
Which very likely will fail if you've been following these steps, with the following error:&lt;br /&gt;
&lt;br /&gt;
[nant] /usr/src/opensim.new/trunk/OpenSim/Framework/Console/OpenSim.Framework.Console.dll.build build&lt;br /&gt;
            Buildfile: file:///usr/src/opensim.new/trunk/OpenSim/Framework/Console/OpenSim.Framework.Console.dll.build&lt;br /&gt;
            Target framework: Mono 2.0 Profile&lt;br /&gt;
            Target(s) specified: build &lt;br /&gt;
            &lt;br /&gt;
            &lt;br /&gt;
            build:&lt;br /&gt;
            &lt;br /&gt;
                 [echo] Build Directory is /usr/src/opensim.new/trunk/OpenSim/Framework/Console/bin/Release&lt;br /&gt;
                  [csc] Compiling 4 files to '/usr/src/opensim.new/trunk/OpenSim/Framework/Console/bin/Release/OpenSim.Framework.Console.dll'.&lt;br /&gt;
                  [csc] Cannot open assembly /usr/lib/pkgconfig/../../lib/mono/2.0/gmcs.exe.&lt;br /&gt;
            &lt;br /&gt;
            BUILD FAILED - 0 non-fatal error(s), 1 warning(s)&lt;br /&gt;
            &lt;br /&gt;
            /usr/src/opensim.new/trunk/OpenSim/Framework/Console/OpenSim.Framework.Console.dll.build(10,10):&lt;br /&gt;
            External Program Failed: /usr/lib/pkgconfig/../../lib/mono/2.0/gmcs.exe (return code was 2)&lt;br /&gt;
            &lt;br /&gt;
            Total time: 0.2 seconds.&lt;br /&gt;
            &lt;br /&gt;
&lt;br /&gt;
BUILD FAILED&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is quickly fixed by retrieving '''mono-gmcs'''.&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install mono-gmcs'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next error that I come across is this one:&lt;br /&gt;
&lt;br /&gt;
'''     [nant] /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/OpenSim.Region.Terrain.BasicTerrain.dll.build build&lt;br /&gt;
            Buildfile: file:///usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/OpenSim.Region.Terrain.BasicTerrain.dll.build&lt;br /&gt;
            Target framework: Mono 2.0 Profile&lt;br /&gt;
            Target(s) specified: build &lt;br /&gt;
            &lt;br /&gt;
            &lt;br /&gt;
            build:&lt;br /&gt;
            &lt;br /&gt;
                 [echo] Build Directory is /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/bin/Release&lt;br /&gt;
                [mkdir] Creating directory '/usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/bin/Release'.&lt;br /&gt;
                  [csc] Compiling 28 files to '/usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/bin/Release/OpenSim.Region.Terrain.BasicTerrain.dll'.&lt;br /&gt;
                  [csc] /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs(33,17): error CS0234: The type or namespace name `JScript' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?&lt;br /&gt;
                  [csc] /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs(33,1): error CS0246: The type or namespace name `Microsoft.JScript' could not be found. Are you missing a using directive or an assembly reference?&lt;br /&gt;
                  [csc] /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs(33,17): error CS0234: The type or namespace name `JScript' does not exist in the namespace `Microsoft'. Are you missing an assembly reference?&lt;br /&gt;
                  [csc] /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs(33,1): error CS0246: The type or namespace name `Microsoft.JScript' could not be found. Are you missing a using directive or an assembly reference?&lt;br /&gt;
                  [csc] Compilation failed: 4 error(s), 0 warnings&lt;br /&gt;
            &lt;br /&gt;
            BUILD FAILED - 0 non-fatal error(s), 4 warning(s)&lt;br /&gt;
            &lt;br /&gt;
            /usr/src/opensim.new/trunk/OpenSim/Region/Terrain.BasicTerrain/OpenSim.Region.Terrain.BasicTerrain.dll.build(10,10):&lt;br /&gt;
            External Program Failed: /usr/lib/pkgconfig/../../lib/mono/2.0/gmcs.exe (return code was 1)&lt;br /&gt;
            &lt;br /&gt;
            Total time: 0.9 seconds.&lt;br /&gt;
            &lt;br /&gt;
&lt;br /&gt;
BUILD FAILED'''&lt;br /&gt;
&lt;br /&gt;
Note that it says Jscript over and over again.  Hint perhaps?&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install mono-mjs libmono-microsoft8.0-cil'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The next error encountered is:&lt;br /&gt;
&lt;br /&gt;
'''[nant] /usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build build&lt;br /&gt;
            Buildfile: file:///usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build&lt;br /&gt;
            Target framework: Mono 2.0 Profile&lt;br /&gt;
            Target(s) specified: build &lt;br /&gt;
            &lt;br /&gt;
            &lt;br /&gt;
            build:&lt;br /&gt;
            &lt;br /&gt;
                 [echo] Build Directory is /usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/bin/Release&lt;br /&gt;
                [mkdir] Creating directory '/usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/bin/Release'.&lt;br /&gt;
                  [csc] Compiling 6 files to '/usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/bin/Release/OpenSim.Region.Communications.OGS1.dll'.&lt;br /&gt;
                  [csc] /usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs(7,40): error CS0234: The type or namespace name `Tcp' does not exist in the namespace `System.Runtime.Remoting.Channels'. Are you missing an assembly reference?&lt;br /&gt;
                  [csc] /usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs(7,1): error CS0246: The type or namespace name `Channels.Tcp' could not be found. Are you missing a using directive or an assembly reference?&lt;br /&gt;
                  [csc] Compilation failed: 2 error(s), 0 warnings&lt;br /&gt;
            &lt;br /&gt;
            BUILD FAILED - 0 non-fatal error(s), 2 warning(s)&lt;br /&gt;
            &lt;br /&gt;
            /usr/src/opensim.new/trunk/OpenSim/Region/Communications/OGS1/OpenSim.Region.Communications.OGS1.dll.build(10,10):&lt;br /&gt;
            External Program Failed: /usr/lib/pkgconfig/../../lib/mono/2.0/gmcs.exe (return code was 1)&lt;br /&gt;
            &lt;br /&gt;
            Total time: 0.7 seconds.&lt;br /&gt;
            &lt;br /&gt;
&lt;br /&gt;
BUILD FAILED'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This one is taken care of with a quick&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install libmono-system-runtime2.0-cil'''&lt;br /&gt;
&lt;br /&gt;
After this final install, re-running the specified nant command should build successfully. &amp;lt;&amp;lt;BUILD SUCCEEDED&amp;gt;&amp;gt;&lt;br /&gt;
Build time is only 24~ seconds on a 2Ghz Intel Core 2 Duo Macbook with 2GB Ram, you can approximate for your own systems.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using the mono &amp;quot;Linux Installer for x86 (All distributions)&amp;quot; stable installer on a base Debian system.&lt;br /&gt;
If you start with a base Debian system as we did at the top of the page, but instead of using the apt version of mono you would rather use the up-to-date installer from their website, then these are some of the issues you may encounter.&lt;br /&gt;
&lt;br /&gt;
After getting the .bin file from http://www.mono-project.com/Downloads, and executing it as per it's instructions, upon finishing, you may find that if you try to run `mono --version` you are presented with this friendly message:&lt;br /&gt;
&lt;br /&gt;
'''mono: error while loading shared libraries: libgthread-2.0.so.0: cannot open shared object file: No such file or directory'''&lt;br /&gt;
&lt;br /&gt;
This one means you need to install '''libglib2.0-0'''.&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install libglib2.0-0'''&lt;br /&gt;
&lt;br /&gt;
If you retry your `mono --version` you should see the following, perhaps with a more recent version number.&lt;br /&gt;
&lt;br /&gt;
'''&lt;br /&gt;
# mono --version&lt;br /&gt;
Mono JIT compiler version 1.2.5 (tarball)&lt;br /&gt;
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com&lt;br /&gt;
        TLS:           __thread&lt;br /&gt;
        GC:            Included Boehm (with typed GC)&lt;br /&gt;
        SIGSEGV:       normal&lt;br /&gt;
        Architecture:  x86&lt;br /&gt;
        Disabled:      none&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
At this stage, trying to run the mono command will work, but trying to run NAnt will not.&lt;br /&gt;
&lt;br /&gt;
'''&lt;br /&gt;
BUILD FAILED&lt;br /&gt;
&lt;br /&gt;
The current runtime framework 'mono-2.0' is not correctly configured in the NAnt configuration file.&lt;br /&gt;
    Unable to locate 'mono' module using pkg-config. Download the Mono development packages from http://www.mono-project.com/downloads/.&lt;br /&gt;
&lt;br /&gt;
For more information regarding the cause of the build failure, run the build again in debug mode.&lt;br /&gt;
&lt;br /&gt;
Try 'nant -help' for more information&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
This one seems to be fixed by retrieving the apt version of nant.&lt;br /&gt;
&lt;br /&gt;
'''# apt-get install nant'''&lt;br /&gt;
&lt;br /&gt;
It should now build without incident.&lt;br /&gt;
&lt;br /&gt;
Information will be added here as it is encountered.&lt;/div&gt;</summary>
		<author><name>Click170</name></author>	</entry>

	</feed>