inohilog

/var/log/inohiro.log

Mono 2.4 / MonoDevelop 2 Release!!

Mono 2.4 と、IDEであるMonoDevelop 2がリリースされたようです。

Mono 2.4 and MonoDevelop 2.0 have been released
Today we announced the release of both the Mono 2.4 platform and the MonoDevelop 2.0.
Posted by Mono Project at Novell on 30 Mar 2009

Mono 2.4 and MonoDevelop 2.0 have been released

Mono 2.4 の新機能

Mono 2.4の強化/追加された機能はここに載ってる。あとでまとめようと思います。
Release Notes Mono 2.4 - Mono

MonoDevelop 2 の新機能

MonoDevelop2 の強化/追加された機能はここに載ってる。あとでまとめようと思います。
MonoDevelop 2.0 Released - MonoDevelop

Mac OS X 10.5.6 に Mono 2.4 をインストール

Current Version は、

inohiro-mac:monodevelop-2.0 inohiro$ mono -V
Mono JIT compiler version 2.0.1 (tarball)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
	TLS:           normal
	GC:            Included Boehm (with typed GC)
	SIGSEGV:       normal
	Notification:  Thread + polling
	Architecture:  x86
	Disabled:      none

2.0.1のようです。

とりあえずMacPortsを更新。

inohiro-mac:~ inohiro$ sudo port -d selfupdate

次にMonoを探す。

inohiro-mac:monodevelop-2.0 inohiro$ port search mono
// 省略
mono @2.4 (devel, lang, mono)
    Implementation of the .NET Development Framework
// 省略

なんと既に2.4が!ということで、

inohiro-mac:monodevelop-2.0 inohiro$ sudo port upgrade mono
// 省略
--->  Cleaning xorg-libs
--->  Fetching mono
--->  Attempting to fetch mono-2.4.tar.bz2 from http://distfiles.macports.org/mono
--->  Verifying checksum(s) for mono
--->  Extracting mono
--->  Applying patches to mono
--->  Configuring mono
--->  Building mono
// 省略

なかなかインストールに時間がかかってるみたいなので、放置します。Mono 2.4のインストールが終わったらMonoDevelop 2のインストールをします*1

inohiro-mac:monodevelop-2.0 inohiro$ mono -V
Mono JIT compiler version 2.4 (tarball Tue Mar 31 17:17:29 JST 2009)
Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
	TLS:           normal
	GC:            Included Boehm (with typed GC)
	SIGSEGV:       normal
	Notification:  Thread + polling
	Architecture:  x86
	Disabled:      none

はい、2.4になりました。

Mac OS X 10.5.6 に MonoDevelop2 をインストール

Download - MonoDevelop」からソースコードをダウンロード。解凍して移動して、さっそぐ「./configure」。

inohiro-mac:monodevelop-2.0 inohiro$ ./configure 
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for mono... /opt/local/bin/mono
checking for gmcs... /opt/local/bin/gmcs
checking for update-mime-database... /opt/local/bin/update-mime-database
checking for update-desktop-database... /opt/local/bin/update-desktop-database
checking for pkg-config... /opt/local/bin/pkg-config
checking for msgfmt... /opt/local/bin/msgfmt
checking for msgmerge... /opt/local/bin/msgmerge
checking pkg-config is at least version 0.9.0... yes
checking for UNMANAGED_DEPENDENCIES_MONO... yes
checking for mono... /opt/local/bin/mono
checking for gmcs... /opt/local/bin/gmcs
checking for MONO_ADDINS... configure: error: Package requirements (mono-addins >= 0.3) were not met:

No package 'mono-addins' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables MONO_ADDINS_CFLAGS
and MONO_ADDINS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

どうやら「mono-addins」が無いらしい。「mono-addins」はMacPortsで「port search mono」したときに見た気がするので、確認。

inohiro-mac:monodevelop-2.0 inohiro$ port search mono-addins
mono-addins @0.3.1 (devel)
    Mono.Addins is a framework for creating extensible applications

あったのでインストール。そしてサイド「./configure」。

inohiro-mac:monodevelop-2.0 inohiro$ ./configure 
// 省略
checking for MONO_CAIRO... yes
checking for GNOME_SHARP... no
checking for GNOME_VFS_SHARP... no
checking for GCONF_SHARP... no
configure: error: Cannot enable GNOME platform without gnome-sharp-2.0

今度は「gnome-sharp-2.0」ですか。

inohiro-mac:monodevelop-2.0 inohiro$ port search gnome-sharp
gnome-sharp2 @2.20.0 (gnome, devel)
    Gtk bindings for the Mono .NET Development Framework


GNOME-Sharp2 のエラーですが、GNOME-Sharp2のエラーという訳ではなくて依存の関係でインストールされている「gtk-doc」のエラー。

inohiro-mac:monodevelop-2.0 inohiro$ sudo port install gnome-sharp2
// 省略
--->  Configuring gtk-doc
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk-doc/work/gtk-doc-1.11" && ./configure --prefix=/opt/local --with-xml-catalog=/opt/local/etc/xml/catalog " returned error 1
// 省略

ということなので、自分でconfigureしてみます。

nohiro-mac:monodevelop-2.0 inohiro$ cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gtk-doc/work/gtk-doc-1.11/
inohiro-mac:gtk-doc-1.11 inohiro$ sudo ./configure --prefix=/opt/local/ --with-xml-catalog=/opt/local/etc/xml/catalog 
// 省略
checking for DocBook XML DTD V4.3 in XML catalog... found
checking for DocBook XSL Stylesheets in XML catalog... not found
configure: error: could not find DocBook XSL Stylesheets in XML catalog

XML Catalog なるものが見つからないようです。./configure の時のオプションに「--with-xml-catalog=/opt/local/etc/xml/catalog」と書いているので、ここのパスをいじれば良いのでは。
勘違いしていた。XML Catalogなるものはあるんだ。見つからないのはXSLの方。

*1:MonoDevelop 2にMono 2.4が必要という訳ではなさそう...[要確認]