Difference between revisions of "Mono"

 
(53 intermediate revisions by the same user not shown)
Line 1: Line 1:
== CentOS 5 / Fedora 15 / Redhat 5 ==
+
<!--
; 32 bit
+
'''<span style="color:red">These packages are not compatible with TCAdmin version 2.0.120 and greater. These packages are only recommended for older Linux installations. For the latest Linux versions it is recommended that you install Mono from the Xamarin repositories. [[System_Requirements#Linux]]</span>'''
: [http://www.tcadmin.com/installer/mono-2.10.2-bi.i386.rpm mono-2.10.2-bi.i386.rpm]
 
; 64 bit
 
: [http://www.tcadmin.com/installer/mono-2.10.2-bi.x86_64.rpm mono-2.10.2-bi.x86_64.rpm]
 
;Installation
 
yum install mono-2.10.2-bi.xxxxx.rpm --nogpgcheck
 
  
== Debian 6 / Ubuntu 10 ==
+
== Pre-compiled Packages ==
; 32 bit
+
=== CentOS 5/6 / Fedora 15 / Redhat 5 32bit ===
: [http://www.tcadmin.com/installer/mono-2.10.2-bi.i386.deb mono-2.10.2-bi.i386.deb]
+
<source lang="bash">wget http://www.tcadmin.com/installer/mono-2.11.4-i386.rpm
; 64 bit
+
yum -y install mono-2.11.4-i386.rpm --nogpgcheck
: [http://www.tcadmin.com/installer/mono-2.10.2-bi.x86_64.deb mono-2.10.2-bi.x86_64.deb]
+
/opt/mono-2.11.4/bin/mozroots --import --sync --quiet
;Installation
+
/opt/mono-2.11.4/bin/mono --aot -O=all /opt/mono-2.11.4/lib/mono/2.0/mscorlib.dll
: The second line might show errors if the dependencies are not installed. The third line will install the missing dependencies.
+
for i in /opt/mono-2.11.4/lib/mono/gac/*/*/*.dll; do /opt/mono-2.11.4/bin/mono --aot -O=all $i; done</source>
apt-get update
+
=== CentOS 5/6 / Fedora 15 / Redhat 5 64bit ===
dpkg -i mono-2.10.2-bi.xxxxx.deb
+
<source lang="bash">wget http://www.tcadmin.com/installer/mono-2.11.4-x86_64.rpm
apt-get install -f
+
yum -y install mono-2.11.4-x86_64.rpm --nogpgcheck
 +
/opt/mono-2.11.4/bin/mozroots --import --sync --quiet
 +
/opt/mono-2.11.4/bin/mono --aot -O=all /opt/mono-2.11.4/lib/mono/2.0/mscorlib.dll
 +
for i in /opt/mono-2.11.4/lib/mono/gac/*/*/*.dll; do /opt/mono-2.11.4/bin/mono --aot -O=all $i; done</source>
  
== Other / Manual Installation ==
+
=== Debian 6 32bit ===
; 32 bit
+
<source lang="bash">wget http://www.tcadmin.com/installer/mono-2.11.4-i386.deb
: [http://www.tcadmin.com/installer/mono-2.10.2-i386.tar.gz mono-2.10.2-i386.tar.gz]
+
apt-get update
: [http://www.tcadmin.com/installer/mono-deb-2.10.2-i386.tar.gz mono-deb-2.10.2-i386.tar.gz]
+
dpkg -i mono-2.11.4-i386.deb
; 64 bit
+
apt-get install -f
: [http://www.tcadmin.com/installer/mono-2.10.2-x86_64.tar.gz mono-2.10.2-x86_64.tar.gz]
+
/opt/mono-2.11.4/bin/mozroots --import --sync --quiet
: [http://www.tcadmin.com/installer/mono-deb-2.10.2-x86_64.tar.gz mono-deb-2.10.2-x86_64.tar.gz]
+
/opt/mono-2.11.4/bin/mono --aot -O=all /opt/mono-2.11.4/lib/mono/2.0/mscorlib.dll
;Installation
+
for i in /opt/mono-2.11.4/lib/mono/gac/*/*/*.dll; do /opt/mono-2.11.4/bin/mono --aot -O=all $i; done</source>
: Must be extracted to /opt. Extracting to other directories will not work.
 
mkdir /opt
 
cd /opt
 
wget <nowiki>http://www.tcadmin.com/installer/mono-2.10.2-xxxxx.tar.gz</nowiki>
 
tar xzvf mono-2.10.2-xxxxx.tar.gz
 
  
; Check for missing dependencies and install them:
+
=== Debian 6 64bit ===
ldd /opt/mono-2.10.2/bin/mono|grep "not found"
+
<source lang="bash">wget http://www.tcadmin.com/installer/mono-2.11.4-x86_64.deb
ldd /opt/mono-2.10.2/lib/libgdiplus.so|grep "not found"
+
apt-get update
 +
dpkg -i mono-2.11.4-x86_64.deb
 +
apt-get install -f
 +
/opt/mono-2.11.4/bin/mozroots --import --sync --quiet
 +
/opt/mono-2.11.4/bin/mono --aot -O=all /opt/mono-2.11.4/lib/mono/2.0/mscorlib.dll
 +
for i in /opt/mono-2.11.4/lib/mono/gac/*/*/*.dll; do /opt/mono-2.11.4/bin/mono --aot -O=all $i; done</source>
  
== Build from Source ==
+
=== Debian 8 64bit ===
Download the following packages from [http://download.mono-project.com/sources/ mono-project.com]:
+
<source lang="bash">wget http://www.tcadmin.com/installer/mono-2.11.4-x86_64_deb8.deb
 +
apt-get update
 +
dpkg -i mono-2.11.4-x86_64_deb8.deb
 +
apt-get install -f
 +
/opt/mono-2.11.4/bin/mozroots --import --sync --quiet
 +
/opt/mono-2.11.4/bin/mono --aot -O=all /opt/mono-2.11.4/lib/mono/2.0/mscorlib.dll
 +
for i in /opt/mono-2.11.4/lib/mono/gac/*/*/*.dll; do /opt/mono-2.11.4/bin/mono --aot -O=all $i; done</source>
 +
 
 +
=== Ubuntu 10/11/12 32bit ===
 +
<source lang="bash">wget http://www.tcadmin.com/installer/mono-2.11.4-i386.ubu.deb
 +
apt-get update
 +
dpkg -i mono-2.11.4-i386.ubu.deb
 +
apt-get install -f
 +
/opt/mono-2.11.4/bin/mozroots --import --sync --quiet
 +
/opt/mono-2.11.4/bin/mono --aot -O=all /opt/mono-2.11.4/lib/mono/2.0/mscorlib.dll
 +
for i in /opt/mono-2.11.4/lib/mono/gac/*/*/*.dll; do /opt/mono-2.11.4/bin/mono --aot -O=all $i; done</source>
 +
 
 +
=== Ubuntu 10/11/12 64bit ===
 +
<source lang="bash">wget http://www.tcadmin.com/installer/mono-2.11.4-x86_64.ubu.deb
 +
apt-get update
 +
dpkg -i mono-2.11.4-x86_64.ubu.deb
 +
apt-get install -f
 +
/opt/mono-2.11.4/bin/mozroots --import --sync --quiet
 +
/opt/mono-2.11.4/bin/mono --aot -O=all /opt/mono-2.11.4/lib/mono/2.0/mscorlib.dll
 +
for i in /opt/mono-2.11.4/lib/mono/gac/*/*/*.dll; do /opt/mono-2.11.4/bin/mono --aot -O=all $i; done</source>
 +
 
 +
== Build from Source (Optional) ==
 +
'''<span style="color:red">NOTE: Building from source is optional and only recommended if you want to compile a different version of Mono.</span>'''
 +
 
 +
The following Mono components are required by TCAdmin.
 
* libgdiplus
 
* libgdiplus
 
* mono
 
* mono
Line 43: Line 70:
 
* xsp
 
* xsp
  
When using the commands below replace 2.10.3 with the version you are building.
+
'''When using the commands below replace 2.11.4 with the version you are building. You can get the latest sources from http://download.mono-project.com/sources/'''
  
 
Install any missing dependencies shown by the configure command before running make.
 
Install any missing dependencies shown by the configure command before running make.
 +
 +
=== Install Requirements ===
 +
==== CentOS ====
 +
<source lang="bash">yum -y 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</source>
 +
 +
==== Debian ====
 +
<source lang="bash">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</source>
 +
 +
==== Ubuntu ====
 +
<source lang="bash">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</source>
  
 
=== Build libgdiplus ===
 
=== Build libgdiplus ===
Libgdiplus must be installed with support for '''png, jpg and gif'''. This is required by the default and custom themes.
+
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.
 
<source lang="bash">wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2
 
<source lang="bash">wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2
tar xjvf libgdiplus-2.10.tar.bz2
+
tar xjvf libgdiplus-2.10.tar.bz2 > /dev/null
 
cd libgdiplus-2.10
 
cd libgdiplus-2.10
./configure --prefix=/opt/mono-2.10.4
+
export echo=echo
make
+
./configure --prefix=/opt/mono-2.11.4
make install</source>
+
make > /dev/null
 +
make install > /dev/null</source>
  
 
=== Build mono ===
 
=== Build mono ===
<source lang="bash">wget http://download.mono-project.com/sources/mono/mono-2.10.4.tar.bz2
+
<source lang="bash">wget http://download.mono-project.com/sources/mono/mono-2.11.4.tar.bz2
tar xjvf mono-2.10.4.tar.bz2
+
tar xjvf mono-2.11.4.tar.bz2 > /dev/null
cd mono-2.10.4
+
cd mono-2.11.4
./configure --prefix=/opt/mono-2.10.4 --with-libgdiplus=/opt/mono-2.10.4
+
export echo=echo
make
+
./configure --with-large-heap=yes --prefix=/opt/mono-2.11.4 --with-libgdiplus=/opt/mono-2.11.4 --with-moonlight=no
make install</source>
+
make > /dev/null
 +
make install > /dev/null</source>
  
 
=== Build mono-basic ===
 
=== Build mono-basic ===
 
<source lang="bash">wget http://download.mono-project.com/sources/mono-basic/mono-basic-2.10.tar.bz2
 
<source lang="bash">wget http://download.mono-project.com/sources/mono-basic/mono-basic-2.10.tar.bz2
tar xjvf mono-basic-2.10.tar.bz2
+
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.4/bin PKG_CONFIG_PATH=/opt/mono-2.10.4/lib/pkgconfig ./configure --prefix=/opt/mono-2.10.4
+
export echo=echo
PATH=$PATH:/opt/mono-2.10.4/bin PKG_CONFIG_PATH=/opt/mono-2.10.4/lib/pkgconfig make
+
PATH=$PATH:/opt/mono-2.11.4/bin PKG_CONFIG_PATH=/opt/mono-2.11.4/lib/pkgconfig ./configure --prefix=/opt/mono-2.11.4
PATH=$PATH:/opt/mono-2.10.4/bin PKG_CONFIG_PATH=/opt/mono-2.10.4/lib/pkgconfig make install</source>
+
PATH=$PATH:/opt/mono-2.11.4/bin PKG_CONFIG_PATH=/opt/mono-2.11.4/lib/pkgconfig make > /dev/null
 +
PATH=$PATH:/opt/mono-2.11.4/bin PKG_CONFIG_PATH=/opt/mono-2.11.4/lib/pkgconfig make install > /dev/null</source>
  
 
=== Build xsp ===
 
=== Build xsp ===
 
<source lang="bash">wget http://download.mono-project.com/sources/xsp/xsp-2.10.2.tar.bz2
 
<source lang="bash">wget http://download.mono-project.com/sources/xsp/xsp-2.10.2.tar.bz2
tar xsp-2.10.2.tar.bz2
+
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.4/bin PKG_CONFIG_PATH=/opt/mono-2.10.4/lib/pkgconfig ./configure --prefix=/opt/mono-2.10.4
+
export echo=echo
PATH=$PATH:/opt/mono-2.10.4/bin PKG_CONFIG_PATH=/opt/mono-2.10.4/lib/pkgconfig make
+
PATH=$PATH:/opt/mono-2.11.4/bin PKG_CONFIG_PATH=/opt/mono-2.11.4/lib/pkgconfig ./configure --prefix=/opt/mono-2.11.4
PATH=$PATH:/opt/mono-2.10.4/bin PKG_CONFIG_PATH=/opt/mono-2.10.4/lib/pkgconfig make install</source>
+
PATH=$PATH:/opt/mono-2.11.4/bin PKG_CONFIG_PATH=/opt/mono-2.11.4/lib/pkgconfig make > /dev/null
 +
PATH=$PATH:/opt/mono-2.11.4/bin PKG_CONFIG_PATH=/opt/mono-2.11.4/lib/pkgconfig make install > /dev/null</source>
  
 
=== Post Build Steps ===
 
=== Post Build Steps ===
# Download an updated browsercaps.ini for improved browser recognition. Replace the existing file in /opt/mono-2.10.3/etc/mono [http://browsers.garykeith.com/downloads.asp browsers.garykeith.com]
 
 
# 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:
Line 87: Line 127:
 
./monitor-service restart
 
./monitor-service restart
 
./serviceman-service restart</source>
 
./serviceman-service restart</source>
 +
-->

Latest revision as of 00:02, 26 January 2020

Retrieved from "https://help.tcadmin.com/index.php?title=Mono&oldid=1941"