I have been compiling and installing the latest mono version 2.4.2.3 on FreeBSD for the past two days. However, I have tried many times and cannot compile it normally, so I have to give up temporarily. Then we will try to install it in the simplest way, ports.
To install the latest mono version, update ports with the following command:
Reference
Portsnap fetch Extract
Portsnap fetch update
It should be noted that portsnap fetch extract only needs to be run for the first time, and then only needs to run the following statements to update ports.
It takes a lot of time to update ports. Please wait. After the ports update is complete, we can install the latest version of mono. The latest version of Mono on ports is 2.4.2.3. Generally, make install clean is used directly, but I personally know that automatic download will be slow, so we can download it manually in windows.
No matter how you use it, download the corresponding mono version from the official mono website. Http://ftp.novell.com/pub/mono/sources-stable/
Reference
Mono-2.4.2.3.tar.bz2
Mono-basic-2.4.2.tar.bz2
Libgdiplus-2.4.2.tar.bz2
Gluezilla-2.4.2.tar.bz2
Xsp-2.4.2.tar.bz2
Copy these files to/usr/ports/distfiles /.
Reference
MV *. bz2/usr/ports/distfiles/
After copying, you can start the installation.
Reference
CD/usr/ports/lang/MONO/
Make install clean
The next step is a long wait ......
After the compilation and installation are complete, run the following command:
Reference
Rehash
Mono-V
If it is normal, the following information should be displayed:
Reference
Mono JIT compiler version 2.4.2.3 (tarball Fri Nov 13 12:29:24 CST 2009)
Copyright (c) 2002-2008 Novell, INC and contributors. www.mono-project.com
TLS: _ thread
GC: encoded ded Boehm (with typed GC)
SIGSEGV: normal
Notification: thread + polling
Architecture: amd64
Disabled: None
So far, even if the latest version of Mono is installed, the next step is to install nginx, MySQL, and so on, to build a web server that supports Asp.net. However, this part is the next one.ArticleSo I won't go into depth here.
The above is installed in FreeBSD 7.2 x64.