Ubuntu 8.04 (hardy heron) 㫠mono 2.4 をインストール
我ãŒå®¶ã®ãƒ¡ã‚¤ãƒ³ã‚µãƒ¼ãƒãƒ¼ã§ã‚ã‚‹ Ubuntu 8.04 (近々 OpenSUSE ã«ãƒªãƒ—レース予定) ã« mono 2.4 をインストールã—ã¦ã¿ãŸã®ã§ãƒ¡ãƒ¢ã€‚
Ubuntu 8.04 ã®å…¬å¼ãƒ‘ッケージãªã©ã§ã¯ mono 1.x ã«ãªã£ã¦ã—ã¾ã†ã®ã§ã€ã‚½ãƒ¼ã‚¹ã‹ã‚‰ãƒ“ルドã—ãŸã€‚
環境ã¨ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«å¾Œã®çŠ¶æ…‹
% uname -a Linux NEC-1 2.6.24-16-generic #1 SMP Thu Apr 10 12:47:45 UTC 2008 x86_64 GNU/Linux % lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 8.04.2 Release: 8.04 Codename: hardy
% mono -V Mono JIT compiler version 2.4 (tarball 2009å¹´ 5月 5æ—¥ ç«æ›œæ—¥ 05:18:44 JST) Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC: Included Boehm (with typed GC) SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none
% gmcs --version Mono C# compiler version 2.4.0.0
ã‚„ã£ãŸã“ã¨
ã»ã¨ã‚“ã©ã€ã“ã¡ã‚‰ã®ã‚µã‚¤ãƒˆã‚’å‚考ã«ã²ãŸã™ã‚‰ configure, make, make install ã—ãŸã ã‘ã§ã‚ã‚‹: http://smdn.invisiblefulmoon.net/programming/mono/install_2.4/
上ã®ã‚µã‚¤ãƒˆã¯ Ubuntu 9.04 対象ã ãŒã€Ubuntu 8.04 ã§ã‚‚åŒæ§˜ã®æ‰‹é †ã§ã»ã¼å•é¡Œãªãインストール完了ã—ãŸã€‚
å•é¡Œãªã©
事å‰ã«ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«æ¸ˆã¿ã® mono ã‚’ apt-get remove ã—ãŸ
手ã§ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã—㟠mono ã¨å…±å˜ã—ã¦ã‚‚大丈夫ã‹ã‚‚ã—ã‚Œãªã„ãŒã€å…±å˜ã•ã›ã‚‹æ„味もã‚ã¾ã‚Šæ„Ÿã˜ã‚‰ã‚Œãªã„ã®ã§ã€apt-get install ã—ã¦ã‚ã£ãŸ mono ã¯æ¶ˆã—ãŸã€‚
mono-tools ã® make 㧠"An exception was thrown by the type initializer for System.Drawing.GDIPlus" ã¨ãªã£ã¦ã‚³ã‚±ã‚‹
以å‰æ›¸ã„ãŸã“ã®ã‚¨ãƒ³ãƒˆãƒªã¨åŒã˜è©±ã§ã‚ã‚‹: OS X に macports でインストールした mono で Graphics や Forms を使うための設定 - やこ〜ん SuperNova2
対処法ã¨ã—ã¦ã¯ã€~/.mono/config ã«
<configuration> <dllmap dll="gdiplus.dll" target="/usr/local/lib/libgdiplus.so"/> </configuration>
ã¨æ›¸ã„ã¦ãŠã‘ã°ã‚ˆã„(当然ãªãŒã‚‰äº‹å‰ã« libgdiplus ã®ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ãŒå¿…è¦ã§ã‚ã‚‹)。
ã“ã†ã™ã‚‹ã“ã¨ã§ã€gdiplus.dll を発見ã§ããªã„ãŸã‚ã«ã‚³ã‚±ã¦ã„ã‚‹ã¨ã“ã‚ã‚’ã€gdiplus.dll ã®ä»£ã‚ã‚Šã« libgdiplus.so ã‚’ãƒãƒ¼ãƒ‰ã•ã›ã‚‹ã“ã¨ã§è§£æ±ºã§ãるよã†ã«ãªã‚‹ã€‚
gnome-desktop-sharp ㌠gtksourceview2-sharp.dll: no ã¨ä¸»å¼µã™ã‚‹
gnome-desktop-sharp ã® configure ã«ã¦ã€
% gacutil -l | grep source gtksourceview-sharp, Version=1.0.0.2, Culture=neutral, PublicKeyToken=35e10195dab3c99f gtksourceview2-sharp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f
ã¨ã„ã†é¢¨ã«ã€gtksourceview2 ãŒã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã•ã‚Œã¦ã„ã‚‹ã¯ãšã§ã‚ã‚‹ã«ã‚‚é–¢ã‚らãšã€
Optional assemblies included in the build: * gtkhtml-sharp.dll: yes * gtksourceview2-sharp.dll: no * nautilusburn-sharp.dll: yes * rsvg-sharp.dll: yes * vte-sharp.dll: yes * wnck-sharp.dll: yes
ã¨ãªã£ã¦ã—ã¾ã†å•é¡ŒãŒã‚る。
gacutil -l ã§ã¯å‡ºã¦ãã‚‹ã®ã«è¦‹ã¤ã‹ã‚‰ãªã„ã‚ãŸã‚Šã€ä½•ã‹å•é¡ŒãŒã‚ã‚‹ã®ã ã‚ã†ãŒã€ä»Šã®ã¨ã“ã‚ gtk / mono ãªã‚¢ãƒ—リを触る予定ãŒç„¡ã„上ã€ãŠãªã‹ãŒæ¸›ã£ãŸã®ã§ã¨ã‚Šã‚ãˆãšæ”¾ç½®ã—ã¦ã‚る。
ãŠãらãã€gtksourceview を使ãˆãªã„ã“ã¨ã§ MonoDevelop ãªã©ã§å›°ã‚‹ã ã‘ã ã¨æ€ã†ã®ã§ã€å¾Œæ—¥æ°—ãŒå‘ã„ãŸã‚‰ã©ã†ã«ã‹ã™ã‚‹äºˆå®šã€‚