Debian wheezy に mono F# インストール失敗

↑これを見て作業

% sudo apt-get install mono-devel
  • gmcs が無いと怒られたので上記サイトに書いてないけど、入れといた。
 sudo apt-get install  mono-gmcs

mono

% sudo apt-get install libtool autoconf g++ gettext make git
% git clone https://github.com/mono/mono
% cd mono
% ./autogen.sh --prefix /usr
% make get-monolite-latest
% make
<略>
Creating the per profile list ../../build/deps/basic_System.Core.dll.sources ...
MCS     [basic] System.Core.dll
mkdir -p -- ../../class/lib/build/tmp/
MCS     [build] mscorlib.dll
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) System.Environment.Exit (int) <0xffffffff>
  at Mono.CSharp.Driver.Main (string[]) <0x001f7>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_int_object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        /home/yoya/git/mono/mono/mini/mono() [0x4afa5a]
        /home/yoya/git/mono/mono/mini/mono() [0x50790f]
        /home/yoya/git/mono/mono/mini/mono() [0x422ed7]
        /lib/x86_64-linux-gnu/libpthread.so.0(+0xf030) [0x2b0186543030]
        /lib/x86_64-linux-gnu/libpthread.so.0(pthread_join+0x2c) [0x2b018653bd8c]
        /home/yoya/git/mono/mono/mini/mono() [0x5a485f]
        /home/yoya/git/mono/mono/mini/mono(mono_runtime_cleanup+0xe) [0x59c2fe]
        /home/yoya/git/mono/mono/mini/mono() [0x41b6e6]
        /home/yoya/git/mono/mono/mini/mono() [0x5358db]
        [0x41f884dd]

Debug info from gdb:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00002b0186542c1d in waitpid () from /lib/x86_64-linux-gnu/libpthread.so.0
  Id   Target Id         Frame
* 1    Thread 0x2b0186adb480 (LWP 10447) "mono" 0x00002b0186542c1d in waitpid () from /lib/x86_64-linux-gnu/libpthread.so.0

Thread 1 (Thread 0x2b0186adb480 (LWP 10447)):
#0  0x00002b0186542c1d in waitpid () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00000000004afae2 in mono_handle_native_sigsegv (signal=signal@entry=11, ctx=ctx@entry=0x2b0186aefac0) at mini-exceptions.c:2299
#2  0x000000000050790f in mono_arch_handle_altstack_exception (sigctx=sigctx@entry=0x2b0186aefac0, fault_addr=<optimized out>, stack_ovf=stack_ovf@entry=0) at exceptions-amd64.c:908
#3  0x0000000000422ed7 in mono_sigsegv_signal_handler (_dummy=11, info=0x2b0186aefbf0, context=0x2b0186aefac0) at mini.c:6769
#4  <signal handler called>
#5  0x00002b018653bd8c in pthread_join () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00000000005a485f in mono_gc_cleanup () at gc.c:1215
#7  0x000000000059c2fe in mono_runtime_cleanup (domain=domain@entry=0x2691050) at appdomain.c:354
#8  0x000000000041b6e6 in mini_cleanup (domain=0x2691050) at mini.c:7626
#9  0x00000000005358db in ves_icall_System_Environment_Exit (result=0) at icall.c:6517
#10 0x0000000041f884dd in ?? ()
#11 0x00000000026ca940 in ?? ()
#12 0x00002b0186d96490 in ?? ()
#13 0x00000000026f7720 in ?? ()
#14 0x00007fff2a4d2080 in ?? ()
#15 0x00007fff2a4d1f90 in ?? ()
#16 0x0000000000000000 in ?? ()

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Aborted
make[8]: *** [../../class/lib/build/tmp/mscorlib.dll] エラー 134
make[7]: *** [do-all] エラー 2
make[6]: *** [all-recursive] エラー 1
make[5]: *** [all-recursive] エラー 1
make[4]: *** [profile-do--build--all] エラー 2
make[3]: *** [profiles-do--all] エラー 2
make[2]: *** [all-local] エラー 2
make[2]: ディレクトリ `/home/yoya/git/mono/runtime' から出ます
make[1]: *** [all-recursive] エラー 1
make[1]: ディレクトリ `/home/yoya/git/mono' から出ます
make: *** [all] エラー 2
% 

fsharp

ダメ元で make

%  sudo apt-get install autoconf libtool pkg-config make git
% git clone https://github.com/fsharp/fsharp
% cd fsharp
% ./autogen.sh --prefix /usr
% make
<略>
make[3]: ディレクトリ `/home/yoya/git/fsharp/src/fsharp/FSharp.Build-proto' に入ります
MONO_ENV_OPTIONS= xbuild /p:Configuration=Proto
XBuild Engine Version 2.10.8.1
Mono, Version 2.10.8.1
Copyright (C) Marek Sieradzki 2005-2008, Novell 2008-2011.

Build started 2014/01/14 0:28:35.
__________________________________________________
Project "/home/yoya/git/fsharp/src/fsharp/FSharp.Build-proto/FSharp.Build-proto.fsproj" (default target(s)):
        Target CallFsSrGen:
                Created directory "obj/proto/./"
                Tool /home/yoya/git/fsharp/src/fsharp/FSharp.Build-proto/../../../lib/bootstrap/4.0/../2.0/fssrgen.exe execution started with arguments:  /home/yoya/git/fsharp/src/fsharp/FSharp.Build/FSBuild.txt  obj/proto/./FSBuild.fs  FSBuild.resx
        Target PrepareForBuild:
                Configuration: Proto Platform: AnyCPU
        Target ResolveAssemblyReferences:
/usr/lib/mono/4.0/Microsoft.Common.targets:  warning : Reference 'Microsoft.Build' not resolved
                For searchpath {CandidateAssemblyFiles}
                Warning: {CandidateAssemblyFiles} not supported currently
                For searchpath {HintPathFromItem}
                HintPath attribute not found
                For searchpath {TargetFrameworkDirectory}
                Considered target framework dir /usr/lib/mono/4.0, assembly named 'Microsoft.Build' not found.
                For searchpath {PkgConfig}
                Considered Microsoft.Build, but could not find in any pkg-config files.
                For searchpath {GAC}
                Considered Microsoft.Build, but could not find in the GAC.
                For searchpath {RawFileName}
                Considered '/home/yoya/git/fsharp/src/fsharp/FSharp.Build-proto/Microsoft.Build' as a file, but the file does not exist
                For searchpath /home/yoya/git/fsharp/src/fsharp/FSharp.Build-proto/../../../lib/proto/./
                Considered '/home/yoya/git/fsharp/lib/proto/Microsoft.Build' as a file, but the file does not exist
                Considered '/home/yoya/git/fsharp/lib/proto/Microsoft.Build.exe' as a file, but the file does not exist
                Considered '/home/yoya/git/fsharp/lib/proto/Microsoft.Build.dll' as a file, but the file does not exist
        Target CreateManifestResourceNames:
: error : Error initializing task ItemGroup: Not registered task ItemGroup.
        Task "ItemGroup" execution -- FAILED
        Done building target "CreateManifestResourceNames" in project "/home/yoya/git/fsharp/src/fsharp/FSharp.Build-proto/FSharp.Build-proto.fsproj".-- FAILED
Done building project "/home/yoya/git/fsharp/src/fsharp/FSharp.Build-proto/FSharp.Build-proto.fsproj".-- FAILED

Build FAILED.

Warnings:

/home/yoya/git/fsharp/src/fsharp/FSharp.Build-proto/FSharp.Build-proto.fsproj (default targets) ->
/usr/lib/mono/4.0/Microsoft.Common.targets (ResolveAssemblyReferences target) ->

        /usr/lib/mono/4.0/Microsoft.Common.targets:  warning : Reference 'Microsoft.Build' not resolved

Errors:

/home/yoya/git/fsharp/src/fsharp/FSharp.Build-proto/FSharp.Build-proto.fsproj (default targets) ->
/home/yoya/git/fsharp/lib/bootstrap/4.0/Microsoft.FSharp.Targets (CreateManifestResourceNames target) ->

        : error : Error initializing task ItemGroup: Not registered task ItemGroup.

         1 Warning(s)
         1 Error(s)

Time Elapsed 00:00:02.0405830
make[3]: *** [build-proto] エラー 1
make[3]: ディレクトリ `/home/yoya/git/fsharp/src/fsharp/FSharp.Build-proto' から出ます
make[2]: *** [build-proto] エラー 2
make[2]: ディレクトリ `/home/yoya/git/fsharp/src/fsharp' から出ます
make[1]: *** [all] エラー 2
make[1]: ディレクトリ `/home/yoya/git/fsharp/src/fsharp' から出ます
make: *** [all] エラー 2
%