OPTIONS

Build for FreeBSDΒΆ

For FreeBSD version 8.0 and later, there is a MongoDB port you can use.

For FreeBSD versions 7.2 or earlier:

  1. Get the database source: http://www.github.com/mongodb/mongo.

  2. Update your ports tree:

    sudo portsnap fetch && portsnap extract
    

    The packages that come by default on 7.2 and older are too old and cause errors when you try to run the database.

  3. Install SCons:

    cd /usr/ports/devel/scons && make && make install
    
  4. Install libunwind:

    cd /usr/ports/devel/libunwind && make && make install
    
  5. Change to the database source directory

  6. Run:

    scons all
    

See also

Build for Linux