upgrading to bitcoin 0.10.2 fails
To allow compatibility of your wallet.dat file with other bitcoind installations, it's strongly recommended to use bdb 4.8.

Nevertheless, you can disable the db4.8 check by adding --with-incompatible-bdb during configure.

Better would be to manually install berkley db 4.8 in a isolated path and compile bitcoin-core with something similar to:

CPPFLAGS="$CPPFLAGS -I&lt;your-bdb4.8-path&gt;/include"
LIBS="$LIBS -L&lt;your-bdb4.8-path&gt;/lib"


But this would probably require some makefile tweaking.