How to Install Mono 2.4.2.3 on CentOS 5
2011-05-13 11:30
633 查看
I am a .NET developer, but for the need of my job, I am also familiar with CentOS 5 and OpenVZ. I have installed Mono on my Windows XP environment before, and want to have a try Mono under CentOS 5.
This time I use a CentOS 5.2 VPS(a clean VPS I just created)to install the last version Mono(v2.4.2.3).
First of all, I tried the easiest way to install Mono,
But I noticed the version of Mono I installed is 1.2.4, seems that the lastversion of mono (2.4.2.3) is not in the CentOS package repositories.
Then I tried to find the last version distribution from Mono Home page and google, but no result, So I had to download the source code and compile it all by my self.
After some attempts, I got the following steps to compile and install the last version Mono on my CentOS 5.2 VPS host,
1.prepare the compile environment,
2.Go to this page and download the last version Mono(in my case, mono-2.4.2.3.tar.bz2),
This time I use a CentOS 5.2 VPS(a clean VPS I just created)to install the last version Mono(v2.4.2.3).
First of all, I tried the easiest way to install Mono,
#yum groupinstall Mono
But I noticed the version of Mono I installed is 1.2.4, seems that the lastversion of mono (2.4.2.3) is not in the CentOS package repositories.
Then I tried to find the last version distribution from Mono Home page and google, but no result, So I had to download the source code and compile it all by my self.
After some attempts, I got the following steps to compile and install the last version Mono on my CentOS 5.2 VPS host,
1.prepare the compile environment,
# yum install gcc bison pkgconfig glib2-devel gettext make
2.Go to this page and download the last version Mono(in my case, mono-2.4.2.3.tar.bz2),
#wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.4.2.3.tar.bz2[/code]
3.Extract the downloaded file,# tar jxvf mono-2.4.2.3.tar.bz2
4.Change to the newly created directory,# cd mono-2.4.2.3
5.I put my built packages in /opt so, run the following command to build mono,# ./configure –prefix=/opt/mono; make; make install
6.Update ~/.bash_profile,#echo export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig:$PKG_CONFIG_PATH>>~/.bash_profile #echo export PATH=/opt/mono/bin:$PATH>>~/.bash_profile #source ~/.bash_profile
7. Test it,#mono -V
and I got the output:Mono JIT compiler version 2.4.2.3 (tarball Thu Oct 22 06:42:24 MSD 2009) Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC: Included Boehm (with typed GC) SIGSEGV: altstack Notifications: epoll Architecture: x86 Disabled: none
Great, I got it.
I think I’d better put all script I used in one place,mkdir ~/software yum install gcc bison pkgconfig glib2-devel gettext make wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.4.2.3.tar.bz2 tar jxvf mono-2.4.2.3.tar.bz2 cd mono-2.4.2.3 ./configure –prefix=/opt/mono; make; make install echo export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig:$PKG_CONFIG_PATH>>~/.bash_profile echo export PATH=/opt/mono/bin:$PATH>>~/.bash_profile source ~/.bash_profile mono -V cd .. rm -rf mono-2.4.2.3
转自http://blog.rubypdf.com/2009/10/23/how-to-install-mono-2-4-2-3-on-centos-5/
相关文章推荐
- How to Install GUI (Gnome 3) Using CD/DVD on RHEL/CentOS 7
- How To Install Nginx on CentOS 7(转)
- How to install Apache, PHP 7.1 and MySQL on CentOS 7.3 (LAMP)
- How to install 64-bit Google Chrome 28+ on 64-bit RHEL/CentOS 6 or 7
- How to Install Tomcat 8.0.27 on CentOS/RHEL and Ubuntu【转】
- How to Install PHP 7 with Apache and MariaDB on CentOS 7/Debian 8
- How to install Hadoop 2.7.3 cluster on CentOS 7.3
- How to install Tomcat 8 on a CentOS 6 VPS
- How to install HipHop for PHP on CentOS 5.x
- How To Install nginx on CentOS 6 with yum
- How to Install and Run a node.js App on Centos 6.4 64bit
- How to install Firefox 17 on Linux Mint, Ubuntu, Debian, CentOS, Fedora ... or any other Linux dist
- How to install php memcached on CentOS 6.5
- How to install GIT on Linux (Ubuntu & CentOS)
- how-to-install-graphite-on-centos6.6-x86_64
- How To Install nginx on CentOS 6 with yum
- [转]How to install PHP 5.3 on CentOS
- How to install python, wxPython and ride on CENTOS
- How to Install Cerb Collaboration and Email Automation on CentOS 7
- How to Install Linux, Apache, MySQL, PHP (LAMP) stack on CentOS 6 【Reliable】