1、安装libunwind(仅64位操作系统需要)

cd /usr/local/src/
wget http://download.savannah.gnu.org/releases/libunwind/libunwind-0.99.tar.gz
tar zxvf libunwind-0.99.tar.gz
cd libunwind-0.99
CFLAGS=-fPIC ./configure
make CFLAGS=-fPIC
make CFLAGS=-fPIC install

2、安装google-perftools

cd /usr/local/src/
wget http://google-perftools.googlecode.com/files/google-perftools-1.7.tar.gz
tar zvxf google-perftools-1.7.tar.gz
cd google-perftools-1.7
./configure
make && make install
echo “/usr/local/lib” > /etc/ld.so.conf.d/usr_local_lib.conf
/sbin/ldconfig

Comments