Mac OS X


If you have Mac OS X Lion, you can easily install OLSRd using this installer.


  • 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.


  1. Download the latest version of OLSRd from (0.6.1, as of this writing). Unpack the folder.
  2. 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 command patch -p0 < olsrd-lion.patch).
  3. 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).
  4. Login as root by entering the command su. You will need to use the root password you set.
  5. Run the command make; make install; make libs; make install_libs to compile and install OLSRd and its plugins.
  6. 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.
  7. 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″).
  8. In the olsrd.conf file, change the line Interface "<OLSRd-Interface1>" "<OLSRd-Interface2>" to Interface "en1", where instead of en1, you put the name of your wireless network interface.
  9. Save the file. You may have to enter your administrator password to do so.
  10. 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.
  11. Enter the command olrsd. OLSRd is now running!