How to install wxPython 2.9.4 on Fedora

Install the dependencies

sudo yum install make automake gcc gcc-c++ kernel-devel gtk2-devel gtkglext-devel gstreamer-plugins-base-devel python-devel webkitgtk

Download the source

tar xvjf wxPython-src-

Download and apply the wxPython patch
patch -p 0 -d wxPython-src- < wxPython-src-

Configure and Build wxWidgets

cd ~/wxPython-src-
../configure --prefix=/usr/local

Build wxPython

sudo python --build_dir=../bld --wxpy_installdir=/usr --installdir=/usr

Set your PYTHONPATH variable to ~/wxPython-src-
Set your LD_LIBRARY_PATH to ~/wxPython-src-

Note: This setup has been tested to work on Fedora 17.

Leave a Reply

Your email address will not be published. Required fields are marked *