#!/bin/sh
#從github複製代碼以前,如今機器上建立公鑰ssh-keygen,在github賬號的settings裏面添加機器公鑰,再進行如下操做git
ORIGIN_CWD=`pwd`github
mkdir tmpssh
CWD=${ORIGIN_CWD}/tmpui
cd ${CWD}spa
git clone git@github.com:jemalloc/jemalloc.git
git clone git@github.com:sparsehash/sparsehash.gitget
wget http://ftp.gnu.org/gnu/glibc/glibc-2.14.tar.gzhash
cd ${CWD}/jemalloc
git checkout -b 4.2.1 4.2.1
./autogen.sh
./configure --prefix=/usr/local/jemalloc-4.2.1
make
make installit
cd ${CWD}/sparsehash
git checkout -b sparsehash-2.0.3 sparsehash-2.0.3
./configure --prefix=/usr/local/sparsehash-2.0.3
make
make installftp
cd ${CWD}
tar zxvf glibc-2.14.tar.gz
cd glibc-2.14
mkdir build
cd build
../configure --prefix=/usr/local/glibc-2.14
make
make installssh-key
cd ${ORIGIN_CWD}