1.

How Do I Compile Pygtk Or Gnome-python From Svn?

Answer»

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 install

in 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/prefix

And then, don't forget to SET PYTHONPATH before running the program, eg:

export PYTHONPATH=/home/user/prefix/lib/python2.3/site-packages

Then you can finally run your program.

You need the GTK+ 2.x libraries, as you'd expect (see FAQ 21.2). There are three packages you want to build:

You should run

 ./autogen.sh
 make
 make install

in 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/prefix

And then, don't forget to set PYTHONPATH before running the program, eg:

export PYTHONPATH=/home/user/prefix/lib/python2.3/site-packages

Then you can finally run your program.



Discussion

No Comment Found