Hi there Muhammad. When this is run:
> gcc -c -I/usr/local/BerkeleyDB/include -fno-strict-aliasing -pipe > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.811\" > -DXS_VERSION=\"1.811\" -fPIC > "-I/usr/local/lib/perl5/5.8.7/sun4-solaris/CORE" -D_NOT_CORE > -DmDB_Prefix_t=size_t -DmDB_Hash_t=u_int32_t version.c the -I option to gcc tells it to include that directory in that directory specified. So take a look in the directory '/usr/local/BerkeleyDB/include' and see if you can find the file 'db.h' there. Also look in the standard include paths (probably /usr/include and /usr/local/include on Solaris). If you can't find them here, there's your problem. I reckon you need to install the berkeley db package. I believe sunfreeware.com has this package for both Solaris 9 and Solaris 10. Cheers Daniel