让Ubuntu 8.04也支持.net。
安装软件过程 lighttpd >mono>fastcgi-mono-server
安装前老规矩 sudo apt-get update下
1. lighttpd
linuxidc@ubuntu:~$ sudo apt-get install lighttpd
启用fastcgi
linuxidc@ubuntu:/etc/apt$ sudo lighty-enable-mod fastcgi
2.mono
由于8.04里没有mono的源,官方也没提供deb安装包只好手工编译安装咯。
先安装相关软件。
linuxidc@ubuntu:~$ sudo apt-get build-dep gcc
linuxidc@ubuntu:~$ sudo apt-get install automake autoconf libtool
linuxidc@ubuntu:~$ mkdir mono
linuxidc@ubuntu:~$ cd mono
linuxidc@ubuntu:~$ wget http://ftp.novell.com/pub/mono/sources/mono/mono-1.9.1.tar.bz2
linuxidc@ubuntu:~$ tar -jvxf mono-1.9.1.tar.bz2
linuxidc@ubuntu:~$ cd mono-1.9.1
linuxidc@ubuntu:~$ ./configure –prefix=/usr/local
linuxidc@ubuntu:~$ make
linuxidc@ubuntu:~$ make install
安装后,可以通过“mono -V”查看版本
linuxidc@ubuntu:~$ mono -V
Mono JIT compiler version 1.9.1 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC)
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
3.fastcgi-mono-server
安装 subversion
linuxidc@ubuntu:~$ sudo apt-get install subversion
linuxidc@ubuntu:~$ svn co http://mono-soc-2007.googlecode.com/svn/trunk/brian/FastCgi/ fastcgi-mono-server
linuxidc@ubuntu:~$ ./configure –prefix=/usr/local
linuxidc@ubuntu:~$ make
linuxidc@ubuntu:~$ sudo make install