How-to: mod_mono

Do the following on CentOS/Fedora/RHEL before starting the installation:

Code:
yum -y install libungif-devel freetype-devel libtiff-devel libjpeg-devel xulrunner-devel

Installation:

Code:
cd /root
mkdir mono
cd mono
wget http://origin-download.mono-project.com/sources/mono-1.1.16/mono-2.11.1.tar.bz2
tar xjf mono-2.11.1.tar.bz2
wget http://origin-download.mono-project.com/sources/xsp/xsp-2.10.2.tar.bz2
tar xjf xsp-2.10.2.tar.bz2
wget http://origin-download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.9.tar.bz2
tar xjf libgdiplus-2.10.9.tar.bz2
wget http://origin-download.mono-project.com/sources/gluezilla/gluezilla-2.6.tar.bz2
tar xjf gluezilla-2.6.tar.bz2
wget http://origin-download.mono-project.com/sources/mod_mono/mod_mono-2.10.tar.bz2
tar xjf mod_mono-2.10.tar.bz2
cd mono-2.11.1
./configure --prefix=/usr
perl -pi -e 's/HAVE_LOCALCHARSET_H 1/HAVE_LOCALCHARSET_H 0/' eglib/config.h
make -j 8
make install
cd ../xsp-2.10.2
./configure --prefix=/usr
#skip the next line on FreeBSD
export PKG_CONFIG_PATH=`whereis pkgconfig | awk '{print $2}'`
#skip the next line on CentOS/Debian/Fedora/Ubuntu
setenv PKG_CONFIG_PATH `whereis pkgconfig | awk '{print $2}'`
make
make install
cd ../libgdiplus-2.10.9
./configure --prefix=/usr
make
make install
cd ../gluezilla-2.6
./configure --prefix=/usr
make
make install
cd ../mod_mono-2.10
./configure --prefix=/usr
make
make install
ldconfig
echo '#mod_mono' >> /etc/httpd/conf/extra/httpd-includes.conf
echo 'Include /etc/httpd/conf/mod_mono.conf' >> /etc/httpd/conf/extra/httpd-includes.conf
#skip the next line on FreeBSD
/etc/init.d/httpd restart
#skip the next line on CentOS/Debian/Fedora/Ubuntu
/usr/local/etc/rc.d/httpd restart
Advertisements

2 thoughts on “How-to: mod_mono

  1. Hi
    When tried to install mod_mono-2.10 after executing ./configure –prefic=/usr
    i get this configure error.

    configure: error: **** apxs was not found, DSO compilation will not be available.

    & when configuring xsp
    it asks to install “gmsc”

    could you please suggest me some solutions …

    1. Hello Bowya, try to Use the latest version of CentOS, Mono and mod_mono and follow the installation sequence. You can try installation by downloading the module and packages manually insted of repo.. I have not faced any problem during my last installation. If not solved the issue still plz ask the issue to the Mono Project team. if you have solved the issue the replay us your procedure. this will help others. Thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s