BrT

Musings about technology and other neat stuff

BrT random header image

OpenSim on OSX… or: your own secondlife grid in 8 easy steps

January 31st, 2008 · Comments

Following DrScofield’s instructions for setting up OpenSim , I thought I’d give it a try on my OSX laptop. The process is not quite as straightforward, but it works. Here’s what I did:

  1. Download and install the Mono package for OSX from the Mono downloads page.
  2. If you don’t have subversion, install it. I personally like the packages from http://homepage.mac.com/hiirem/svkbuilds.html.
  3. Make sure you have Xcode installed (for the make command below)
  4. Fix nant, as documented here. Essentially, edit /usr/bin/nant and add the line in bold:
    #!/bin/sh
    export PKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/Versions/Current/lib/pkgconfig
    exec /Library/Frameworks/Mono.framework/Versions/1.2.6/bin/mono /Library/Frameworks/Mono.framework/Versions/1.2.6/lib/NAnt/NAnt.exe "$@"
  5. Check out and build opensim:
    % svn co http://opensimulator.org/svn/opensim/trunk opensim
    % cd opensim
    % ./runprebuild.sh
    % nant
  6. Compile libopenjpeg-libsl-2.1.2.0.dylib from source (this is mentioned in the OpenSim wiki) and copy it into the opensim/bin directory:
    % svn co svn://opensecondlife.org/libsl/trunk libsecondlife
    % cd libsecondlife/openjpeg-libsl/
    % make -f Makefile.osx
    % cp libopenjpeg-libsl-2.1.2.0.dylib ../../opensim/bin
  7. Run opensim:
    % cd ../../opensim/bin
    % mono ./OpenSim.exe
  8. And finally, run the SL client with the appropriate option:
    % /Applications/Second\ Life.app/Contents/MacOS/Second\ Life -loginuri http://127.0.0.1:9000

    And… it works!
    Picture 2.png
    The first time I connected my avatar appeared all black, but on subsequent connections it appeared properly clothed and colored.

Tags: · · · ·