[Mono-list] Minimal Mono

Robert Jordan robertj at gmx.net
Sun Mar 16 12:41:57 EDT 2008


Thempra wrote:
> I read in  http://www.mono-project.com/Compiling_Mono   "This allows Mono to
> be shipped in 2-3 megabytes" but when I compile it :
> 
> # ./autogen.sh
> --enable-minimal=aot,profiler,decimal,debug,pinvoke,reflection_emit,logging,com,ssa,generics
> --disable-mcs-build
> # make
> # make install DESTDIR=/media/disk/mono/install/
> 
> 
> I get this:
> #du -h /media/disk/mono/install/
> 
> 24K    ./usr/local/lib/pkgconfig
> 24M    ./usr/local/lib
> 88K    ./usr/local/etc/mono/1.0
> 112K    ./usr/local/etc/mono/2.0
> 536K    ./usr/local/etc/mono
> 540K    ./usr/local/etc
> 12K    ./usr/local/share/man/man5
> 284K    ./usr/local/share/man/man1
> 300K    ./usr/local/share/man
> 40K    ./usr/local/share/mono-1.0/mono/cil
> 44K    ./usr/local/share/mono-1.0/mono
> 48K    ./usr/local/share/mono-1.0
> 420K    ./usr/local/share/libgc-mono
> 772K    ./usr/local/share
> 8,0K    ./usr/local/include/mono-1.0/mono/interpreter
> 156K    ./usr/local/include/mono-1.0/mono/metadata
> 32K    ./usr/local/include/mono-1.0/mono/cil
> 228K    ./usr/local/include/mono-1.0/mono/io-layer
> 8,0K    ./usr/local/include/mono-1.0/mono/jit
> 52K    ./usr/local/include/mono-1.0/mono/utils
> 488K    ./usr/local/include/mono-1.0/mono
> 492K    ./usr/local/include/mono-1.0
> 496K    ./usr/local/include
> 14M    ./usr/local/bin
> 39M    ./usr/local
> 39M    ./usr
> 47M    .
> 
> 
> 47 MB is not 2-3MB !!!!!  I don't understand it.  Thx


The installer won't generate a 2-3MB installation. You have to
tailor the installation yourself, i.e. remove usr/local/{include,
share, lib [excepting lib/mono]}, all binaries excepting mono, and
also don't forget to strip(3) usr/local/bin/mono.

Robert



More information about the Mono-list mailing list