You'll want to use your root account for this, or there'll be a lot of "sudo"ing. :X
Grab
http://codingwithcody.com/downloads/pyt ... install.sh and run "sh install.sh" to install python2.7. This will overwrite the default python, temporarily breaking your system. Don't worry, just run these commands to fix it:
- Code: Select all
ln -sf /usr/bin/python2.4 /usr/bin/python
ln -sf /opt/python2.7.1/lib/libpython2.7.so /usr/lib/libpython2.7.so
ln -sf /opt/python2.7.1/lib/libpython2.7.so.1.0 /usr/lib/libpython2.7.so.1.0
Download the 2.7 egg for
setuptools and run "sh setuptools-0.6c11-py2.7.egg --prefix=/opt/python2.7.1" to install setuptools (which includes easy_install).
run "python2.7 -m easy_install cython pil jinja2 pygeoip mercurial twisted" then "ln -s /opt/python2.7.1/bin/hg /usr/local/bin/hg". If you don't already have screen, run "yum install screen". Run "yum install gcc-c++".
You don't need to be root from now on. In fact, I recommend you don't run pyspades as root.
Run "hg clone
https://code.google.com/p/pyspades" wherever you want pyspades to be installed.
cd to the newly-created pyspades directory.
Run:
- Code: Select all
python2.7 build.py build_ext --inplace
cd enet
python2.7 setup.py build_ext --inplace
And you're done! Set up your config how you like it, cd to feature_server, run "screen -S pyspades python2.7 run.py" to run it. Use ctrl-a d to exit screen and "screen -r pyspades" to re-enter it.