Change font size
It is currently Thu Mar 23, 2017 3:10 pm

Forum rules


Image
. please keep questions related to an OpenSimulator and OSgrid nature.



Forum lockedPost a reply Page 1 of 1   [ 8 posts ]
Author Message
 Post subject: HOW TO: Compile Mono 3.2.3 from source code [Universal *nix]
PostPosted: Mon Jan 14, 2013 4:02 pm 
Site Admin
User avatar

Joined: Sat Feb 02, 2008 5:27 pm
Posts: 843
Attachment:
mono-logo.jpg
mono-logo.jpg [ 35.35 KiB | Viewed 19802 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:
Code:
sudo su

pre-req package install for SuSE 11.x+
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
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
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
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:
Code:
cd /root


make an install directory:
Code:
mkdir install


change to the install directory:
Code:
cd install


make a mono-3.2.3 directory
Code:
mkdir mono-3.2.3


change to the mono-3.2.3 directory:
Code:
cd mono-3.2.3


libgdiplus:
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:
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
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
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:
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:


Top
 Profile  
 
 Post subject: Re: HOW TO: Compile Mono 3.0.3 from source code [Universal *nix]
PostPosted: Mon Jan 14, 2013 6:23 pm 
Furious Typer
User avatar

Joined: Fri Aug 19, 2011 7:10 pm
Posts: 209
Location: UK
Does opensim work OK with it? The last time I built mono later than 2.10 opensim choked on it.

_________________
50's sim based at Rumbled on OSGrid
happily running on Debian Linux on a VPS for 4 years +


Top
 Profile  
 
 Post subject: Re: HOW TO: Compile Mono 3.0.3 from source code [Universal *nix]
PostPosted: Mon Jan 14, 2013 7:15 pm 
Site Admin
User avatar

Joined: Sat Feb 02, 2008 5:27 pm
Posts: 843
yes mono 3.0.3 works fine with OpenSimulator


Top
 Profile  
 
 Post subject: Re: HOW TO: Compile Mono 3.0.3 from source code [Universal *nix]
PostPosted: Tue Jan 15, 2013 5:58 pm 
Furious Typer
User avatar

Joined: Fri Aug 19, 2011 7:10 pm
Posts: 209
Location: UK
As it happens, on Arch Linux, mono 3.0.4 is available (git release) and seems to be working OK, too.

_________________
50's sim based at Rumbled on OSGrid
happily running on Debian Linux on a VPS for 4 years +


Top
 Profile  
 
 Post subject: Re: HOW TO: Compile Mono 3.0.3 from source code [Universal *nix]
PostPosted: Tue Jan 15, 2013 11:49 pm 
Site Admin
User avatar

Joined: Sat Feb 02, 2008 5:27 pm
Posts: 843
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!


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

Joined: Wed Jan 16, 2013 5:36 am
Posts: 1
Doing a test build on Ubuntu 12.10 now....

And the results:

Minor change in dependant packages due to libjpeg62 being depreciated in Quetzal
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

Code:
apt-get install wget nano


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


Top
 Profile  
 
 Post subject: Re: HOW TO: Compile Mono 3.0.3 from source code [Universal *nix]
PostPosted: Wed Jan 16, 2013 10:02 am 
Site Admin
User avatar

Joined: Sat Feb 02, 2008 5:27 pm
Posts: 843
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.


Top
 Profile  
 
 Post subject: Re: HOW TO: Compile Mono 3.0.3 from source code [Universal *nix]
PostPosted: Wed Jan 16, 2013 11:34 am 
Site Admin
User avatar

Joined: Sat Feb 02, 2008 5:27 pm
Posts: 843
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!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum lockedPost a reply Page 1 of 1   [ 8 posts ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net