Difference between revisions of "Mono"
From TCAdmin 2.0 Documentation
(→64 bit) |
|||
Line 2: | Line 2: | ||
=== CentOS 5/6 / Fedora 15 / Redhat 5 === | === CentOS 5/6 / Fedora 15 / Redhat 5 === | ||
==== 32 bit ==== | ==== 32 bit ==== | ||
− | <source lang="bash">wget http://www.tcadmin.com/installer/mono-2.10. | + | <source lang="bash">wget http://www.tcadmin.com/installer/mono-2.10.8-bi.i386.rpm |
− | yum install mono-2.10. | + | yum install mono-2.10.8-bi.i386.rpm --nogpgcheck</source> |
==== 64 bit ==== | ==== 64 bit ==== | ||
'''NOTE: CentOS 6 64bit needs to be configured with Mono 32bit. Use the commands above.''' | '''NOTE: CentOS 6 64bit needs to be configured with Mono 32bit. Use the commands above.''' | ||
− | <source lang="bash">wget http://www.tcadmin.com/installer/mono-2.10. | + | <source lang="bash">wget http://www.tcadmin.com/installer/mono-2.10.8-bi.x86_64.rpm |
− | yum install mono-2.10. | + | yum install mono-2.10.8-bi.x86_64.rpm --nogpgcheck</source> |
=== Debian 6 === | === Debian 6 === | ||
==== 32 bit ==== | ==== 32 bit ==== | ||
− | <source lang="bash">wget http://www.tcadmin.com/installer/mono-2.10. | + | <source lang="bash">wget http://www.tcadmin.com/installer/mono-2.10.8-bi.i386.deb |
apt-get update | apt-get update | ||
− | dpkg -i mono-2.10. | + | dpkg -i mono-2.10.8-bi.i386.deb |
apt-get install -f</source> | apt-get install -f</source> | ||
==== 64 bit ==== | ==== 64 bit ==== | ||
− | <source lang="bash">wget http://www.tcadmin.com/installer/mono-2.10. | + | <source lang="bash">wget http://www.tcadmin.com/installer/mono-2.10.8-bi.x86_64.deb |
apt-get update | apt-get update | ||
− | dpkg -i mono-2.10. | + | dpkg -i mono-2.10.8-bi.x86_64.deb |
apt-get install -f</source> | apt-get install -f</source> | ||
=== Ubuntu 10/11=== | === Ubuntu 10/11=== | ||
==== 32 bit ==== | ==== 32 bit ==== | ||
− | <source lang="bash">wget http://www.tcadmin.com/installer/mono-2.10. | + | <source lang="bash">wget http://www.tcadmin.com/installer/mono-2.10.8-ubu.i386.deb |
apt-get update | apt-get update | ||
− | dpkg -i mono-2.10. | + | dpkg -i mono-2.10.8-ubu.i386.deb |
apt-get install -f</source> | apt-get install -f</source> | ||
==== 64 bit ==== | ==== 64 bit ==== | ||
− | <source lang="bash">wget http://www.tcadmin.com/installer/mono-2.10. | + | <source lang="bash">wget http://www.tcadmin.com/installer/mono-2.10.8-ubu.x86_64.deb |
apt-get update | apt-get update | ||
− | dpkg -i mono-2.10. | + | dpkg -i mono-2.10.8-ubu.x86_64.deb |
apt-get install -f</source> | apt-get install -f</source> | ||
Line 40: | Line 40: | ||
* xsp | * xsp | ||
− | When using the commands below replace 2.10. | + | When using the commands below replace 2.10.8 with the version you are building. |
Install any missing dependencies shown by the configure command before running make. | Install any missing dependencies shown by the configure command before running make. | ||
Line 59: | Line 59: | ||
tar xjvf libgdiplus-2.10.tar.bz2 > /dev/null | tar xjvf libgdiplus-2.10.tar.bz2 > /dev/null | ||
cd libgdiplus-2.10 | cd libgdiplus-2.10 | ||
− | ./configure --prefix=/opt/mono-2.10. | + | ./configure --prefix=/opt/mono-2.10.8 |
make > /dev/null | make > /dev/null | ||
make install > /dev/null</source> | make install > /dev/null</source> | ||
=== Build mono === | === Build mono === | ||
− | <source lang="bash">wget http://download.mono-project.com/sources/mono/mono-2.10. | + | <source lang="bash">wget http://download.mono-project.com/sources/mono/mono-2.10.8.tar.bz2 |
− | tar xjvf mono-2.10. | + | tar xjvf mono-2.10.8.tar.bz2 > /dev/null |
− | cd mono-2.10. | + | cd mono-2.10.8 |
− | ./configure --with-large-heap=yes --prefix=/opt/mono-2.10. | + | ./configure --with-large-heap=yes --prefix=/opt/mono-2.10.8 --with-libgdiplus=/opt/mono-2.10.8 --with-moonlight=no |
make > /dev/null | make > /dev/null | ||
make install > /dev/null</source> | make install > /dev/null</source> | ||
Line 75: | Line 75: | ||
tar xjvf mono-basic-2.10.tar.bz2 > /dev/null | tar xjvf mono-basic-2.10.tar.bz2 > /dev/null | ||
cd mono-basic-2.10 | cd mono-basic-2.10 | ||
− | PATH=$PATH:/opt/mono-2.10. | + | PATH=$PATH:/opt/mono-2.10.8/bin PKG_CONFIG_PATH=/opt/mono-2.10.8/lib/pkgconfig ./configure --prefix=/opt/mono-2.10.8 |
− | PATH=$PATH:/opt/mono-2.10. | + | PATH=$PATH:/opt/mono-2.10.8/bin PKG_CONFIG_PATH=/opt/mono-2.10.8/lib/pkgconfig make > /dev/null |
− | PATH=$PATH:/opt/mono-2.10. | + | PATH=$PATH:/opt/mono-2.10.8/bin PKG_CONFIG_PATH=/opt/mono-2.10.8/lib/pkgconfig make install > /dev/null</source> |
=== Build xsp === | === Build xsp === | ||
Line 83: | Line 83: | ||
tar xjvf xsp-2.10.2.tar.bz2 > /dev/null | tar xjvf xsp-2.10.2.tar.bz2 > /dev/null | ||
cd xsp-2.10.2 | cd xsp-2.10.2 | ||
− | PATH=$PATH:/opt/mono-2.10. | + | PATH=$PATH:/opt/mono-2.10.8/bin PKG_CONFIG_PATH=/opt/mono-2.10.8/lib/pkgconfig ./configure --prefix=/opt/mono-2.10.8 |
− | PATH=$PATH:/opt/mono-2.10. | + | PATH=$PATH:/opt/mono-2.10.8/bin PKG_CONFIG_PATH=/opt/mono-2.10.8/lib/pkgconfig make > /dev/null |
− | PATH=$PATH:/opt/mono-2.10. | + | PATH=$PATH:/opt/mono-2.10.8/bin PKG_CONFIG_PATH=/opt/mono-2.10.8/lib/pkgconfig make install > /dev/null</source> |
=== Post Build Steps === | === Post Build Steps === | ||
− | # Download an updated browsercap.ini for improved browser recognition. Replace the existing file in /opt/mono-2.10. | + | # Download an updated browsercap.ini for improved browser recognition. Replace the existing file in /opt/mono-2.10.8/etc/mono [http://browsers.garykeith.com/downloads.asp browsers.garykeith.com] Make sure you rename the file to browsercap.ini after downloading. |
# Update the file /home/tcadmin/Monitor/mono-config with the path to your mono build. | # Update the file /home/tcadmin/Monitor/mono-config with the path to your mono build. | ||
# Restart the monitor and serviceman services: | # Restart the monitor and serviceman services: |
Revision as of 01:36, 2 February 2012
Pre-compiled Packages
CentOS 5/6 / Fedora 15 / Redhat 5
32 bit
wget http://www.tcadmin.com/installer/mono-2.10.8-bi.i386.rpm yum install mono-2.10.8-bi.i386.rpm --nogpgcheck
64 bit
NOTE: CentOS 6 64bit needs to be configured with Mono 32bit. Use the commands above.
wget http://www.tcadmin.com/installer/mono-2.10.8-bi.x86_64.rpm yum install mono-2.10.8-bi.x86_64.rpm --nogpgcheck
Debian 6
32 bit
wget http://www.tcadmin.com/installer/mono-2.10.8-bi.i386.deb apt-get update dpkg -i mono-2.10.8-bi.i386.deb apt-get install -f
64 bit
wget http://www.tcadmin.com/installer/mono-2.10.8-bi.x86_64.deb apt-get update dpkg -i mono-2.10.8-bi.x86_64.deb apt-get install -f
Ubuntu 10/11
32 bit
wget http://www.tcadmin.com/installer/mono-2.10.8-ubu.i386.deb apt-get update dpkg -i mono-2.10.8-ubu.i386.deb apt-get install -f
64 bit
wget http://www.tcadmin.com/installer/mono-2.10.8-ubu.x86_64.deb apt-get update dpkg -i mono-2.10.8-ubu.x86_64.deb apt-get install -f
Build from Source
The following Mono components are required by TCAdmin.
- libgdiplus
- mono
- mono-basic
- xsp
When using the commands below replace 2.10.8 with the version you are building.
Install any missing dependencies shown by the configure command before running make.
Install Requirements
CentOS
yum install make glib2-devel libpng-devel libjpeg-devel giflib-devel libtiff-devel libX11-devel gcc-c++ fontconfig-devel bison gettext bzip2 libtool automake autoconf wget
Debian
apt-get install make pkg-config libglib2.0-dev libglib2.0-dev libpng12-dev libjpeg62-dev libgif-dev libX11-dev libfontconfig1-dev libfreetype6-dev bison g++ gettext libtool
Ubuntu
apt-get install gcc build-essential pkg-config libglib2.0-dev libpng12-dev libjpeg62-dev libgif-dev libX11-dev libfontconfig1-dev libfreetype6-dev bison gettext libtool
Build libgdiplus
Libgdiplus must be installed with support for png, jpg and gif. This is required by the default and custom themes. The commands above should install these libraries.
wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2 tar xjvf libgdiplus-2.10.tar.bz2 > /dev/null cd libgdiplus-2.10 ./configure --prefix=/opt/mono-2.10.8 make > /dev/null make install > /dev/null
Build mono
wget http://download.mono-project.com/sources/mono/mono-2.10.8.tar.bz2 tar xjvf mono-2.10.8.tar.bz2 > /dev/null cd mono-2.10.8 ./configure --with-large-heap=yes --prefix=/opt/mono-2.10.8 --with-libgdiplus=/opt/mono-2.10.8 --with-moonlight=no make > /dev/null make install > /dev/null
Build mono-basic
wget http://download.mono-project.com/sources/mono-basic/mono-basic-2.10.tar.bz2 tar xjvf mono-basic-2.10.tar.bz2 > /dev/null cd mono-basic-2.10 PATH=$PATH:/opt/mono-2.10.8/bin PKG_CONFIG_PATH=/opt/mono-2.10.8/lib/pkgconfig ./configure --prefix=/opt/mono-2.10.8 PATH=$PATH:/opt/mono-2.10.8/bin PKG_CONFIG_PATH=/opt/mono-2.10.8/lib/pkgconfig make > /dev/null PATH=$PATH:/opt/mono-2.10.8/bin PKG_CONFIG_PATH=/opt/mono-2.10.8/lib/pkgconfig make install > /dev/null
Build xsp
wget http://download.mono-project.com/sources/xsp/xsp-2.10.2.tar.bz2 tar xjvf xsp-2.10.2.tar.bz2 > /dev/null cd xsp-2.10.2 PATH=$PATH:/opt/mono-2.10.8/bin PKG_CONFIG_PATH=/opt/mono-2.10.8/lib/pkgconfig ./configure --prefix=/opt/mono-2.10.8 PATH=$PATH:/opt/mono-2.10.8/bin PKG_CONFIG_PATH=/opt/mono-2.10.8/lib/pkgconfig make > /dev/null PATH=$PATH:/opt/mono-2.10.8/bin PKG_CONFIG_PATH=/opt/mono-2.10.8/lib/pkgconfig make install > /dev/null
Post Build Steps
- Download an updated browsercap.ini for improved browser recognition. Replace the existing file in /opt/mono-2.10.8/etc/mono browsers.garykeith.com Make sure you rename the file to browsercap.ini after downloading.
- Update the file /home/tcadmin/Monitor/mono-config with the path to your mono build.
- Restart the monitor and serviceman services:
cd /home/tcadmin/Monitor ./monitor-service restart ./serviceman-service restart