[MonoDevelop] Problem with compiling MonoDevelop 2.2 through Mono 2.6 on Ubuntu 9.10

Michael Hutchinson m.j.hutchinson at gmail.com
Mon Jan 4 03:10:43 EST 2010


The problem is that there are two conflicting Mono environments
present. Installing Mono in /usr/local or /usr is almost always a bad
idea unless you know exactly what you're doing.

http://mjhutchinson.com/journal/2007/11/08/how_not_break_mono

Specifically, the problem encountered here is the mismatch between
pkgconfig's default paths (used by the makefiles at compiled time) and
the Mono GAC, used at runtime. It's finding Mono.Addins from /usr, but
that's installed into the /usr GAC, not the /usr/local GAC

Anyway, lesson of the day, use a parallel environment:
http://www.mono-project.com/Parallel_Mono_Environments


On Mon, Jan 4, 2010 at 2:05 AM, jmalcolm <malcolm.justin at gmail.com> wrote:
>
> Did you build Mono.Addins before compiling MonoDevelop?  It is a prerequisite
> (as is GTK#).
>
> Look just below the source tarballs on the MonoDevelop download page:
> http://monodevelop.com/Download
>
> If you did build Mono.Addins, have you tried installing it in the GAC?
>
>
> asmaster wrote:
>>
>> Hello,
>>
>> I decided to move my ASP.NET website to Mono (Ubuntu server) from Windows
>> Server, because Mono is awesome! It's free and doesn't have any
>> limitations.
>>
>> The problem is when I try to compile MonoDevelop 2.2 for my Ubuntu 9.10
>> Desktop, it gives me an error. And I really need the new cool features of
>> MonoDevelop 2.2.
>>
>> I successfully compiled Mono 2.6... But
>>
>> When I try to compile MonoDevelop 2.2, I get this:
>>
>> ** (/usr/local/lib/mono/2.0/gmcs.exe:4266): WARNING **: The following
>> assembly referenced from
>> /home/alex/Downloads/monodevelop-2.2/build/bin/MonoDevelop.Core.dll could
>> not be loaded:
>>      Assembly:   Mono.Addins.Setup    (assemblyref_index=9)
>>      Version:    0.4.0.0
>>      Public Key: 0738eb9f132ed756
>> The assembly was not found in the Global Assembly Cache, a path listed in
>> the MONO_PATH environment variable, or in the location of the executing
>> assembly (/home/alex/Downloads/monodevelop-2.2/build/bin/).
>>
>>
>> ** (/usr/local/lib/mono/2.0/gmcs.exe:4266): WARNING **: Could not load
>> file or assembly 'Mono.Addins.Setup, Version=0.4.0.0, Culture=neutral,
>> PublicKeyToken=0738eb9f132ed756' or one of its dependencies.
>>
>> Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The
>> classes in the module cannot be loaded.
>>   at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes
>> (bool)
>>   at System.Reflection.Assembly.GetTypes () [0x00000] in <filename
>> unknown>:0
>>   at Mono.CSharp.RootNamespace.ComputeNamespaces
>> (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000]
>> in <filename unknown>:0
>>   at Mono.CSharp.RootNamespace.ComputeNamespace
>> (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in
>> <filename unknown>:0
>>   at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces
>> (Mono.CSharp.CompilerContext ctx) [0x00000] in <filename unknown>:0
>>   at Mono.CSharp.Driver.LoadReferences () [0x00000] in <filename
>> unknown>:0
>>   at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
>>   at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename
>> unknown>:0
>> make[3]: *** [../../../build/bin/MonoDevelop.Components.dll] Error 1
>> make[3]: Leaving directory
>> `/home/alex/Downloads/monodevelop-2.2/src/core/MonoDevelop.Components'
>> make[2]: *** [all-recursive] Error 1
>> make[2]: Leaving directory `/home/alex/Downloads/monodevelop-2.2/src/core'
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory `/home/alex/Downloads/monodevelop-2.2/src'
>> make: *** [all-recursive] Error 1
>>
>>
>> I used the README file to compile:
>> ./configure --prefix=`pkg-config --variable=prefix mono`
>> sudo   make => that's where the error comes
>> make install
>>
>>
>> To compile Mono 2.6 I used:
>>
>> ./configure --prefix=/usr/local; sudo make; sudo make install
>>
>>
>> I see you have much better support for Open Suse (probably because Open
>> Suse is owned by Novell), is there a way to make a deb package or
>> something for Debian/Ubuntu systems?
>>
>> As you see I'm new in Linux world, but I like setting everything through
>> command line, I like compiling from sources, but I wish it always worked.
>>
>>
>> P.S. Just a question about Mono. I guess Mono-C#-ASP.NET web site is going
>> to be much faster than, say, Python/Ruby or Java web site, right? Just
>> making sure. The site has about 100,000 users, 50 MB database.
>>
>> Thank you so much!
>>
>
> --
> View this message in context: http://old.nabble.com/Problem-with-compiling-MonoDevelop-2.2-through-Mono-2.6-on-Ubuntu-9.10-tp27008986p27009476.html
> Sent from the Mono - MonoDevelop IDE mailing list archive at Nabble.com.
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>



-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list