| FAQ Index - Search - Recent Changes - Everything - Add entry |
1.14. How do I compile pygtk or gnome-python from SVN?
You need the GTK+ 2.x libraries, as you'd expect (see FAQ 21.2). There are three packages you want to build:
- gnome-python/pygtk
- gnome-python/pyorbit
- gnome-python/gnome-python
You should run
./autogen.sh make make installin each of these, in that order. If you want to build from SVN, you might want to look at a build script. James recommends jhbuild (also in GNOME svn).
If you want to install them to a separate prefix, eg if you don't have write access to /usr/local, use --prefix as an argument to autogen.sh or configure, eg:
./configure --prefix /home/user/prefixAnd then, don't forget to set PYTHONPATH before running the program, eg:
export PYTHONPATH=/home/user/prefix/lib/python2.3/site-packagesThen you can finally run your program.
For additional information on how to use configure, see the INSTALL file which is included in the source tarball or subversion.
