|
1,6 |
1,6 |
|
${smdncms:title,Monoのインストール (svn trunkから)}
|
${smdncms:title,Monoのインストール (svn trunkから)}
|
|
${smdncms:keywords,Mono,trunk,ビルド,インストール}
|
${smdncms:keywords,Mono,trunk,ビルド,インストール}
|
~ |
[[Mono:http://www.mono-project.com/Main_Page]]をsvn trunkのソースからビルドしてインストールする手順。 ビルドに使用した環境はUbuntu 9.10 Desktop。 本文は2010年04月20日現在のバージョンに基づく。
|
[[Mono:http://www.mono-project.com/Main_Page]]をsvn trunkのソースからビルドしてインストールする手順。 ビルドに使用した環境はUbuntu 9.10 RC Desktop。 本文は2009年10月26日現在のバージョンに基づく。
|
|
|
|
|
-関連するページ
|
-関連するページ
|
|
--[[programming/mono]]
|
--[[programming/mono]]
|
|
71,37 |
71,36 |
|
--[[Advanced Mono Compile Options - Mono:http://www.mono-project.com/Advanced_Mono_Compile_Options]]
|
--[[Advanced Mono Compile Options - Mono:http://www.mono-project.com/Advanced_Mono_Compile_Options]]
|
|
--[[Unsupported Advanced Mono Compile Options - Mono:http://www.mono-project.com/Unsupported_Advanced_Mono_Compile_Options]]
|
--[[Unsupported Advanced Mono Compile Options - Mono:http://www.mono-project.com/Unsupported_Advanced_Mono_Compile_Options]]
|
|
|
|
~ |
ソースのチェックアウトとautogen、configure。 .NET Framework 4のアセンブリを含めない場合は、--with-profile4=noを指定する。
|
ソースのチェックアウトとautogen、configure。 .NET Framework 4のアセンブリを含めない場合は、--with-profile4をnoにする。
|
|
#code(sh){{
|
#code(sh){{
|
|
svn co svn://anonsvn.mono-project.com/source/trunk/mono svn://anonsvn.mono-project.com/source/trunk/mcs
|
svn co svn://anonsvn.mono-project.com/source/trunk/mono svn://anonsvn.mono-project.com/source/trunk/mcs
|
|
cd mono
|
cd mono
|
~ |
./autogen.sh --prefix=/usr/local --with-libgdiplus=installed --with-large-heap=yes --with-ikvm-native=no --with-moonlight=yes --with-mcs-docs=no --with-x
|
./autogen.sh --prefix=/usr/local --with-libgdiplus=installed --with-large-heap=yes --with-ikvm-native=no --with-moonlight=yes --with-profile2=yes --with-profile4=yes
|
|
}}
|
}}
|
|
|
|
|
configureの結果例。
|
configureの結果例。
|
|
#prompt{{
|
#prompt{{
|
~ |
mcs source: ../mcs
|
mcs source: $(top_srcdir)/../mcs
|
|
olive source:
|
olive source:
|
|
|
|
+ |
Engine:
|
|
|
GC: included
|
GC: included
|
|
GLIB: system
|
GLIB: system
|
|
TLS: __thread
|
TLS: __thread
|
|
SIGALTSTACK: yes
|
SIGALTSTACK: yes
|
|
Engine: Building and using the JIT
|
Engine: Building and using the JIT
|
- |
|
Moon Profile: yes
|
- |
|
4.0 Alpha: yes
|
- |
|
MonoTouch: no
|
- |
|
JNI support:
|
- |
|
libgdiplus: assumed to be installed
|
- |
|
zlib: system zlib
|
|
oprofile: no
|
oprofile: no
|
|
BigArrays: no
|
BigArrays: no
|
|
DTrace: no
|
DTrace: no
|
|
Parallel Mark: yes
|
Parallel Mark: yes
|
|
LLVM Back End: no
|
LLVM Back End: no
|
- |
|
|
|
|
|
+ |
Libraries:
|
|
+ |
Moon Profile: yes
|
|
+ |
MonoTouch: no
|
|
+ |
JNI support:
|
|
+ |
libgdiplus: assumed to be installed
|
|
+ |
zlib: system zlib
|
|
+ |
|
|
|
|
|
|
Now type `make' to compile
|
Now type `make' to compile
|
|
}}
|
}}
|
|
128,16 |
127,14 |
|
インストールが完了したら、mono -Vでmonoが動作することを確認する。
|
インストールが完了したら、mono -Vでmonoが動作することを確認する。
|
|
#prompt{{
|
#prompt{{
|
|
$ mono -V
|
$ mono -V
|
~ |
Mono JIT compiler version 2.7 (/trunk/mono r155738 2010年 4月 20日 火曜日 02:01:54 JST)
|
Mono JIT compiler version 2.7 (/trunk/mono r144827 2009年 10月 26日 月曜日 04:53:08 JST)
|
~ |
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
|
Copyright (C) 2002-2009 Novell, Inc and Contributors. www.mono-project.com
|
|
TLS: __thread
|
TLS: __thread
|
|
GC: Included Boehm (with typed GC and Parallel Mark)
|
GC: Included Boehm (with typed GC and Parallel Mark)
|
|
SIGSEGV: altstack
|
SIGSEGV: altstack
|
|
Notifications: epoll
|
Notifications: epoll
|
|
Architecture: x86
|
Architecture: x86
|
|
Disabled: none
|
Disabled: none
|
+ |
Misc: debugger softdebug
|
|
+ |
LLVM supported
|
|
|
}}
|
}}
|
|
|
|
|
またgacutil -lでアセンブリがGACに登録されていることを確認する。
|
またgacutil -lでアセンブリがGACに登録されていることを確認する。
|
|
147,7 |
144,6 |
|
:
|
:
|
|
System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
|
System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
+ |
System.ComponentModel.Composition, Version=2009.22.10.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
|
|
|
System.ComponentModel.DataAnnotations, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
|
System.ComponentModel.DataAnnotations, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
|
|
System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
|
System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
|
|
System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
|
180,9 |
176,9 |
|
|
|
|
Enter statements below.
|
Enter statements below.
|
|
csharp> Console.WriteLine(Environment.Version);
|
csharp> Console.WriteLine(Environment.Version);
|
~ |
4.0.21006.1
|
2.0.50727.1433
|
|
csharp> Console.WriteLine(Environment.OSVersion);
|
csharp> Console.WriteLine(Environment.OSVersion);
|
~ |
Unix 2.6.31.20
|
Unix 2.6.31.14
|
|
csharp> quit;
|
csharp> quit;
|
|
null
|
null
|
|
}}
|
}}
|
|
291,7 |
287,6 |
|
* Using GtkHtml = yes
|
* Using GtkHtml = yes
|
|
* Using Mono.WebBrowser = yes
|
* Using Mono.WebBrowser = yes
|
|
* Using WebKit = no
|
* Using WebKit = no
|
+ |
* Using Gnome = yes
|
|
|
|
|
|
NOTE: if any of the above say 'no' you may install the
|
NOTE: if any of the above say 'no' you may install the
|
|
corresponding development packages for them, rerun
|
corresponding development packages for them, rerun
|