osgrid.org
https://forums.osgrid.org/

HOW TO: Compile Mono 3.2.3 from source code [Universal *nix]
https://forums.osgrid.org/viewtopic.php?f=14&t=4625
Page 1 of 1

Author:  Nebadon Izumi [ Mon Jan 14, 2013 4:02 pm ]
Post subject:  HOW TO: Compile Mono 3.2.3 from source code [Universal *nix]

{L_ATTACHMENT}:
mono-logo.jpg
mono-logo.jpg [ 35.35 KiB | Viewed 23246 times ]

Before starting you will probably need to install these packages on a fresh box:
(package naming scheme varies depending on your flavor of linux)

libtool
libpng3
libpng-devel
libjpeg
libjpeg-devel
libtiff
libtiff-devel
libexif
libexif-devel
giflib
giflib-devel
bison
automake
autoconf
make
gcc
gtk
xorg-x11-devel
freetype
fontconfig
fontconfig-devel
gettext
nant
git
mono-complete

start by dropping into super user:
{L_CODE}:
sudo su

pre-req package install for SuSE 11.x+
{L_CODE}:
zypper install libtool libpng3 libpng-devel libjpeg libjpeg-devel libtiff libtiff-devel libexif libexif-devel giflib giflib-devel bison automake autoconf make gcc gcc-c++ gtk xorg-x11-devel freetype fontconfig fontconfig-devel gettext glib2-devel git mono-complete

pre-req package install for LinuxMint 14
{L_CODE}:
apt-get install libpng3 libpng3-dev libtool libjpeg8 libjpeg8-dev libtiff5 libtiff5-dev libexif12 libexif-dev libgif4 libgif-dev libpango1.0-0 libpango1.0-dev libatk1.0-0 libatk1.0-dev libgtk-3-0 libgtk-3-dev gtk-sharp2 bison automake autoconf make gcc build-essential xorg-dev libfreetype6 libfontconfig libfontconfig-dev gettext libglib2.0-dev git mono-complete

pre-req package install for Fedora 18
{L_CODE}:
yum install libtool autoconf automake cloog-ppl cpp gcc glibc-devel glibc-headers kernel-headers mpfr ppl libatk libatk-devel gtk3 gtk3-devel libpng12 libpng12-devel libjpeg libjpeg-devel libtiff libtiff-devel libexif libexif-devel giflib giflib-devel bison gcc-c++ libX11-devel freetype fontconfig fontconfig-devel gettext  glib2-devel git mono-core mono-addins mono-addins-devel mono-tools mono-basic xsp gtk-sharp2 gtk-sharp2-devel

pre-req package install for Ubuntu 12.10
{L_CODE}:
apt-get install libpng3 libpng3-dev libtool libtiff4 libtiff4-dev libexif12 libexif-dev libgif4 libgif-dev libpango1.0-dev libatk1.0-dev libgtk-3-0 libgtk-3-dev bison automake autoconf make gcc gtk-sharp2 build-essential xorg-dev libfreetype6 libfontconfig libfontconfig-dev gettext libglib2.0-dev git mono-complete libjpeg-dev libjpeg8-dev libjpeg-turbo8-dev


then change directory to root home folder:
{L_CODE}:
cd /root


make an install directory:
{L_CODE}:
mkdir install


change to the install directory:
{L_CODE}:
cd install


make a mono-3.2.3 directory
{L_CODE}:
mkdir mono-3.2.3


change to the mono-3.2.3 directory:
{L_CODE}:
cd mono-3.2.3


libgdiplus:
{L_CODE}:
git clone https://github.com/mono/libgdiplus.git
cd libgdiplus
./autogen.sh --prefix=/opt/mono-3.2.3 --libdir=/opt/mono-3.2.3/lib
make
make install
cd ..


Mono 3.2.3:
{L_CODE}:
wget http://download.mono-project.com/sources/mono/mono-3.2.3.tar.bz2
tar xfv mono-3.2.3.tar.bz2
cd mono-3.2.3
./autogen.sh --prefix=/opt/mono-3.2.3 --libdir=/opt/mono-3.2.3/lib
make
make install
exit


Create symbolic link for userspace
*make sure you exit super user by typing exit
{L_CODE}:
cd ~
mkdir bin
cd bin
ln -s /opt/mono-3.2.3 mono


edit the .bashrc file in your /home/<user> and insert and adjust the <user> to your home folder for your server
{L_CODE}:
export PATH="/home/<user>/bin/mono/bin:$PATH"
export PKG_CONFIG_PATH="/home/<user>/bin/mono/lib/pkgconfig:$PKG_CONFIG_PATH"
export MANPATH="/home/<user>/bin/mono/share/man:$MANPATH"
export LD_LIBRARY_PATH="/home/<user>/bin/mono/lib:$LD_LIBRARY_PATH"
export MONO_THREADS_PER_CPU=2048
export MONO_GC_PARAMS=nursery-size=64m


you now have mono 3.2.3 compiled and installed be sure to launch OpenSimulator with mono ie:
{L_CODE}:
mono --server --debug OpenSim.exe


if you have trouble compiling check the responses below for some fixes and if you need to make comments or get help please post here in this forum : viewtopic.php?f=14&t=4631 this topic is now LOCKED!

Neb :ugeek:

Author:  Roken Price [ Mon Jan 14, 2013 6:23 pm ]
Post subject:  Re: HOW TO: Compile Mono 3.0.3 from source code [Universal *nix]

Does opensim work OK with it? The last time I built mono later than 2.10 opensim choked on it.

Author:  Nebadon Izumi [ Mon Jan 14, 2013 7:15 pm ]
Post subject:  Re: HOW TO: Compile Mono 3.0.3 from source code [Universal *nix]

yes mono 3.0.3 works fine with OpenSimulator

Author:  Roken Price [ Tue Jan 15, 2013 5:58 pm ]
Post subject:  Re: HOW TO: Compile Mono 3.0.3 from source code [Universal *nix]

As it happens, on Arch Linux, mono 3.0.4 is available (git release) and seems to be working OK, too.

Author:  Nebadon Izumi [ Tue Jan 15, 2013 11:49 pm ]
Post subject:  Re: HOW TO: Compile Mono 3.0.3 from source code [Universal *nix]

Instructions are now updated for Fedora 18 as well, if you have tested these instructions on other platforms please make a note here of any package discrepancies or problems you ran into and how you resolved them, thanks everyone!

Author:  Allen Firethorn [ Wed Jan 16, 2013 5:36 am ]
Post subject:  Re: HOW TO: Compile Mono 3.0.3 from source code [Universal *nix]

Doing a test build on Ubuntu 12.10 now....

And the results:

Minor change in dependant packages due to libjpeg62 being depreciated in Quetzal
{L_CODE}:
apt-get install libpng3 libpng3-dev libtool libtiff4 libtiff4-dev libexif12 libexif-dev libgif4 libgif-dev bison automake autoconf make gcc build-essential xorg-dev libfreetype6 libfontconfig libfontconfig-dev gettext libglib2.0-dev git mono-complete libjpeg-dev libjpeg8-dev libjpeg-turbo8-dev


if you like to do tests in containers like I do, you will also need wget and nano to be able to complete all the steps

{L_CODE}:
apt-get install wget nano


The actual build completed without a hitch though I didn't do the monodevelop part.

Author:  Nebadon Izumi [ Wed Jan 16, 2013 10:02 am ]
Post subject:  Re: HOW TO: Compile Mono 3.0.3 from source code [Universal *nix]

thanks Allen, i updated the instructions above for Ubuntu 12 I spent some grueling hours trying to make all of this work on CentOS 6.3 and failed miserably, so for now I am leaving CentOS 6.3 off the list because I am completely frustrated with it, I think its a poor choice for running OpenSimulator.

Author:  Nebadon Izumi [ Wed Jan 16, 2013 11:34 am ]
Post subject:  Re: HOW TO: Compile Mono 3.0.3 from source code [Universal *nix]

I am locking this topic and moving all comments to this new posting http://forums.osgrid.org/viewtopic.php?f=14&t=4631
please post all future comments here, thank you!

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/