Debian 4 Build Instructions

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
m
Line 84: Line 84:
  
 
nearly there...
 
nearly there...
 +
 +
  Make sure you rename the Opensim.ini.example file to Opensim.ini
  
 
   cd bin
 
   cd bin

Revision as of 16:08, 17 February 2009

The following packages and their dependencies are required to run OpenSim on a default Debian 4 netinstall:

  • mono
  • libmono-corlib2.0-cil
  • libmono-sqlite2.0-cil
  • libmono-system-web2.0-cil
  • libmono-microsoft8.0-cil
  • libmono-system-runtime2.0-cil
  • libmono-oracle2.0-cil (new dependency since r7587)

Hint #1: It is possible to use Debian Etch, but you will need to add custom repositories for mono to work. However installing or upgrading to Lenny/Sid will enable you to use the standard debian repositories. This is a good thing.

Hint #2: OpenSim will run on Mono 1.9.1, but seems to run a little better on Mono 2.0.1


Upgrading Etch to Lenny

I culled this from the a a little post on go2linux http://www.go2linux.org/upgrading-debian

To upgrade the Linux Debian Stable Etch to testing Lenny, just need to follow these two steps.

1. Edit sources.list

 sudo vi /etc/apt/sources.list

and change all words etch to lenny, or stable to testing

2. Update and upgrade

 sudo aptitude update
 sudo aptitude install apt dpkg aptitude
 sudo aptitude full-upgrade

This will also work when moving from Lenny to Sid.

Note: When I ran aptitude full-upgrade , I got a bunch of package configuration options - I took the safe option and just went with whatever it suggested. If you have no idea what you are doing (like me) then that's probably your best bet.

Getting the prerequisites

Ok first you need a bunch of stuff to get started - then you need Mono 2.0.1 (trembles) or better...

 aptitude install subversion ruby
 aptitude install nant ( this gets you a bunch of the mono stuff anyway )
 aptitude install build-essential swig autoconf gawk mono-common binfmt-support bison libglib2.0-dev

And a few more things...

 aptitude install libmono-microsoft8.0-cil
 aptitude install libmono-oracle2.0-cil


Install Mono 2.0.1

Yes... you know you wan't to do it... this is one way ( compile from source ) there are several others but this worked for me.

 wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.0.1.tar.bz2
 tar xf mono-2.0.1.tar.bz2
 cd mono-2.0.1
 ./configure --with-libgdiplus=yes
 make (you may see a bunch of warnings, but do what I did - ignore them)
 make install

Ok cool, now type "mono -V" and you should see something like this:

 Mono JIT compiler version 2.0.1 (tarball)
 Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
 TLS:           __thread
 GC:            Included Boehm (with typed GC)
 SIGSEGV:       altstack
 Notifications: epoll
 Architecture:  x86
 Disabled:      none

Now for Opensim itself!

Just do this:

 svn co http://opensimulator.org/svn/opensim/trunk opensim (this may take a few minutes)
 cd opensim
 ./runprebuild.sh
 nant

nearly there...

 Make sure you rename the Opensim.ini.example file to Opensim.ini
 cd bin
 mono OpenSim.exe


Enjoy :)

Personal tools
General
About This Wiki