I have two installs of python on my RHEL server, one at version 2.4.x (which is the general install by RHEL, updated using
yum) and a 2.6.x version that I use for Django as well as just everyday scripting (installed from source).
I'd like to get the rsvg library working for Python 2.6.x. It is already present for Python 2.4.x, and stored here
My second python install is here
Ideally, I'd like to do this without having to do a complete reinstall of Python 2.6!
Tried to install the entire gnome-python-desktop package and got
checking for PYGTK... configure: error: Package requirements (pygtk-2.0 >= 2.4.0) were not met.
Seriously, all I want is python-rsvg. It must be possible without installing every single package in the world.
I've run this to get what I understand to be the necessary dependencies:
$ yum install pygobject2 pygobject2-devel librsvg2 librsvg2-devel pygtk2 pygtk2-devel
./configure --disable-allbindings --enable-rsvg returns with a message that the only module that will be built is
Trying to install gnome-python-desktop using the configure options provided. Running
make results in an error:
metacity.c: In function 'pymetacity_add_constants': metacity.c:955: error: 'META_CURSOR_MOVE_WINDOW' undeclared (first use in this function) metacity.c:955: error: (Each undeclared identifier is reported only once metacity.c:955: error: for each function it appears in.) metacity.c:956: error: 'META_CURSOR_RESIZE_WINDOW' undeclared (first use in this function) make: *** [metacity_la-metacity.lo] Error 1 make: Leaving directory `/tmp/gnome-python-desktop-2.13.3/metacity' make: *** [all-recursive] Error 1 make: Leaving directory `/tmp/gnome-python-desktop-2.13.3' make: *** [all] Error 2
configure on pygobject 2.26.0 (latest stable version ?):
checking for GLIB - version >= 2.22.4... no *** Could not run GLIB test program, checking why... *** The test program failed to compile or link. See the file config.log for the *** exact error that occured. This usually means GLIB is incorrectly installed. configure: error: maybe you want the pygobject-2-4 branch?
make on glib 2.26.0:
/usr/bin/msgfmt -o test.mo ./de.po; \ /bin/mkdir -p de/LC_MESSAGES; \ cp -f test.mo de/LC_MESSAGES ./de.po:15: keyword "msgctxt" unknown ./de.po:15:8: parse error /usr/bin/msgfmt: found 2 fatal errors cp: cannot stat `test.mo': No such file or directory make: *** [test.mo] Error 1 make: Leaving directory `/tmp/glib-2.26.0/gio/tests' make: *** [all-recursive] Error 1 make: Leaving directory `/tmp/glib-2.26.0/gio' make: *** [all] Error 2 make: Leaving directory `/tmp/glib-2.26.0/gio' make: *** [all-recursive] Error 1 make: Leaving directory `/tmp/glib-2.26.0' make: *** [all] Error 2
This is getting pretty frustrating! Is there any way to do this without installing everything?