October 23, 2004
11:16 AM
Subscribe
Yet another dorky Linux question: how can I install an upgraded version of the
Berkeley DB libraries on my RedHat Linux 9 machine without totally horking all the apps that are installed that rely on the older version? (more inside)
posted by delfuego to (3 comments total)
I compiled v4.2 using the latest source from the SleepyCat site, and installed it in the default location (/usr/local/BerkeleyDB.4.2/); that's relatively nonstandard for RedHat, so when I started compiling one of the apps that needs v4.2, I gave ./configure the relevant command-line options (LDFLAGS, CPPFLAGS). Configure completed without issue, but the compile step wouldn't complete because it couldn't track down all the header files. So then I realized that it probably makes sense to try to install v4.2 in the "standard" RedHat locations (/usr/lib, /usr/include, etc.) I have TERRIBLE memories of this failing miserably in the past -- totally screwing up old apps, bringing my system to its knees, that sort of thing -- so now I reach out to my AskMe buddies for help! Is there a way to do this which (a) allows newly-compiling apps to find the libraries easily, and (b) allows old apps to still use the v4.0 libraries without complaining?
posted by delfuego at 11:16 AM on October 23, 2004