I am by no means a linux guru, but things to try (that have helped me in the past)
Make sure you have pre reqs installed:
sudo apt-get update
sudo apt-get install build-essential libboost-all-dev automake libtool autoconf
sudo apt-get install libdb++-dev
sudo apt-get install libboost-all-dev
sudo apt-get install pkg-config
sudo apt-get install libssl-dev
If you dont have alot of ram, create a swap
sudo free
sudo dd if=/dev/zero of=/var/swap.img bs=1024k count=1000
sudo mkswap /var/swap.img
sudo swapon /var/swap.img
sudo free
Then to build (this works for me)
sudo git clone
https://github.com/bitcoin/bitcoincd bitcoin
sudo git checkout tags/v0.9.2.1
sudo ./autogen.sh
sudo ./configure --with-incompatible-bdb --with-boost-libdir=/usr/lib/arm-linux-gnueabihf
sudo make
sudo make install