Click to See Complete Forum and Search --> : gnome-python installing problem


rocketpcguy
01-04-2004, 08:30 AM
i get this after a ./configure. i have gtk2-devel, gtk2-2.0.6-8, installed.

checking for pygtk-codegen-2.0... /usr/local/bin/pygtk-codegen-2.0
checking for pygtk defs... /usr/local/share/pygtk/2.0/defs
checking for pkg-config... (cached) /usr/local/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.0.6)
checking for pkg-config... (cached) /usr/local/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ 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 GTK+ is incorrectly installed.
configure: error: maybe you want the gtk-gnome-1-2 branch?




this is some of my config.log:

configure:19194: checking for pkg-config
configure:19225: result: /usr/local/bin/pkg-config
configure:19246: checking for GTK+ - version >= 2.0.0
configure:19392: result: no
configure:19426: gcc -o conftest -g -O2 conftest.c >&5
configure:19431:21: gtk/gtk.h: No such file or directory
configure: In function `main':
configure:19437: `gtk_major_version' undeclared (first use in this function)
configure:19437: (Each undeclared identifier is reported only once
configure:19437: for each function it appears in.)
configure:19437: `gtk_minor_version' undeclared (first use in this function)
configure:19437: `gtk_micro_version' undeclared (first use in this function)
configure:19429: $? = 1
configure: failed program was:
| #line 19406 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "gnome-python"
| #define PACKAGE_TARNAME "gnome-python"
| #define PACKAGE_VERSION "2.0.0"
<etc>


any ideas?

serz
01-04-2004, 09:26 AM
Try doing export PKG_CONFIG_PATH=/usr/lib and try again.

rocketpcguy
01-04-2004, 11:52 AM
thanks, but it, nor export PKG_CONFIG_PATH=/usr/local/lib, worked. this is weird, anything else i can do?
the last thing i did was removing glib 2.3 and installing glib 2.0.6

rocketpcguy
01-04-2004, 02:28 PM
here's something, if I try:

> pkg-config --cflags gtk+-2.0
it says
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found

now:

>export PKG_CONFIG_PATH=/usr/lib/pkgconfig
>pkg-config --cflags gtk+-2.0
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/Xft2 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
>pkg-config --libs gtk+-2.0
-Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0

but when i ./configure:

checking for pygtk-2.0 >= 2.0.0... Requested 'pygtk-2.0 >= 2.0.0' but version of PyGTK is 1.99.12

but if i

>export PKG_CONFIG_PATH=/usr/lib
>./configure
...
checking for pygtk-2.0 >= 2.0.0... yes
...
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link...


what do i do? is it possible to link PKG_CONFIG_PATH to two folders?

rocketpcguy
01-05-2004, 07:01 AM
cp /usr/local/lib/pkgconfig/pygtk-2.0.pc /usr/lib/pkgconfig/

made the ./configure work! But after I make, it compiles for some time and then gives me an error after a some seconds:


module.c -fPIC -DPIC -o .libs/vfs_la-vfsmodule.o
vfsmodule.c: In function `pygnome_vfs_result_check':
vfsmodule.c:185: `GNOME_VFS_ERROR_NO_MASTER_BROWSER' undeclared (first use in this function)
vfsmodule.c:185: (Each undeclared identifier is reported only once
vfsmodule.c:185: for each function it appears in.)
vfsmodule.c: In function `pygnome_vfs_exception_check':
vfsmodule.c:294: `GNOME_VFS_ERROR_NO_MASTER_BROWSER' undeclared (first use in this function)
vfsmodule.c: In function `pygvfs_read_entire_file':
vfsmodule.c:752: warning: implicit declaration of function `gnome_vfs_read_entire_file'
make[2]: *** [vfs_la-vfsmodule.lo] Error 1
make[2]: Leaving directory `/root/Temp/gnome-python-2.0.0/gnome'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Temp/gnome-python-2.0.0'
make: *** [all] Error 2
#

mempman
01-06-2004, 02:27 AM
weren't you in the chat.yahoo.com linux room the other day?

rocketpcguy
01-06-2004, 07:37 AM
huh? no, i don't chat. (??)

back to my problem, any ideas?

rocketpcguy
01-07-2004, 02:43 PM
was anyone succesful in installing gnome-pythong?

rocketpcguy
01-11-2004, 01:17 AM
anyone?