手机版
你好,游客 登录 注册
背景:
阅读新闻

在 Linux 操作系统中运行 ASP.NET 4

[日期:2011-03-14] 来源:Linux社区  作者:skyivben [字体:大 中 小]

现在让我们来看看 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
linux
本文评论   查看全部评论 (1)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款
第 1 楼
* LIN粉 发表于 2012/5/12 1:25:17
Linux服务器运行ASP.NET,最完美的方案是用Jexus!