Skip to content

Latest commit

 

History

History
86 lines (76 loc) · 1.99 KB

INSTALL.MD

File metadata and controls

86 lines (76 loc) · 1.99 KB

angr

Read the code of angr

1. Angr highly recommend using a python virtual environment to install and use angr.

#virtualenv

(sudo) pip install virtualenv

#virtualenvwrapper

(sudo) pip install virtualenvwrapper

2. virthalenv configure.

#add envionment variables to .bashrc

export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/workspace
source /usr/local/bin/virtualenvwrapper.sh

#source

source ~/.bashrc

3. create a python virtual environment for angr

mkvirtualenv angr

#related bash you may need

workon angr
deactivate
rmvirtualenv angr
mkproject mic
mktmpenv
lsvirtualenv
lssitepackages

4. install angr

(sudo) pip install angr-utils

5. problems you may encounter

#need libffi

wget ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz
tar -zxvf libffi-3.2.1.tar.gz 
./configure
make
sudo make install

#need glib-2.0

sudo apt-get install libglib2.0-dev

#unrecognized command line option '-std=c++11'

sudo add-apt-repository ppa:ubuntu-toolchain-r/test     
sudo apt-get update;   
sudo apt-get install gcc-4.8 g++-4.8     
sudo update-alternatives --remove-all gcc   
sudo update-alternatives --remove-all g++  
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20  
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20  
sudo update-alternatives --config gcc  
sudo update-alternatives --config g++   

#IOError: [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/angr/analyses/identifier/../example_flag_page'

```bash
1.wget https://github.com/angr/angr/raw/master/angr/analyses/example_flag_page
2.mv example_flag_page /...[analyses].
```   

#IOError: Exception: "dot" not found in path.

 sudo apt-get install graphviz