[Summary, full note in Shaarli]
Install Graphite 0.9.10 as a normal user on CentOS 5.5, with no internet and no root (Tomasz KalkosiĆski, refaktor.blogspot.com). Based on https://community.webfaction.com/questions/10038 and https://gist.github.com/jgeurts/3112065. Download every tarball elsewhere and upload it. Needs gcc and make (rpm -qa | grep gcc).
- Environment (put in .bashrc): CFLAGS/CPPFLAGS=-I$HOME/include -I$HOME/include/python2.7, PKG_CONFIG_PATH=$HOME/lib/pkgconfig, LDFLAGS=-L$HOME/lib -L$HOME/lib/python2.7, LD_LIBRARY_PATH with $HOME/lib, $HOME/lib/python2.7 and its site-packages/cairo, PYTHONPATH with $HOME/lib/python and $HOME/lib/python2.7/site-packages, PATH=$HOME/.local/bin:$PATH. Work dir $HOME/graphite-install.
- Libraries, each with ./configure --prefix=$HOME && make && make install: zlib 1.2.8, libpng 1.6.2, sqlite 3.7.17.
- Python 2.7.5: ./configure --enable-shared --prefix=$HOME (enable-shared is crucial); make must not list _zlib or _sqlite3 as missing. Then use ~/bin/python everywhere.
- Cairo: libffi 3.0.11, glib 2.31.22, pixman 0.26.2, cairo 1.12.2 (same configure), then py2cairo 1.10.0 with ~/bin/python ./waf configure --prefix=$HOME / build / install. Check: ~/bin/python -c 'import cairo; print cairo.version'
- setup.py install --user for zope.interface 4.0.5, Django 1.5.1, django-tagging 0.3.1, Twisted 11.1.0.
- whisper, carbon, graphite-web 0.9.10: setup.py install --home=$HOME/graphite (run check-dependencies.py first).
- conf: copy carbon.conf and storage-schemas.conf from the examples; local_settings.py: TIME_ZONE, DEBUG = True, ALLOWED_HOSTS = ["*"], explicit paths instead of /opt/graphite and of $HOME (which doesn't work there), DATABASES with a full path. Then manage.py syncdb, carbon-cache.py start, manage.py runserver inside screen; curl localhost:8000; examples/example-client.py sends test stats.