现在让我们来看看 mono 的版本:
ben@linux-nyhn:~> mono --version Mono JIT compiler version 2.6.4 (tarball Mon Jul 5 13:53:45 UTC 2010) Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC: Included Boehm (with typed GC and Parallel Mark) SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none ben@linux-nyhn:~> ben@linux-nyhn:~> gmcs --version Mono C# compiler version 2.6.4.0
这个 mono 2.6.4 的版本太低了。根据 mono 官方下载页面的指示,按如下步骤进行升级:
ben@linux-nyhn:~> sudo zypper addrepo http://ftp.novell.com/pub/mono/download-stable/openSUSE_11.3 mono-stable 正在添加安装源 'mono-stable' [done] Repository 'mono-stable' successfully added Enabled: Yes Autorefresh: No URI: http://ftp.novell.com/pub/mono/download-stable/openSUSE_11.3 ben@linux-nyhn:~> sudo zypper refresh --repo mono-stable Retrieving repository 'mono-stable' metadata [done] 正在构建 'mono-stable' 安装源缓存 [done] Specified repositories have been refreshed. ben@linux-nyhn:~> zypper dist-upgrade --repo mono-stable =================> 在这里进行漫长的升级 <================= ben@linux-nyhn:~>
升级完成,再次查看 mono 的版本:
ben@linux-nyhn:~> mono --version Mono JIT compiler version 2.8.1 (tarball Fri Nov 12 14:37:21 UTC 2010) Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: debugger softdebug LLVM: yes(2.8svn-mono) GC: Included Boehm (with typed GC and Parallel Mark) ben@linux-nyhn:~> dmcs --version Mono C# compiler version 2.8.1.0