Skip to content

Instantly share code, notes, and snippets.

@MrWinstead
Last active October 12, 2017 05:31
Show Gist options
  • Save MrWinstead/c9c6fec7278681ac2c3a434a28e61686 to your computer and use it in GitHub Desktop.
Save MrWinstead/c9c6fec7278681ac2c3a434a28e61686 to your computer and use it in GitHub Desktop.

1. Intro

This guide is designed to take a vanilla cloud fedora 24 install and create a pypy virtualenv with angr installed

2. Procedure

  1. Install Fedora-level dependencies:

# dnf -y install python-virtualenvwrapper pypy

  1. Install the virtual environment

$ mkvirtualenv -p $(which pypy) angr-pypy

  1. Install angr itself

(angr-pypy)[] $ pip install angr

  1. Fix the environment. Ensure you're "working on" the virutalenv (workon angr-pypy)

(angr-pypy)[] $ find . -name libcapstone.so -exec mv {} $VIRTUAL_ENV/site-packages/capstone/ \;

  1. Verify the installation

(angr-pypy)[] $ pypy -c "import angr"

@pesternak
Copy link

Works on Fedora 26, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment