Installation of Berkeley DB
Install Berkeley DB by running the following commands:
cd build_unix &&
../dist/configure --prefix=/opt/db-3.3 --enable-compat185 &&
make &&
make docdir=/opt/db-3.3/doc/Berkeley-DB install &&
cd /opt/db-3.3/lib/ &&
rm -f libdb.so &&
for i in $(ls); do mv $i /usr/lib; ln -sf /usr/lib/$i; done &&
cd /opt/db-3.3/include/ &&
sed 's/^DB185/DB/' db_185.h > db_185.h.new &&
mv db_185.h.new db_185.h &&
ln -nsf /opt/db-3.3/include /usr/include/db3