Skip to content

Instantly share code, notes, and snippets.

@paulstakem
Created January 9, 2013 14:15
Show Gist options
  • Save paulstakem/4493430 to your computer and use it in GitHub Desktop.
Save paulstakem/4493430 to your computer and use it in GitHub Desktop.
Build and installation of Graphite Web, Carbon and Whisper on Centos 6.3 x86_64
### Install pre-requists
yum install gcc zlib-devel curl curl-devel openssl rpm-build gcc-c++ rpm-build python python-ldap python-memcached python-sqlite2 pycairo python-twisted Django django-tagging bitmap bitmap-fonts python-devel glibc-devel gcc-c++ openssl-devel python-zope-interface httpd memcached mod_wsgi python-setuptools
### Setup rpm build folders
rpmdev-setuptree
### Clone GIT project
git clone https://github.com/dcarley/graphite-rpms.git
### Grab the sources from github
cd ~/rpmbuild/SOURCES/
wget https://github.com/downloads/graphite-project/graphite-web/graphite-web-0.9.10.tar.gz
wget https://github.com/downloads/graphite-project/carbon/carbon-0.9.10.tar.gz
wget https://github.com/downloads/graphite-project/whisper/whisper-0.9.10.tar.gz
### Copy the spec files
for i in carbon whisper graphite-web;
do cp ~/graphite-rpms/$i-0.9.10/$i.spec ~/rpmbuild/SPECS/ ;
done
### Drop all the additional sources and patches into place
for i in carbon whisper graphite-web;
do cp ~/graphite-rpms/$i-0.9.10/* ~/rpmbuild/SOURCES/ ;
done
### Build Binary Packages from spec files
for i in carbon whisper graphite-web;
do rpmbuild -bb ~/rpmbuild/SPECS/$i.spec;
done
### Install packages
for i in carbon whisper graphite-web;
do yum localinstall ~/rpmbuild/RPMS/noarch/$i-*.noarch.rpm;
done
### References
# http://www.alrix.com/2012/04/installing-graphite-on-centos-part-1.html
# http://www.alrix.com/2012/04/installing-graphite-on-centos-part-2.html
# http://www.rampmeupscotty.com/blog/2012/08/07/installing-graphite-on-centos-6-dot-2/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment