Change font size
It is currently Thu Sep 09, 2010 11:09 pm

Forum rules


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



Post a new topicPost a reply Page 1 of 1   [ 9 posts ]
Author Message
 Post subject: HOWTO: Build Mono with linear CIL on Linux
PostPosted: Tue Nov 18, 2008 10:01 am 
Site Admin
User avatar

Joined: Sun Feb 03, 2008 9:10 am
Posts: 40
Location: Suburbia Americana in the Houston Texas area
These instructions are for building mono with Linear CIL on Linux - they should be easily adapted to a windows installation.

To build mono with Linear CIL, large heaps, and pthreads, work through the following procedure:

1. As your opensim user, and typically in his/her home directory, create a working directory and gather the sources into it from the mono svn site (for reference purposes, the URL of that site is http://mono-project.com/AnonSVN), as follows:

svn co svn://anonsvn.mono-project.com/source/trunk/mcs
svn co svn://anonsvn.mono-project.com/source/trunk/mono
svn co svn://anonsvn.mono-project.com/source/trunk/libgdiplus

2. visit each of the base source directories obtained via svn. Read the README/INSTALL file. Each of the source trees has to be configured but each may use either configure, autoconf, or bootstrap to prepare the source for compiling. Configure the sources as directed by the README/INSTALL for each of the three source trees. This will produce 'configure' scripts which must be run for each source tree. Once this has been done, execute the configure scripts with the folowing switches:

sh autogen.sh
./configure --prefix=/home/user/bin/mono23a --with-tls=pthread --with-large-heap=yes

Be sure to replace the --prefix value with a target directory in your opensim user's home directory..

3. Once configured, the mono must be built. This is accomplished by issuing the 'make' command in the same directories where configuration was completed.

4. After successfully accomplishing a 'make' for each of the source trees, you are ready for 'make install'. Do the mono/mcs first.

5. Once the install process is successfully completed, put the target directory you supplied via the --prefix switch in the opensim user's path. Be sure to get this right or your shiny new mono will go unused.

Rebuild opensim and start it up with the new mono. The gains are a smaller binary (by ~10%), something close to a 10% increase in speed, and a much tighter and more stable garbage collection cycle.

*** Note: it is highly recommended to leave any mono installed by your distro intact and keep the SVN mono well corralled and used by opensim only, as the mono SVN is a developement branch and may cause issues if used by things that depend on the system provided mono revision.

Good Luck :D

Hiro/daTwitch :mrgreen:

_________________
http://opensimulator.org http://osgrid.org http://simhost.com
---------------------------------------------------------------------------------------------------------------------------
The wind
scours the earth for prayers
The night obscures them


Top
 Profile  
 
 Post subject: Re: HOWTO: Build Mono with linear CIL on Linux
PostPosted: Tue Nov 18, 2008 12:41 pm 
Site Admin
User avatar

Joined: Sat Feb 02, 2008 5:27 pm
Posts: 645
Location: Scottsdale, AZ
if your unsure on how to add mono to your user space path so mono will run from any folder you need to edit .bashrc file in your home folder (ie /home/user/.bashrc) then insert the following info:
Code:
export PATH="/home/user/bin/mono23a/bin:$PATH"
export PKG_CONFIG_PATH="/home/user/bin/mono23a/lib/pkgconfig:$PKG_CONFIG_PATH"
export MANPATH="/home/user/bin/mono23a/share/man:$MANPATH"

** make sure you modify the path to reflect the folder you installed mono too **
Neb :ugeek:

_________________
Image


Top
 Profile  
 
 Post subject: Re: HOWTO: Build Mono with linear CIL on Linux
PostPosted: Tue Nov 18, 2008 1:54 pm 
Site Admin
User avatar

Joined: Sat Feb 02, 2008 5:27 pm
Posts: 645
Location: Scottsdale, AZ
If you have trouble with MCS giving you errors about compiling it and to use bootstrap method, try installing mono with the following incantation:
Code:
./configure --prefix=/home/user/bin/mono23a --with-tls=pthread --with-large-heap=yes
make get-monolite-latest
make install

_________________
Image


Top
 Profile  
 
 Post subject: Re: HOWTO: Build Mono with linear CIL on Linux
PostPosted: Thu Nov 20, 2008 9:08 pm 

Joined: Thu Nov 20, 2008 9:06 pm
Posts: 2
Hi all. I've just got a VPS with Tektonic and I'm trying to complie opensim, but I get this error.

BUILD FAILED - 0 non-fatal error(s), 19 warning(s)

/root/opensim/opensim/OpenSim/Framework/Communications/OpenSim.Framework.Communications.dll.build(14,10):
External Program Failed: /usr/lib/pkgconfig/../../lib/mono/2.0/gmcs.exe (return code was 1)

Total time: 1.5 seconds.

I'd appreciate any help I can get. Thanks.


Top
 Profile  
 
 Post subject: Re: HOWTO: Build Mono with linear CIL on Linux
PostPosted: Fri Nov 21, 2008 1:37 am 
Site Admin
User avatar

Joined: Sat Feb 02, 2008 5:27 pm
Posts: 645
Location: Scottsdale, AZ
you can safely ignore the warnings for now, this being an alpha level project there will always be many warnings when compiling opensim.

Neb :ugeek:

_________________
Image


Top
 Profile  
 
 Post subject: Re: HOWTO: Build Mono with linear CIL on Linux
PostPosted: Fri Nov 21, 2008 5:45 am 

Joined: Thu Nov 20, 2008 9:06 pm
Posts: 2
I complied opensim on Debian, when I go to run it by typing mono OpenSim.32BitLaunch.exe, I get Cannot open assembly OpenSim.32BitLaunch.exe. Any ideas why?


Top
 Profile  
 
 Post subject: Re: HOWTO: Build Mono with linear CIL on Linux
PostPosted: Sat Nov 22, 2008 10:06 pm 
Site Admin
User avatar

Joined: Sat Feb 02, 2008 5:27 pm
Posts: 645
Location: Scottsdale, AZ
that file should only be run if your CPU is AMD64, natively opensim wont run on a 64 bit cpu without recompiling some of our included libraries which do not by default support 64 bit. So if your CPU is 32bit use OpenSim.exe to run it.

Neb :ugeek:

_________________
Image


Top
 Profile  
 
 Post subject: Re: HOWTO: Build Mono with linear CIL on Linux
PostPosted: Fri Nov 28, 2008 10:20 am 
Furious Typer

Joined: Fri Nov 28, 2008 9:39 am
Posts: 54
nebadon wrote:
that file should only be run if your CPU is AMD64, natively opensim wont run on a 64 bit cpu without recompiling some of our included libraries which do not by default support 64 bit. So if your CPU is 32bit use OpenSim.exe to run it.

Neb :ugeek:


I took this advice and applied it to my VPS server and by Golly openSim ran for the very firs time. Mucho thanks.


Top
 Profile  
 
 Post subject: Re: HOWTO: Build Mono with linear CIL on Linux
PostPosted: Thu Dec 18, 2008 10:49 am 

Joined: Thu Dec 18, 2008 10:45 am
Posts: 3
UPDATE: Don't need other languages, which is what the below error is from after poking around.

Worked around by appending "--disable-nls" to ./configure

...


mono/mcs make is failing for me, on Ubuntu 8.10 64-bit (linode VPS):

Quote:
jake@li57-10:~/work/mono$ make
make all-recursive
make[1]: Entering directory `/home/jake/work/mono'
Making all in po
make[2]: Entering directory `/home/jake/work/mono/po'
Making all in mcs
make[3]: Entering directory `/home/jake/work/mono/po/mcs'
test ! -f ./mcs.pot || \
test -z "es.gmo ja.gmo de.gmo" || make es.gmo ja.gmo de.gmo
make[4]: Entering directory `/home/jake/work/mono/po/mcs'
rm -f es.gmo && : -c --statistics -o es.gmo es.po
mv: cannot stat `t-es.gmo': No such file or directory
make[4]: *** [es.gmo] Error 1
make[4]: Leaving directory `/home/jake/work/mono/po/mcs'
make[3]: *** [stamp-po] Error 2
make[3]: Leaving directory `/home/jake/work/mono/po/mcs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jake/work/mono/po'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jake/work/mono'
make: *** [all] Error 2
jake@li57-10:~/work/mono$


Any thoughts?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 9 posts ]


Who is online

Users browsing this forum: legacy_yahoo [bot] and 0 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:  


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