Thursday, January 5, 2012

Install Graphite On A SmartMachine (SmartOS Zone)

I've been hearing a lot of good things about Graphite lately. So I thought I'd give it a try on a SmartOS Zone (SmartMachine?). I had one heck of a time installing it. Here's how I did it.

First, for some reason I had to use the 32bit version SmartOS 1.4.7. If you try the 64bit version, the first error you get:


Checking for header Python.h : Could not find the python development headers


But this appears to be a red herring and the real issue is related to 32 vs 64bit issues. Investigating this helped me understand why people don't like waf. Just use the 32bit zone and safe some pain.


Install all the dependencies that are available via pkgin:

pkgin install apache gcc-compiler scmgit python27 pkg-config cairo xproto renderproto-0.11 kbproto py27-setuptools py27-django py27-twisted ap22-py27-wsgi

I ran into a problem where it said apache was missing when I tried to download it. This was fixed by doing 'pkgin -f update'. The '-f' was necessary.

Dependency - pycairo

Install pycairo, we need py2cairo as its for python 2.7:


git clone git://git.cairographics.org/git/py2cairo
cd py2cairo
PREFIX="/opt/local" ./waf configure
./waf build
./waf install


Install Graphite components 'by hand'. Download, untar and run 'python setup.py install' in each of the resulting directories:

http://pypi.python.org/pypi/carbon
http://pypi.python.org/pypi/graphite-web
http://pypi.python.org/pypi/whisper

Install django-tagging by hand. Download, untar and run 'python setup.py install'.
http://code.google.com/p/django-tagging/downloads/list


Inside graphite-web run:


./check-dependencies.py


You might see warning, but there shouldn't see any FATAL messages.

(Under Construction) You still need to:
- copy and edit the apache config
- copy the .wsgi example into place
- copy the carbon.conf.example and the storage-schemas.conf.example
- patch the settings.py file so that it doesn't prepend the third party path

3 Comments:

At March 27, 2020 at 5:53 AM , Blogger hrroman said...

If you are stuck with your marketing assignment then in this case you can opt for our Marketing Assignments. we provide the bestMarketing assignment help.We also provide Integrated Marketing Communication for students across the globe. for more information contact us +16692714848.

 
At December 21, 2020 at 3:41 AM , Blogger Jacob Ethan said...

How to Resolve HDCP error on Roku?
Disconnect the HDMI cable from the port and connect it back again
If the HDMI cable used is faulty, try replacing it with a new one. Always choose good quality cables to use with your device
You can also try reversing the ends of HDMI cable and then check if the error messages resolve
Restart or reset your device using the compatible reset settings. Use the settings >System> System restart
If you require to resolve the hdcp roku error contact @+1-844-935-4357 and visit our site roku hdcp error detected

 
At December 4, 2023 at 12:13 PM , Blogger Singhal said...

Thank you for the article, if you guys are looking for cheap hotel deals you can visit PML Holidays.

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home