When the intention is to run only a P2P node without a wallet, Bitcoin Core may be compiled in disable-wallet mode with:
In this case there is no dependency on Berkeley DB 4.8 and SQLite.
Mining is also possible in disable-wallet mode using the [direction]getblocktemplate [/direction]RPC call.