uncategorized

Installing Berkeley DB 4.8.26 NC (no crypto) on OpenSolaris

Download the source

Download the file db-4.8.26.NC.tar.gz from http://www.oracle.com/technology/software/products/berkeley-db/db/index.html

Save this in /src

You may also want to verify the file signature or checksums and read the README or INSTALL files.

Extract, configure and make

1
2
3
4
5
6
7
8
9
10
11
12
13
cd /src
tar xzf db-4.8.26.NC.tar.gz && cd db-4.8.26.NC/build_unix
CFLAGS=$( find -L /my -type d -name include -exec echo "-I{} " \; | grep -v "[.][0-9]" | tr -d '\n' ) \
LDFLAGS=$( find -L /my -type d -name lib -exec echo "-L{} -R{} " \; | grep -v "[.][0-9]" | tr -d '\n' ) \
../dist/configure --enable-cxx --enable-java --enable-test \
--enable-tcl --with-tcl=/usr/lib \
--prefix=/my/db-4.8.26.NC >>mylog.txt \
&& gmake all >>mylog.txt && su
gmake install >>mylog.txt
ln -s /my/db-4.8.26.NC /my/db
ln -s /my/db/include/db.h /usr/include/
exit
echo "export PATH=/my/db/bin:\$PATH" >> ~/.profile

Congrats! Berkeley DB should be built successfully!

Share