diff --git a/README.md b/README.md index 81db4c4c2..4df576ec7 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Installation is straightforward. Pwndbg is best supported on Ubuntu 14.04 with ```shell git clone https://github.com/pwndbg/pwndbg cd pwndbg -sudo ./setup.sh +./setup.sh ``` If you use any other Linux distribution, we recommend using the latest available GDB built from source. Be sure to pass `--with-python=/path/to/python` to `configure`. diff --git a/setup.sh b/setup.sh index 883a1d341..2fec779dd 100755 --- a/setup.sh +++ b/setup.sh @@ -21,13 +21,10 @@ SITE_PACKAGES=$(gdb -batch -q --nx -ex 'pi import site; print(site.getsitepackag # Install Python dependencies sudo ${PYTHON} -m pip install --target ${SITE_PACKAGES} -Ur requirements.txt -# Find the path to the Python2 interpreter needed by the Unicorn install process. -export UNICORN_QEMU_FLAGS="--python=$(which python2)" - # Install both Unicorn and Capstone for directory in capstone unicorn; do pushd $directory - sudo ./make.sh install + sudo UNICORN_QEMU_FLAGS="--python=$(which python2)" ./make.sh install cd bindings/python sudo ${PYTHON} -m pip install --target ${SITE_PACKAGES} . popd