http://www.mono-project.com/Main_Page
http://mono-project.com/DistroPackages/Debian
http://www.builder.com.cn/2007/0710/417811.shtml
1,安装mono
/etc/apt/sources.list:
deb http://backports.debian.org/debian-backports main
aptitude update
aptitude -t lenny-backports install mono-complete
OR
当然也可以自己编译
http://www.cnblogs.com/skyivben/archive/2011/01/07/1929427.html
可惜官方的只有5.0,也可以到DEBIAN里下载
http://packages.debian.org/squeeze/mono-complete
我用最懒的方法,装的是mono 2.6.7-5
apt-get install mono-runtime
mono --version
成功
2安装mondevelop
官网上可以下载
OR
apt-get install monodevelop
apt-get install mono-utils
你也可以安装monodoc,虽然我没装上的
http://www.mono-project.com/Monodoc
安装svn
apt-get install monodevelop-versioncontrol
安装winform
http://www.mono-project.com/WinForms_Designer
svn co svn://anonsvn.mono-project.com/source/trunk/mwf-designer
make; make run
OR
cd build
mon mwf-designer.exr
添加winform模版
http://www.codeproject.com/Articles/120131/Monodevelop-Howto-add-a-WinForm-project-and-file-t
wget http://www.hjgode.de/wp/wp-content/plugins/download-monitor/download.php?id=127
cp build/Addins /usr/lib/monodevelop/Addins -R
------------------------------------------------------------------------------------------------
命令行编译器
------------------------------------------------------------------------------------------------
http://hi.baidu.com/kxw102/blog/item/1ed9e119154dd30c34fa410b.html
安装编译器
sudo apt-get install mono-gmcs
写代码
vim /~/a.cs
class X {
static void Main () {
System.Console.Write("hello world!\n");
}
}
编译
gmcs a.cs
运行
/a.exe
------------------------------------------------------------------------------------------------
在php中调用mono程序并返回结果
------------------------------------------------------------------------------------------------
<?php
passthru("./a.exe", $temp);
echo "$temp";
?>