I can see the problem already. This "download dependencies and bitcoin" script is made for CentOS5/Bitcoin0.6 and hasn't been updated. It gets the "master" branch of Bitcoin which is the newest alpha/nightly commited code. Several large changes have been made requiring different libraries, especially the need for leveldb.
You should change the "tarball" in centosbuild.sh
mkdir bitcoin-master
cd bitcoin-master
wget -qO-
https://github.com/bitcoin/bitcoin/tarball/master --no-check-certificate | tar xzv --strip-components 1
cd src
#cp -vap ~$USERNAME/makefile.new .
to a stable release:
https://github.com/bitcoin/bitcoin/tarball/0.6.3 or
https://github.com/bitcoin/bitcoin/tarball/0.7.2This script will copy bitcoind to your home directory when it's done compiling, it does not install it for all users.