I recently received a TeraStation NAS and have been hacking away with it. Managed to get root access and install some simple programs, however some programs require dependencies which I have been failing to meet. I have tried both Sickbeard and SABnzbd and both fail because they need Cheetah.
root@TS-6VHL856:# python SABnzbd.py
The Python module Cheetah is required
Consequently installing Cheetah failed as well for missing headers:
root@TS-6VHL856:/home/Downloads/libs/Cheetah-2.4.4# python setup.py install
Not using setuptools, so we cannot install the Markdown dependency
running install
error: invalid Python installation: unable to open /usr/include/python2.6/pyconfig.h (No such file or directory)
It is worth noting that this seems to be a very bare bones system with no package manager. (As far as I know)
Here is some general info I get from the command line:
root@NAS:/# uname -a
Linux NAS 2.6.31.8-atom_d510 #1 SMP Mon Apr 4 13:12:12 JST 2011 x86_64 unknown
root@NAS:/# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 28
model name : Intel(R) Atom(TM) CPU D510 @ 1.66GHz
stepping : 10
cpu MHz : 1662.521
cache size : 512 KB
How can I fix or work around this obstacle?
Cheetah compiles C extensions and in order to do this it needs Python header files. They can be obtained by issuing sudo apt-get install python-dev
or sudo yum install python-devel
on Debian and RedHat based distros. But you mentioned that your specific distro doesn't have any packaging infrastructure. In such case you can try to build Python from sources and reinstall it. Building from source will give you all the required things to build python C extensions for any other package you may want to install. If this is not feasible, for example if there is no gcc on your NAS, you can try to supply header files by copying them from Include
directory of python sources to the folder with include files on the NAS, as a rule it's /usr/include/pythonX.X
. Also you can build Cheetah on another machine with the same python version and architecture using python setup.py build
and then copy Cheetah sources together with build
directory to your NAS and issue python setup.py install
there.