### 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/