{"id":1392,"date":"2011-11-01T20:14:54","date_gmt":"2011-11-02T01:14:54","guid":{"rendered":"http:\/\/www.kickflop.net\/blog\/?p=1392"},"modified":"2011-11-02T08:49:32","modified_gmt":"2011-11-02T13:49:32","slug":"graphite-for-rhel-5-7","status":"publish","type":"post","link":"https:\/\/www.kickflop.net\/blog\/2011\/11\/01\/graphite-for-rhel-5-7\/","title":{"rendered":"Graphite for RHEL 5.7"},"content":{"rendered":"<p><a href=\"http:\/\/graphite.wikidot.com\/\">Graphite<\/a> install for RHEL 5.7 from scratch.<\/p>\n<p>Official Graphite documentation is at <a href=\"http:\/\/graphite.readthedocs.org\/\">http:\/\/graphite.readthedocs.org\/<\/a><\/p>\n<pre>\r\nexport PATH=\/usr\/bin:\/bin:\/usr\/sbin:\/sbin\r\nmkdir -p \/graphite\/src\r\ncd \/graphite\/src\r\n\r\n# Download Python 2.7.x source from python.org\r\n# Unpackage\r\n\r\ncd Python-2.7.2\r\n.\/configure --prefix=\/graphite\r\nmake\r\nmake install\r\ncd ..\r\n\r\n# Now make sure you get your python before RHEL's\r\n\r\nexport PATH=\/graphite\/bin:$PATH\r\n\r\n# Download Django 1.x source from django.org\r\n# Unpackage\r\n\r\ncd Django-1.3\r\npython setup.py install\r\ncd ..\r\n\r\n# Download django-tagging from http:\/\/code.google.com\/p\/django-tagging\/\r\n# Unpackage\r\n\r\ncd django-tagging-0.3.1\r\npython setup.py install\r\ncd ..\r\n\r\n# Download Twisted 11.x source here from http:\/\/twistedmatrix.com\/\r\n# Unpackage\r\n\r\ncd Twisted-11.0.0\r\npython setup.py install\r\ncd ..\r\n\r\n# Download setuptools from http:\/\/pypi.python.org\/pypi\/setuptools\r\n# Unpackage\r\n\r\ncd setuptools-0.6c11\r\npython setup.py install\r\ncd ..\r\n\r\n# Download pip from http:\/\/pypi.python.org\/pypi\/pip\r\n# Unpackage\r\n\r\ncd pip-1.0.2\r\npython setup.py install\r\ncd ..\r\n\r\n# Now you have to build the Cairo graphics library, as RHEL's\r\n# is too old for py2cairo's needs.\r\n\r\n# Start with pixman, a dependency for building cairo!\r\n\r\n# Download pixman from http:\/\/www.cairographics.org\/releases\/\r\n# Unpackage\r\n\r\ncd pixman-0.22.2\r\n.\/configure --prefix=\/graphite\r\nmake\r\nmake install\r\n\r\n# Download cairo from http:\/\/www.cairographics.org\/releases\/\r\n# Unpackage\r\n\r\ncd cairo-1.10.2\r\n# Make sure we find our shit and don't have runtime linker problems\r\nexport LDFLAGS=\"-L\/graphite\/lib -Xlinker -rpath -Xlinker \/graphite\/lib\"\r\n# PKG_CONFIG_PATH is set below so pixman is found\r\nexport PKG_CONFIG_PATH=\/graphite\/lib\/pkgconfig\r\n# Turn off all the X shit and gobject since RHEL glib2 is too old\r\n.\/configure --prefix=\/graphite --without-x --enable-xlib=no \\\r\n    --enable-xlib-xrender=no --enable-xcb-shm=no --enable-qt=no \\\r\n    --enable-gl=no --enable-gobject=no\r\nmake\r\nmake install\r\n\r\n# Download Pycairo (aka py2cairo) from http:\/\/www.cairographics.org\/pycairo\/\r\n# Unpackage\r\n\r\n# Had to add these to LDFLAGS or .\/waf configure bombs on Python.h test\r\n# due to not including them when it should be in its test\r\nexport LDFLAGS=\"$LDFLAGS -lm -ldl -lutil\"\r\ncd py2cairo-1.10.0\r\n.\/waf configure --prefix=\/graphite\r\n.\/waf build\r\n.\/waf install\r\ncd ..\r\n\r\n# Download carbon, whisper, and graphite-web from\r\n# https:\/\/launchpad.net\/graphite\r\n# Unpackage\r\n\r\ncd whisper-0.9.9\r\npython setup.py install\r\ncd ..\r\n\r\ncd carbon-0.9.9\r\npython setup.py install\r\ncd ..\r\n\r\ncd graphite-web-0.9.9\r\n.\/check-dependencies.py # Ignore WARNINGs as you see fit\r\npython setup.py install\r\ncd ..\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Graphite install for RHEL 5.7 from scratch. Official Graphite documentation is at http:\/\/graphite.readthedocs.org\/ export PATH=\/usr\/bin:\/bin:\/usr\/sbin:\/sbin mkdir -p \/graphite\/src cd \/graphite\/src&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-1392","post","type-post","status-publish","format-standard","hentry","category-sysadmin"],"_links":{"self":[{"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/posts\/1392","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/comments?post=1392"}],"version-history":[{"count":3,"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/posts\/1392\/revisions"}],"predecessor-version":[{"id":1395,"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/posts\/1392\/revisions\/1395"}],"wp:attachment":[{"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/media?parent=1392"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/categories?post=1392"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kickflop.net\/blog\/wp-json\/wp\/v2\/tags?post=1392"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}