Monday, November 12, 2007
Building BerkeleyDB on Solaris 10
This may be a running blog entry. So far the first problem I ran into was getting the 'configure' script to run correctly. The error I kept getting was that my C compiler did not create executables. The problem was that Solaris has a native 'cc' compiler in the /usr/ucb/bin directory. Apparently Berkeley DB configuration always looks for the native compiler before looking for 'gcc'. So the answer was to set the CC environment variable to 'gcc' and then everything worked. Of course this presuemes that gcc is installed. I have been amazed at the amount of 'stuff' I had to install on Solaris after the initial install. The Solaris package management system leaves much to be desired (as far as I can tell -- maybe I'm just missing something). I was reduced to the old method of trying to install a package, check the dependency errors, then tracking back to install the dependicies first, etc. It took a while to setup all the tools that I was used to getting when would work on a clean RedHat install.