Ubuntu 7.04 Feisty FawnにMono 1.9 (2.0 Beta)をインストールしたときの手順。 Feisty Fawnでパッケージからインストールできるバージョンは1.2.1と若干古いので、ソースからインストールした。 またインストール先は/usr/localとした。
Monoを使用する上で最低限必要なライブラリのインストール。
コンパイル時に必要となるパッケージをあらかじめSynapticないしはapt-getでインストールしておく。 必要になるものは以下のパッケージ。
wget http://go-mono.com/sources/libgdiplus/libgdiplus-1.9.tar.bz2 tar -xvf libgdiplus-1.9.tar.bz2 cd libgdiplus-1.9/ ./configure
configureした結果で依存関係に問題(noと表示される箇所)がないことを確認する。
Configuration summary
* Installation prefix = /usr/local
* Cairo = internal
* Text = cairo
* EXIF tags = yes
* Codecs supported:
- TIFF: yes
- JPEG: yes
- GIF: yes
- PNG: yes
NOTE: if any of the above say 'no' you may install the
corresponding development packages for them, rerun
autogen.sh to include them in the build.
問題が無ければ、make、make installする。
make sudo make install
wget http://go-mono.com/sources/mono/mono-1.9.tar.bz2 tar -xvf mono-1.9.tar.bz2 cd mono-1.9/ ./configure
configureの結果例。
mcs source: $(top_srcdir)/mcs
olive source:
GC: included
TLS: __thread
SIGALTSTACK: yes
Engine: Building and using the JIT
2.0 Beta: yes
2.1 Alpha: yes
JNI support: IKVM Native
libgdiplus: assumed to be installed
zlib: system zlib
oprofile: no
configureに成功したら、make make installする。
make sudo make install
インストールが完了したら、mono -Vでmonoが動作することを確認する。
# mono -V
Mono JIT compiler version 1.9 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
またgacutil -lでアセンブリがGACに登録されていることを確認する。
# gacutil -l The following assemblies are installed into the GAC: : System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 System, Version=2.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a System.Configuration.Install, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a System.Configuration.Install, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a System.Core, Version=2.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 :
他のMonoアプリケーションが必要とするアセンブリのインストール。
コンパイル時に必要となるパッケージをあらかじめSynapticないしはapt-getでインストールしておく。 必要になるものは以下のパッケージ。
wget http://go-mono.com/sources/monodoc/monodoc-1.9.zip unzip monodoc-1.9.zip cd monodoc-1.9/ ./configure make sudo make install
wget http://go-mono.com/sources/gtk-sharp210/gtk-sharp-2.10.4.tar.bz2 tar -xvf gtk-sharp-2.10.4.tar.bz2 gtk-sharp-2.10.4/ ./configure
configureした結果で依存関係に問題(noと表示される箇所)がないことを確認する。
Configuration summary
* Installation prefix = /usr/local
* C# compiler: /usr/local/bin/mcs -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -define:GTK_SHARP_2_10
Optional assemblies included in the build:
* glade-sharp.dll: yes
* gtk-dotnet.dll: yes
NOTE: if any of the above say 'no' you may install the
corresponding development packages for them, rerun
autogen.sh to include them in the build.
* Documentation build enabled: yes
問題が無ければ、make、make installする。
make sudo make install
wget http://go-mono.com/sources/mono-addins/mono-addins-0.3.1.tar.bz2 tar -xvf mono-addins-0.3.1.tar.bz2 cd mono-addins-0.3.1/ ./configure
configureの結果を確認する。
Configuration summary * Installation prefix = /usr/local * gui support: yes * unit tests: no
問題が無ければ、make、make installする。
make sudo make install
wget http://go-mono.com/sources/gnome-sharp2/gnome-sharp-2.16.1.tar.gz tar -xvf gnome-sharp-2.16.1.tar.gz cd gnome-sharp-2.16.1/ ./configure
configureの結果を確認する。
Configuration summary
* Installation prefix = /usr/local
* C# compiler: /usr/local/bin/mcs -define:GTK_SHARP_2_6 -define:GTK_SHARP_2_8 -define:GNOME_SHARP_2_16
Optional assemblies included in the build:
* art-sharp.dll: yes
* gnomevfs-sharp.dll: yes
* gnome-sharp.dll: yes
* rsvg-sharp.dll: yes
* gtkhtml-sharp.dll: yes
* vte-sharp.dll: yes
NOTE: if any of the above say 'no' you may install the
corresponding development packages for them, rerun
autogen.sh to include them in the build.
gnome-sharp.dll requires libgnomecanvas, libgnome,
libgnomeui, libgnomeprint, libgnomeprintui, and
libpanelapplet.
問題が無ければ、make、make installする。
make sudo make install
wget http://go-mono.com/sources/mono-tools/mono-tools-1.9.tar.bz2 tar -xvf mono-tools-1.9.tar.bz2 cd mono-tools-1.9/ ./configure
configureの結果を確認する。
Configuration summary
* Installation prefix = /usr/local
* gecko-sharp.dll = yes
NOTE: if any of the above say 'no' you may install the
corresponding development packages for them, rerun
autogen.sh to include them in the build.
問題が無ければ、make、make installする。
make sudo make install
wget http://go-mono.com/sources/gecko-sharp2/gecko-sharp-2.0-0.13.tar.bz2 tar -xvf gecko-sharp-2.0-0.13.tar.bz2 cd gecko-sharp-2.0-0.13/ ./configure
configureの結果を確認する。
Configuration summary * Installation prefix: /usr/local * compiler: /usr/local/bin/mcs * Documentation: yes (/usr/local/bin/monodocer)
問題が無ければ、make、make installする。
make sudo make install
wget http://go-mono.com/sources/gtksourceview-sharp2/gtksourceview-sharp-2.0-0.12.tar.bz2 tar -xvf gtksourceview-sharp-2.0-0.12.tar.bz2 cd gtksourceview-sharp-2.0-0.12/ ./configure
configureの結果を確認する。
Configuration summary * Installation prefix: /usr/local * compiler: /usr/local/bin/mcs * Documentation: yes
問題が無ければ、make、make installする。
make sudo make install
gacutil -lでコンパイル・インストールしたアセンブリがGACに登録されていることを確認する。
# gacutil -l : gconf-sharp, Version=2.16.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f gconf-sharp-peditors, Version=2.16.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f gdk-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f gecko-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ccf7d78a55e9f021 glade-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f glib-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f gnome-sharp, Version=2.16.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f gnome-vfs-sharp, Version=2.16.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f gtk-dotnet, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f gtk-sharp, Version=2.10.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f gtkhtml-sharp, Version=2.16.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f gtksourceview-sharp, Version=1.0.0.2, Culture=neutral, PublicKeyToken=35e10195dab3c99f monodoc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756 :