mirror of
https://github.com/geohot/qira
synced 2025-03-13 18:43:19 +03:00
sick, qira works on mac
This commit is contained in:
parent
f4181412f6
commit
119906ede4
37
install.sh
37
install.sh
@ -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"
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user