• Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
all links
  • How to install Graphite as a user (non root)

    [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).

    1. 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.
    2. Libraries, each with ./configure --prefix=$HOME && make && make install: zlib 1.2.8, libpng 1.6.2, sqlite 3.7.17.
    3. 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.
    4. 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'
    5. setup.py install --user for zope.interface 4.0.5, Django 1.5.1, django-tagging 0.3.1, Twisted 11.1.0.
    6. whisper, carbon, graphite-web 0.9.10: setup.py install --home=$HOME/graphite (run check-dependencies.py first).
    7. 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.
    May 18, 2016 - permalink - https://gist.github.com/SpOOnman/5957589
    graphite