Mono Install - SignatureBeef/Terraria-s-Dedicated-Server-Mod GitHub Wiki

Prerequisites

Please note, some of these packages may not be strictly required, but the lists should be sufficient. If there's anything missing, please let us know.

Debian / Ubuntu

sudo apt-get update sudo apt-get install gcc libtool bison pkg-config gettext make bzip2 g++ wget Fedora / CentOS / RedHat

yum update -y yum install -y make automake glibc-devel gcc-c++ gcc bison pkgconfig gettext-libs autoconf libtool wget

openSUSE

If somebody knows what are the packages required to build mono, please let us know.

Installation

Download the sources for the latest version of Mono

wget http://download.mono-project.com/sources/mono/mono-2.10.5.tar.bz2 Unpack the archive

tar xjf mono-2.10.5.tar.bz2 cd mono-2.10.5

Configure the build process

./configure --prefix=/opt/mymono --with-ikvm-native=no --with-profile4=yes --with-moonlight=no --without-x --disable-shared-memory

Build the sources

nice -n10 make

Install mono to target directory

sudo make install

Create a run script

In the directory where you intend to keep your TDSM data, open up your favorite text editor, for instance nano:

nano mymono Put this in and save (to save and exit in nano press ctrl-x):

#!/bin/sh

export PATH=/opt/mymono/bin:$PATH
export LD_LIBRARY_PATH=/opt/mymono/lib:$LD_LIBRARY_PATH

mono-sgen --debug -O=all,-gshared "$@"
`
### Give the script permission to execute:

chmod u+x mymono
To use the run script, run it followed by the .exe name:

./mymono tdsm.mono.exe