Do not use sudo for the setup.sh since this sets up the submodule files to be owned by root

Fixes pwndbg/pwndbg#106
pull/109/head
Zach Riggle 9 years ago
parent c443b466b2
commit 7bdec11e6d

@ -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`.

@ -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

Loading…
Cancel
Save