POPFile 0.20a under MacOS X 10.2.x; BerkeleyDB 4 MINI-HOWTO

There is already an excellent resource for installing prior releases of POPFile, and this document assumes that you’ve done that in the past, and managed to get it all working.

First, POPFile 0.20 requires BerkeleyDB. You can get it easily with:

%curl -O http://www.sleepycat.com/update/snapshot/db-4.1.25.tar.gz %curl -O http://www.sleepycat.com/update/4.1.25/patch.4.1.25.1 %gzip -dc db-4.1.25.tar.gz | tar xf – %cd db-4.1.25 %patch -p0 < ../patch.4.1.25.1 %cd build_unix %../dist/configure—enable-compat185—enable-dump185—enable-cxx %make %sudo make install %sudo ln -s /usr/local/BerkeleyDB.4.1 /usr/local/BerkeleyDB

You should now have a functional Berkeley DB 4.1 installed in /usr/local/BerkeleyDB.4.1/, with a symlink of /usr/local/BerkeleyDB.

Now, we need the Perl counterpart. I chose to install ‘manually’, rather than using CPAN, as I don’t really feel all that comfortable with the CPAN shell. When it works, it works wonders, but with MacOS X 10.2.x having BerkeleyDB 1.x in it’s tree, I really don’t want to mess with things. ;)

%curl -O http://www.cpan.org/modules/by-module/BerkeleyDB/BerkeleyDB-0.24.tar.gz %gzip -dc BerkeleyDB-0.24.tar.gz | tar xf – %cd BerkeleyDB-0.24 %vi config.in Change the line #DBNAME = -ldb-3.0 to DBNAME = -ldb-4.1 %perl Makefile.PL %make %make install

Now, Perl should have BerkeleyDB support!

Get POPFile 0.20.0 via your favorite SourceForge mirror:

%curl -O http://umn.dl.sourceforge.net/sourceforge/popfile/popfile-0.20.0a.zip

Back up your old installation! For this document, let’s assume you followed the instructions in the above linked installation document, and installed to /Library/POPFile. Of course, if POPFile is running, turn it off via it’s interface.

%sudo cp -R /Library/POPFile /Library/POPFile.bak

Now, unzip the current POPFile over the old, allowing to overwrite any existing files.

%(cd /Library/POPFile; unzip -o /tmp/popfile-0.20.0a.zip)

Startup POPFile, ensure everything’s working!

It should upgrade your existing installation. Go and check your settings, turn it off, then load as you normally would, or, just background the process.