sick, qira works on mac

This commit is contained in:
George Hotz 2014-09-07 01:39:40 -04:00
parent f4181412f6
commit 119906ede4
2 changed files with 21 additions and 17 deletions

View File

@ -3,24 +3,27 @@
# default is just pip, but on things like arch where python 3 is default, it's pip2
PIP="pip"
# we need pip to install python stuff
# build for building qiradb and stuff for flask like gevent
if [ $(which apt-get) ]; then
echo "installing apt packages"
sudo apt-get install build-essential python-dev python-pip debootstrap libjpeg-dev zlib1g-dev unzip
elif [ $(which pacman) ]; then
echo "installing pip"
sudo pacman -S base-devel python2-pip
PIP="pip2"
elif [ $(which yum) ]; then
sudo yum install python-pip python-devel gcc gcc-c++
fi
unamestr=$(uname)
if [[ "$unamestr" == 'Linux' ]]; then
# we need pip to install python stuff
# build for building qiradb and stuff for flask like gevent
if [ $(which apt-get) ]; then
echo "installing apt packages"
sudo apt-get install build-essential python-dev python-pip debootstrap libjpeg-dev zlib1g-dev unzip
elif [ $(which pacman) ]; then
echo "installing pip"
sudo pacman -S base-devel python2-pip
PIP="pip2"
elif [ $(which yum) ]; then
sudo yum install python-pip python-devel gcc gcc-c++
fi
if [ $(qemu/qira-i386 > /dev/null; echo $?) == 1 ]; then
echo "QIRA QEMU appears to run okay"
else
echo "building QEMU"
./qemu_build.sh
if [ $(qemu/qira-i386 > /dev/null; echo $?) == 1 ]; then
echo "QIRA QEMU appears to run okay"
else
echo "building QEMU"
./qemu_build.sh
fi
fi
echo "installing pip packages"

View File

@ -23,6 +23,7 @@ elif [[ "$unamestr" == 'Darwin' ]]; then
ln -s pin-2.14-67254-clang.5.1-mac pin-latest
fi
# install capstone from dmg @ http://www.capstone-engine.org/download.html
fi