Skip to content

Instantly share code, notes, and snippets.

@zhaoyao
Created January 18, 2012 04:51
Show Gist options
  • Save zhaoyao/1631039 to your computer and use it in GitHub Desktop.
Save zhaoyao/1631039 to your computer and use it in GitHub Desktop.
gmond install script
########################################## expat #############################################
cd /usr/local/src
wget http://downloads.sourceforge.net/project/expat/expat/2.0.1/expat-2.0.1.tar.gz?use_mirror=cdnetworks-kr-2
tar zxvf expat-2.0.1.tar.gz·
cd expat-2.0.1
./configure --prefix=/usr/local/expat
make && make install
mkdir /usr/local/expat/lib64
cp -a /usr/local/expat/lib/* /usr/local/expat/lib64/
cd /usr/local/src
wget http://apache.lauf-forum.at/apr/apr-1.4.5.tar.gz
tar zxvf apr-1.4.5.tar.gz·
cd apr-1.4.5
./configure --prefix=/usr/local/apr
make && make install
########################################## apr #############################################
/bin/cp -f /usr/local/apr/include/apr-1/* /usr/local/apr/include/
mkdir -p /usr/local/apr/lib64
/bin/cp -a -f /usr/local/apr/lib/* /usr/local/apr/lib64/
cd /usr/local/src
wget http://apache.lauf-forum.at/apr/apr-util-1.4.1.tar.gz
tar zxvf apr-util-1.4.1.tar.gz
cd apr-util-1.4.1
./configure --with-apr=/usr/local/apr --with-expat=/usr/local/expat
make && make install
########################################## confuse #############################################
cd /usr/local/src
wget http://download.savannah.gnu.org/releases/confuse/confuse-2.7.tar.gz
tar zxvf confuse-2.7.tar.gz
cd confuse-2.7
./configure CFLAGS=-fPIC --disable-nls --prefix=/usr/local/confuse
make
make install
mkdir -p /usr/local/confuse/lib64
/bin/cp -a -f /usr/local/confuse/lib/* /usr/local/confuse/lib64/
########################################## ganglia #############################################
cd /usr/local/src
wget --no-check-certificate https://github.com/downloads/ganglia/monitor-core/ganglia-3.2.1.tar.gz
tar zxvf ganglia-3.2.1.tar.gz
cd ganglia-3.2.1
./configure --prefix=/usr/local/ganglia --with-libapr=/usr/local/apr --with-libexpat=/usr/local/expat --with-libconfuse=/usr/local/confuse --enable-status --with-libpcre=no·
make && make install
mkdir -p /usr/local/sbin
ln -s /usr/local/ganglia/sbin/* /usr/local/sbin/
mkdir /usr/local/ganglia/etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment