[Mono-list] MONO_PATH or config options for System.ConsoleKeyInfo on local compile

Andreas Färber andreas.faerber at web.de
Thu Mar 1 20:01:22 EST 2007


Hello,

Am 01.03.2007 um 18:36 schrieb Holger Blasum:

> on a shared host (gnu/linux 2.6.16, gcc 3.3.5) I've tried to compile
> and install locally mono-1.2.3.1 for a friend for a small
> experimental setup via
>
> "./configure --prefix=/home/blasum/mono
> --enable-minimal=profiler,pinvoke,debug,reflection_emit,logging
> --disable-shared-handles --with-sigaltstack=no --with-xen_opt=no
> --with-large-heaps=no --with-ikvm-native=no --with-interp=no
> --with-preview=no"
>
> followed by "make -Os" (this, I think, just optimizes for space).
>
> This compiles and "make installs", but when calling a program via
> "MONO_PATH=mono/lib/mono/1.0 mono/bin/mono server" I get:
> ** (server:8670): WARNING **: The class System.ConsoleKeyInfo could
> not be loaded, used in mscorlib, Version=2.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089
> Unhandled Exception: System.TypeLoadException: Could not load type
> 'System.ConsoleKeyInfo' from assembly 'mscorlib, Version=2.0.0.0,
> Culture=neutral, PublicKeyToken=b77a5c561934e089'.
>
> [...]
>
> Is this just a misconfigured MONO_PATH (my error might be very
> elementary ... ) or was I too restrictive with the compilation
> options? (due to space constraints I cannot afford a full install;
> I also try to go without libgdiplus on this remote server ...)

Your options are too restrictive. Don't disable the so-called  
"preview", which is the 2.0 profile your application is using.

Andreas


More information about the Mono-list mailing list