Last active
December 11, 2015 20:58
-
-
Save andrewmichaelsmith/4658614 to your computer and use it in GitHub Desktop.
Thug install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo su | |
apt-get update | |
apt-get -y upgrade | |
apt-get -q -y install scons libboost-dev libboost-doc libboost-all-dev autoconf shtool libtool python-pefile python-httplib2 mongodb python-pymongo python-pip git subversion make unzip | |
pip install cssutils | |
pip install chardet --upgrade #poss not required | |
easy_install beautifulsoup4 | |
easy_install pymongo | |
easy_install html5lib | |
easy_install httplib2 | |
easy_install zope.interface | |
#Are we 64 bit? | |
export CCFLAGS=-fPIC | |
export ARCHFLAGS='-arch x86_64' | |
cd /opt | |
git clone https://github.com/buffer/thug.git thug | |
svn checkout http://v8.googlecode.com/svn/trunk/ v8 | |
cp thug/patches/V8-patch* . | |
patch -p0 < V8-patch1.diff | |
svn checkout http://pyv8.googlecode.com/svn/trunk/ pyv8 | |
export V8_HOME=/opt/v8 | |
cd pyv8 | |
python setup.py build | |
python setup.py install | |
#verify install | |
python PyV8.py | |
cd /tmp/ | |
git clone git://git.carnivore.it/libemu.git | |
cd libemu | |
autoreconf -v -i | |
./configure --enable-python-bindings --prefix=/opt/libemu | |
make install | |
cd /opt/ | |
git clone https://github.com/buffer/pylibemu.git | |
cd pylibemu | |
sudo python setup.py install | |
cd .. | |
mkdir pefile | |
cd pefile | |
wget http://pefile.googlecode.com/files/pefile-1.2.10-114.zip | |
unzip pefile-1.2.10-114.zip | |
cd pefile-1.2.10-114 | |
python setup.py install | |
cd ../.. | |
mkdir httplib | |
cd httplib | |
wget http://httplib2.googlecode.com/files/httplib2-0.7.4.zip | |
unzip httplib2-0.7.4.zip | |
cd httplib2-0.7.4 | |
python setup.py install | |
cd ../.. | |
sh -c "echo /opt/libemu/lib > /etc/ld.so.conf.d/pylibemu.conf" | |
ldconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment