OLSR
If you have Mac OS X Lion, you can easily install OLSRd using this installer.
Requirements
- Mac OS X. We have tested it on Mac OS 10.6 and higher.
- XCode. XCode is the set of development tools distributed by Apple. It contains GCC, a C compiler needed to install OLSRd. In Lion, XCode can be downloaded for free from the Mac App Store.
- Root access on your computer. You can enable the root user by following these instructions.
Instructions
- Download the latest version of OLSRd from http://www.olsr.org/?q=download (0.6.1, as of this writing). Unpack the folder.
- If you are using Lion, you need to make a slight change. In the olsrd folder, open src/bsd/net.c and add the line
#define __APPLE_USE_RFC_2292
right before the line#include "../defs.h"
near the top. (Or you can just use this patch to make the change; install it from inside the olsrd folder using the Terminal commandpatch -p0 < olsrd-lion.patch
). - Open Terminal (in /Applications/Utilities) and navigate to the olsrd folder. (For example, if the folder is on the Desktop, type
cd Desktop/olsrd-0.6.1/
and hit return). - Login as root by entering the command
su
. You will need to use the root password you set. - Run the command
make; make install; make libs; make install_libs
to compile and install OLSRd and its plugins. - Now you need to set up the configuration file. In the finder, click on Go to Folder… in the Go menu (shift-command-G) and enter
/etc/
. Open olsrd.conf. - Check what your wireless network interface is called by going to About this Mac in the Apple menu, clicking More Info…, then System Report…, then Network. Make a note of the BSD Device Name for Wi-Fi (usually something like “en0″, “en1″, or “en2″).
- In the olsrd.conf file, change the line
Interface "<OLSRd-Interface1>" "<OLSRd-Interface2>"
toInterface "en1",
where instead of en1, you put the name of your wireless network interface. - Save the file. You may have to enter your administrator password to do so.
- If you aren’t still logged in as root, do so by entering
su
in Terminal. You will need to do so every time you run OLSRd. - Enter the command
olrsd
. OLSRd is now running!