Compiling Mono 2.11.4 from source code
The basic steps are as follows:
~$CD Reporepo$wget http://download.mono-project.com/sources/mono/mono-2.11.4.tar.bz2repo$tar xjf mono-2.11.4.tar.bz2repo$du-hs mono-2.11.4*438mmono-2.11.440mmono-2.11.4.tar.bz2repo$CD mono-2.11.4mono-2.11.4$./configure--prefix=/opt/mono-2.11.4... MCs Source:mcs Engine:GC:sgen and bundled Boehm GC with typed GC and parallel MARKTLS: __threadsigaltstack:yesengine:building and using the JIToprofile:noBigArrays:noDTrace:noLL VM back End:no (dynamically loaded:no) libraries:.net 2.0/3.5:yes.net 4.0:yes.net 4.5:yesmonodroid: NoMonoTouch:noMobile:noJNI SUPPORT:IKVM nativelibgdiplus:assumed to be Installedzlib:system zlibmono-2.11.4$ Makemono-2.11.4$sudo make install
Verifying the installation Results
Try running:
/opt/mono-2.11.4/bin/mono--version Mono JIT Compiler version 2.11.4 (tarball October 12, 2012 Friday 09:57:56 CST) Copyright (C) 2002-2012 Novell, Inc., Xamarin Inc and Contributors. Www.mono-project.comTLS: __THREADSIGSEGV: altstacknotifications:epollarchitecture: amd64disabled: Nonemisc: softdebug LLVM: supported, not enabled. GC: /opt/mono-2.11.4/bin/mcs--versionMono C # compiler version 2.11.4.0
Check out the 2.10.8 of the Arch Linux comes with Mono:
Mono--version Mono JIT Compiler version 2.10.8 (tarball Sat Oct 6 23:22:30 UTC) Copyright (C) 2002-2011 Novell, INC, Xamarin, in C and Contributors. Www.mono-project.comTLS: __THREADSIGSEGV: altstacknotifications:epollarchitecture: amd64disabled: Nonemisc: softdebug LLVM: supported, not enabled. GC: MCs--versionMono C # compiler version 2.10.8.0
Verifying the. NET Framework and CLR versions
As shown below:
clrinfo$/opt/mono-2.11.4/bin/mono ClrInfo40.exeOS Version:unix 3.5.6.1 CLR version:4.0.30319.17020(2.11.4 (Tarball on Friday, October 12, 2012 09:57:56 CST)) Default Encoding:System.Text.UTF8EncodingSystem.String, mscorlib, version=4.0.0.0, Culture=neutral, publickeytoken= B77a5c561934e089System.IO.Packaging.Package, WindowsBase, version=4.0.0.0, Culture=neutral, publickeytoken= 31bf3856ad364e35system.timezoneinfo, mscorlib, version=4.0.0.0, Culture=neutral, publickeytoken= B77a5c561934e089available Frameworks:mono 1.0 Profile Mono 2.0 profileclrinfo$Mono ClrInfo40.exeOS Version:unix 3.5.6.1 CLR version:4.0.30319.1(2.10.8 (tarball Sat Oct 6 23:22:30 UTC 2012)) Default Encoding:System.Text.UTF8EncodingSystem.String, mscorlib, version=4.0.0.0, Culture=neutral, publickeytoken= B77a5c561934e089System.IO.Packaging.Package, WindowsBase, version=4.0.0.0, Culture=neutral, publickeytoken= 31bf3856ad364e35system.timezoneinfo, mscorlib, version=4.0.0.0, Culture=neutral, publickeytoken= B77a5c561934e089available Frameworks:mono 1.0 Profile Mono 2.0 profile
It is visible that Mono 2.11.4 already supports. NET Framework 4.5 and CLR 4.5. The version number corresponding to the Microsoft. NET Framework 4.5 RTM and CLR 4.5 is: 4.0.30319.17929. Mono 2.11.4 because it is an Alpha version, the corresponding version number is 4.0.30319.17020. Microsoft. NET Framework 4.5 is an in-place replace. NET Framework 4, their version number is 4.0.30319, it is generally considered that Revision less than 17000 is. NET 4, greater than 17000 is. NET 4 .5.
Disk occupancy
Let's see. See how much disk space a Mono needs to occupy:
~$ du-hs repo/mono-2.11.4/opt/mono-2.11.4 1.2grepo/mono-2.11.4325m/opt/ mono-2.11.4~$ Pacman-qi Mono Name: Mono version: 2.10.8-2url address: http://www.mono-project.com/Software license: GPL LG PL2 MPL custom:mitx11 software group: None provided: Monodoc dependent: zlib libgdiplus>=2.10 sh Optional dependency: No requirement: Dbus-sharp gtk-sharp-2 m Ono-addins monodevelop conflict with: Monodoc substitution: No post-Installation size: 139620.00 KiB Packager: Tom Gundersen <[email protected]> Architecture: x86_64 Compilation Date: October 07, 2012 Sunday 07:28 31 seconds Installation Date: October 11, 2012 Thursday 08:07 59 seconds Installation Reason: Specify installation script separately: No description: free implementation of T He. NET platform including runtime and compiler
As can be seen, Mono 2.11.4 source code compiled after the use of 1.2 GB of disk space, if you do not study the source code, the installation can be deleted after the completion. The Mono 2.11.4 target code consumes 325 MB of disk space. The Mono 2.10.8 package that comes with Arch Linux consumes approximately 139 MB of disk space.
Copyright NOTICE: This article for Bo Master http://www.zuiniusn.com original article, without Bo Master permission not reproduced.
Arch Linux Installation Mono 2.11.4 Memo