Skip to content

Instantly share code, notes, and snippets.

@obilodeau
Last active August 29, 2015 14:19
Show Gist options
  • Save obilodeau/9006a01ba8b1cd0d7350 to your computer and use it in GitHub Desktop.
Save obilodeau/9006a01ba8b1cd0d7350 to your computer and use it in GitHub Desktop.
Linux x86_64 + anaconda python 2.7 x86 + IDA [i]python

Fancy ipython for IDA

It needed some tweaks to work which I documented here.

32 bit Python 2.7

IDA is 32 bit software and links with Python at the ABI level so Python needs to be 32 bit also. IDA installer often convince the user to use their own python provided by the installer. Because of this on a 64 bit Linux you will need to fetch a 32 bit Python. Building your own IDA-ready python looks complicated so I decided to go with the project’s advice of using Anaconda.

Anaconda

Get the Python 2.7 32 bit installer from here: http://continuum.io/downloads

Run the installer as root. Install in /opt/python2.7-x86/. I did not change my PATH. I don’t want my local python to be affected by this old and 32 bit python.

When trying to run:

/opt/python2.7-x86/bin/ipython qtconsole
/opt/python2.7-x86/bin/python: symbol lookup error: /usr/lib/i386-linux-gnu/libpangocairo-1.0.so.0: undefined symbol: cairo_ft_font_options_substitute

After trying to pull several :i386 libraries I found this: https://groups.google.com/a/continuum.io/d/msg/anaconda/R0RdG3HQONg/vgRv1IWrO68J

Lets try:

/opt/python2.7-x86/bin/conda update cairo

ipython works!

ida_ipython

Follow the basic install instructions and realize that it doesn’t work for non-Windows and stop there.

Bonus

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