From 7bdec11e6d7bcfa79f7bd238646dca31080b1ad1 Mon Sep 17 00:00:00 2001 From: Zach Riggle Date: Thu, 8 Sep 2016 14:40:25 -0700 Subject: [PATCH] Do not use sudo for the setup.sh since this sets up the submodule files to be owned by root Fixes pwndbg/pwndbg#106 --- README.md | 2 +- setup.sh | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) 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