Search This Blog

Compile and install Berkeley DB on Mac OS X Yosemite

  • Make sure you have xcode installed.
  • Download Berkeley DB from Oracle.
  • Compile and install:
    unzip db-6.1.19.zip
    cd db-6.1.19/build_unix
    ../dist/configure --disable-replication --prefix=/usr/local
    make
    sudo make install
      
  • To check where the files are located, run
    find /usr/local | grep db
    you should see something like below:
    /usr/local/lib/libdb-6.1.a
    /usr/local/lib/libdb-6.1.dylib
    /usr/local/lib/libdb-6.1.la
    /usr/local/lib/libdb-6.dylib
    /usr/local/lib/libdb.a
    /usr/local/lib/libdb.dylib
    /usr/local/include/db.h
    /usr/local/include/db_cxx.h
    

No comments:

Post a Comment