Installation/fr

From OpenSimulator

Revision as of 22:26, 8 January 2008 by Ssm2017 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Installer depuis les sources

MS Windows

OpenSim requiert ou bien le framework .Net framework version 2.0, ou le dernier Mono. Il supporte les compilateurs suivants:

Note pour les personnes qui viennent de telecharger les sources depuis http://dist.opensimulator.org/ (le lien "Downloads" sur la gauche) sont averties que des changements importants peuvent avoir ete oublies ( comme les scripts de gabarit MySQL ). Pour ces fonctionnalités, vous devez telecharger depuis svn!


Depot Subversion

1. Obtenirle code source 'nightly build' depuis le depot svn :

http://opensimulator.org/svn/opensim/trunk

2. Obtenir la versions stable 0.4.5.2 depuis le depot svn:

svn co http://opensimulator.org/svn/opensim/tags/0.4.5.2-stable opensim

Compiler

2. Dans le dossier principal, lancez le fichier 'runprebuild.bat'. Ceci va creer une version VS2005 et un fichier de build nant.

3. Ouvrez le fichier sln resultant avec visual studio et compilez le, ou si vous preferez utiliser nant, lancez nant dans le meme dossier. Ceci construira les executables.

Si vous n'avez pas besoin de mode physics (marcher sur les prims, etc...), ignorez le reste de cette section.

Physics

Open Dynamics Engine (ODE)

Si vous voulez integrer le mode physique base sur les collisions, OpenDynamicsEngine (ODE) est le mieux integre actuellement (9/07). Il n'est pas entierement supporté, mais il commence a fonctionner relativement bien en utilisant un petit nombre de regions par sim.

Si vous installez depuis le svn, ODE ne fonctionne pas sur toutes les plateformes. Si vous obtenez un crash relatif a ODE, ou/et un ode.dll not found (qui peut apparaitre meme si la dll est presente!), essayez d'utiliser la version debug de la dll, disponible ici :

http://www.squiggle.com/opensim/ode-debug.dll

Renommez la en ode.dll et mettez la dans .\bin, en remplacant la ode.dll. Vous pouvez aussi essayer de builder ode.dll depuis la derniere version des sources (http://www.ode.org/; verifiez que vous avez active trimesh)

Lancement

Les versions recentes de OpenSim sont fournies avec un fichier OpenSim.ini. Copiez le fichier OpenSim.ini.example vers OpenSim.ini avant de faire un changement.

Double cliquez sur le fichier executable OpenSim.exe dans le dossier bin. Ceci va demarrer OpenSim en mode individuel ( standalone ).

Le debugguer de VS2005 C# peut etre utiliser pour tracer le code. Pour ceux qui utilisent le shell Cygwin, vous devriez remarquer que une ou plusieurs dll ont les les permissions qui causent des problemees durant l'execution. La plupart des gens trouvent que faire un "chmod 777 *" depuis le dossier bin resout ce probleme.

Le mode physics peut etre invoqué en ajoutant la ligne appropriee a la section [Startup] du fichier OpenSim.ini. Pour ODE ca devrait etre :

physics = OpenDynamicsEngine

Vous pouvez aussi ajouter une option de ligne de commande a un raccourci, ou lancer depuis une ligne de commande avec :

-physics=OpenDynamicsEngine

Windows Vista

To run on Windows Vista, you must first disable Windows Firewall. Under the new "Start" button of Vista, select "Control panel". Then double-click "Windows Firewall". In the window that pops up, on the left column, select "Turn Windows Firewall on or off". You will have to give permission for this to run, then select the option "Off (not recommended)". Click "OK" and exit from the Windows Firewall window.

If you have McAfee SecurityCenter, see the description below.

Once all the security features are disabled, right click on OpenSim.exe and select "Run as administrator". This will pop up a window asking permission, select "Allow". Your OpenSim server should run in a DOS-like window and accept connections.


McAfee Security

McAfee Security does not allow applications to listen on ports not explicitly specified. You have two options: 1) disable firewall protection all together, 2) enable OpenSim.exe to be able to open ports.

Disable firewall

Open McAfee SecurityCenter. Select "Internet & Network". In the lower left corner is a small link to "Configure...". Select this. In the right side of the window, select the bar that says "Firewall protection is enabled". Here you can select "Off".

Enable OpenSim.exe to open ports

Open McAfee SecurityCenter. Select "Internet & Network". In the lower left corner is a small link to "Configure...". Select this. In the right side of the window, select the bar that says "Firewall protection is enabled". Select the "Advanced..." button. This will pop up a new window.

In the new window, on the left side, select "Program Permissions." In the middle on the right side of the window, select the "Add Allowed Program" button. Use the browser that pops up to find the OpenSim executable and select it.

Finally, select "OK" and exit the McAfee SecurityCenter window.

Linux/Mac OS X/FreeBSD

Please note that the current (as of 2007-11-23) SVN will not work on 64bit linux systems when built. You will need to use the binary build further down the page. Installing and running on x86-64

Subversion Repository

To check out the latest revision:

svn co http://opensimulator.org/svn/opensim/trunk opensim

Note: The libopenjpeg-libsl-...so is not really working. For this reason you should download the newest libsecondlife from http://www.libsecondlife.org/, and build your own libopenjpeg library. If you use this instead of the SVN version, your sim will work fine.

Notes to Mac OS X users:

  • OS X does not come packaged with subversion, so you will need to either install it or access the repository from a computer that does have subversion.
  • You'll also need to install Mono.
  • The version of Mono in MacPorts (formerly DarwinPorts) seems to be out of date and produced compilation errors on my system. You may have better luck installing the newest package from http://www.mono-project.com/Downloads
  • Even with the newer version, there's a config problem with NAnt. There's a blog post here: http://bleepsoft.com/tyler/index.php?itemid=82 which explains how to fix the script (the blog post shows the path for 1.1.18 -- you'll need to replace this with 1.2.5 if you install the latest version from mono-project.com).

Building (Mono)

cd opensim
./runprebuild.sh
nant

If you encounter any errors while trying this, check the Troubleshooting page for help.

Physics (Unix)

If you want to implement collision-based physics, OpenDynamicsEngine (ODE) is the furthest along at the moment (9/07). It is not fully supported, but is starting to work somewhat reliably using a small number of regions per sim.

Open Dynamics Engine (ODE)

As installed from svn, ODE does not work on all platforms. If you get an ODE-related crash, and/or a libode.so not found type of error, you will need to build libode from source.

Remove libode.so from the ./bin folder. (Note that subsequent svn updates may replace it again; best fix is to copy your built libode.so to bin). Do NOT remove ode.net.dll! Download the latest source packages from http://www.ode.org/. When compiling, make sure to use the following configure options:

--with-trimesh=gimpact 
--enable-shared

Make sure the configure script confirms these choices, and always compile with single precision (I believe that's the default). Try make -k if you get errors relating to drawstuff, test*, or openGL. make install should put libode.so in the proper place (usually /usr/local/lib), and it should be seen by opensim (ode.net.dll)

Install Steps for Unix Platforms

Steps to get packages that are needed to compile the source.

FreeBSD 6.2

su
cd /usr/ports/devel/subversion/ && make install clean (you may also need to rebuild apr-svn if this step fails)
cd /usr/ports/lang/mono/ && make install clean
cd /usr/ports/devel/nant/ && make install clean
cd /usr/ports/databases/sqlite3/ && make install clean
cd /usr/ports/x11-toolkits/libgdiplus/ && make install clean
cd /opensim/installation/directory/
svn co http://opensimulator.org/svn/opensim/trunk opensim
cd opensim
./runprebuild.sh
nant

For ODE Physics you must do the following:

cd /usr/ports/graphics/libGL/ && make install clean
cd /usr/ports/graphics/libGLU/ && make install clean
cd /opensim/installation/directory/
svn co http://opensimulator.org/svn/opensim/trunk opensim-libs
cd opensim-libs/unmanaged/OpenDynamicsEngine/
./configure --enable-shared
make
mv ./ode/src/libode.so /opensim/installation/directory/opensim/bin/

Ubuntu Server 7.10

sudo apt-get subversion
sudo apt-get mono
sudo apt-get install nant
sudo apt-get install mono-mjs libmono-microsoft8.0-cil
sudo apt-get install libmono-system-runtime2.0-cil
svn co http://opensimulator.org/svn/opensim/trunk opensim
cd opensim
./runprebuild.sh
nant

Running (Mono)

Recent versions of OpenSim come without an OpenSim.ini file. Copy the OpenSim.ini.example file to OpenSim.ini before making any changes.

cd bin
mono OpenSim.exe

to invoke ODE, add the option:

-physics=OpenDynamicsEngine

or add physics = OpenDynamicsEngine to the [Startup] section of OpenSim.ini. Same deal for other physics engines, when available.

External tutorials and howtos

10-minutes-pour-heberger-son-propre-sim

Binary releases

Nightly builds, in tar-gzip format:

http://ruth.petitbe.be/build/

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
Personal tools
General
About This Wiki