如何在Solaris下面build Mono(How to build Mono on Solaris)

转载 2007年10月12日 12:01:00

前几天看到一片好的文章,拿来分享一下 

  How to build Mono on Solaris

From Genunix

1 What is Mono? 
 
Mono provides the necessary software to develop and run .NET client and server applications on Linux, Solaris, Mac OS X, Windows, and Unix. Sponsored by Novell, the Mono open source project has an active and enthusiastic contributing community . Its homepage is http://www.mono-project.com/Main_Page. 
 
2 Components for Mono 
 
mono: C# compiler, runtime environment etc. 
libgdiplus: GDI+ drawing api implementation for Mono 's System.Drawing. 
xsp: Standalone web server written in C# that can be used to run your ASP.NET applications. 
mod_mono: An Apache 1.3/2.0/2.2 module that provides ASP.NET support for Apache. 
gtk-sharp-1.0.10: GTK1 c# binds. 
gtk-sharp-2.4.2: GTK2(2.4) c# binds. 
gtk-sharp-2.8.2: GTK2(2.8) c# binds. 
There are other components, such as development tools. For more information please refer to its homepage. 
 
3 Where to download 
 
You can download Mono and component packages from page http://www.mono-project.com/Downloads. 
 
4 Tools to build Mono 
 
GNU tar to unpack the sources, as Solaris tar has problems unpacking Mono. 
GNU build tools, such as gcc, gld, gas etc. 
Notes: 
GCC installed in the /usr/sfw/ works fine. although gld, gas etc are not included, it seems it 's ok. 
Because make included in CBE is GNU make, so it should be ok. 
5 Build instructions 
 
libgdiplus(1.1.13.6) 
 
libgdiplus is optional, but if you need GDI+ drawing api support for Mono, you should build it. 
 
On Sparc, 
 
   configure, gmake, gmake check, gmake install
is ok. 
 
On x86, you need to change the source code according to http://mail-index.netbsd.org/pkgsrc-bugs/2005/10/18/0013.html, because there are some problem when building included cairo
 
Mono(1.1.13.8) 
 
If you set your build environment properly, the build process of Mono is straight forward. 
 
On Sparc, just 
 
   configure, gmake, gmake check, gmake install
is ok. And when you do "gmake check", all check should passed(My test result:193 test(s) passed. 0 test(s) did not pass.), but the check process would fail after the test if you are not using gas. 
 
On x86, you need add "--with-tls=pthread" when you do configure to avoid error 
 
   In file included from /usr/include/link.h:35,
                    from dyn_load.c:71:
   /usr/include/libelf.h:45:2: #error "large files are not supported by libelf"
   *** Error code 1
   make: Fatal error: Command failed for target `dyn_load.lo '. 
and 
 
   Undefined                       first referenced
    symbol                             in file
   GC_local_malloc                     ./.libs/libmonoruntime.a(reflection.o)
   GC_local_malloc_atomic              ./.libs/libmonoruntime.a(object.o)
   GC_local_gcj_fast_malloc            ./.libs/libmonoruntime.a(object.o)
   GC_local_gcj_malloc                 ./.libs/libmonoruntime.a(object.o)
   ld: fatal: Symbol referencing errors. No output written to pedump
you also need to make some modification of the source code. Here is the patch for mono 
 
When you do "gmake check", it always fails at: 
 
   Test run: image=[path_to_mono_source]/mono/mini/exceptions.exe, opts=
I just ignored it. 
 
After you have installed mono, remember to add [dist_dir]/lib/pkgconfig to your $PKG_CONFIG_PATH to make sure all the packages depend on Mono can find it. 
 
6 Applications 
7 Problem need to be noticed when build mono with SUN Studio 
8 Usefull resources

Mono 跨平台编程应该注意的事项

1)文件系统   在不同的平台上文件系统是不同的。包括性能等等,最简单的例子就是 Java 除开 IO 包之外还添加 NIO 包。因为在 Unix   系统上使用 块方式(NIO) 读写比 用流(IO...
  • zhangjianying
  • zhangjianying
  • 2006-09-28 15:59:00
  • 4332

如何在Solaris下面build Mono(How to build Mono on Solaris)

前几天看到一片好的文章,拿来分享一下   How to build Mono on Solaris From Genunix 1 What is Mono?  Mono provides the ne...
  • solaris1
  • solaris1
  • 2007-10-12 12:01:00
  • 2990

Solaris 10 x86 上折腾Mono

这是一个异常折腾的过程,写下来记录下。 从http://www.mono-project.com/的Download里下载了Solaris 10的gz压缩的pkg包。 为了安装pkg包,一开始不知...
  • cyq1162
  • cyq1162
  • 2016-11-23 12:04:20
  • 132

Solaris10 sparc架构下安装gdb和简单调试

最近tomcat一直无缘无故崩溃,但是tomcat的日志又没有显示什么异常,估计是因为tomcat还没有来得及写日志就直接崩溃了。而且tomcat的bin也没有crash日志,也就是默认名字格式如:h...
  • achilles12345
  • achilles12345
  • 2016-03-04 10:31:32
  • 1164

unity mono 库编译笔记

编译环境 ubuntu 64 1.环境变量,可以不用配置, external/buildscripts/build_runtime_android.sh中会自动下载对应的版本,最好不要修改,版本库...
  • qinglongyanyuezhu
  • qinglongyanyuezhu
  • 2016-10-12 11:01:34
  • 614

solaris 白皮书下载

Solaris X64解决方案:http://sunevent.bizcom.com.cn/events/cn/s10webminar/images/S10X64_Solution.pdf>  Sol...
  • solaris1
  • solaris1
  • 2007-04-16 11:43:00
  • 2426

Mono 开发 (使用.NET技术的你,绝对不能忽略Mono)

当微软把.NET提交到ECMA/ISO成为公开的标准时,就表示.NET已经走向开放,不再只是微软专属的技术。当Mono 1.0正式发布时,也就等于是宣布开放成真了,.NET程序不用被局限在Win...
  • shanyou
  • shanyou
  • 2006-03-10 22:58:00
  • 685

Unity3d开发(九) 动画模型资源导入预处理

在Unity导入资源后,我们通常需要做许多设置,这些操作通常很繁琐,并且容易出错,最好的办法是使用自动的pipline处理,因为不是项目中的每一个人都十分清楚资源的结构设计。这篇文章主要探讨如何通过自...
  • fansongy
  • fansongy
  • 2016-03-14 21:37:35
  • 4279

solaris 修改文件所属组 chgrp。

chgrp newgroup files/directorys 如: # ls -lh a.c -rw-r--r--   1 liaohb   root         146  8月 28日 ...
  • xiaotuni
  • xiaotuni
  • 2010-08-28 17:55:00
  • 1281

Mono-跨平台的.net framework实现

原文地址:http://zh.wikipedia.org/wiki/Mono 维基百科,自由的百科全书 Mono 开发者 ...
  • yazhouren
  • yazhouren
  • 2013-01-17 10:24:15
  • 658
收藏助手
不良信息举报
您举报文章:如何在Solaris下面build Mono(How to build Mono on Solaris)
举报原因:
原因补充:

(最多只允许输入30个字)