Building for FreeBSD

On FreeBSD 8.0 and later, there is a mongodb port you can use.

For FreeBSD <= 7.2:

  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, you'll get weird errors when you try to run the database)
  3. Install SpiderMonkey:
    $ cd /usr/ports/lang/spidermonkey && make && make install
  4. Install scons:
    $ cd /usr/ports/devel/scons && make && make install
  5. Install boost: (it will pop up an X "GUI", select PYTHON)
    $ cd /usr/ports/devel/boost-all && make && make install
  6. Install libexecinfo:
    $ cd /usr/ports/devel/libexecinfo && make && make install
  7. Change to the database source directory
  8. scons .

See Also

  • Building for Linux - many of the details there including how to clone from git apply here too.

Follow @mongodb

MongoDB Pittsburgh - May 15
MongoNYC - May 23
MongoDB Paris - Jun 14
MongoDB UK - Jun 20
MongoDC - June 26


Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

PLEASE POST QUESTIONS IN THE USER GROUPS FORUM. Post non-question comments and helpful hints here.

blog comments powered by Disqus