I've installed gtk/glib v 1.2.3 and can successfully compile
and link gtk apps (on my Solaris system).

When I try to compile pygtk I'm having some problems:

----------------------------------------------
waldo:~/pygtk/pygtk-0.6.1 $ which python
/sw/packages/python/current/bin/python
waldo:~/pygtk/pygtk-0.6.1 $

waldo:~/pygtk/pygtk-0.6.1 $ which gtk-config
/home/stannous/lib/bin/gtk-config

waldo:~/pygtk/pygtk-0.6.1 $ configure --prefix=/home/stannous/lib
--exec-prefix=/home/stannous/lib --with-gtk-prefix=/home/stannous/lib

creating cache ./config.cache
checking for a BSD compatible install... ././install-sh -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for python... python
checking where .py files should go...
/sw/packages/python/current/lib/python1.5/
site-packages
checking where python extensions should go...
/sw/packages/python/current/lib/py
thon1.5/site-packages
checking for python headers... found
checking definitions from Python makefile... done
checking for python module thread... yes
checking for gtk-config... /home/stannous/lib/bin
checking for GTK - version >= 1.2.1... ././configure:
/home/stannous/lib/bin: c
annot execute
././configure: /home/stannous/lib/bin: cannot execute
././configure: /home/stannous/lib/bin: cannot execute
././configure: /home/stannous/lib/bin: cannot execute
././configure: /home/stannous/lib/bin: cannot execute
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 was incorrectly
installed
*** or that you have moved GTK since it was installed. In the latter case,
you
*** may want to edit the gtk-config script: /home/stannous/lib/bin
checking for imlib-config... no
checking for IMLIB - version >= 1.8... no
*** The imlib-config script installed by IMLIB could not be found
*** If IMLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the IMLIB_CONFIG environment variable to the
*** full path to imlib-config.
updating cache ./config.cache
creating ./config.status
creating Makefile
creating generate/Makefile
creating pyglade/Makefile
waldo:~/pygtk/pygtk-0.6.1 $ which gtk-config
/home/stannous/lib/bin/gtk-config
waldo:~/pygtk/pygtk-0.6.1 $
--------------------------------------

config.log shows the following:

--------------
configure:1166: gcc.98r1-v0 -o conftest     conftest.c   1>&5
configure:1158: gtk/gtk.h: No such file or directory
configure: failed program was:
#line 1156 "configure"
#include "confdefs.h"

#include <gtk/gtk.h>
#include <stdio.h>

int main() {
 return ((gtk_major_version) || (gtk_minor_version) ||
(gtk_micro_version));
; return 0; }
configure:1245: checking for imlib-config
configure:1280: checking for IMLIB - version >= 1.8
--------------------

Why doesn't the configure script use 'gtk-config --cflags' to
find the header file gtk/gtk.h it is missing?

So I tried adding GTK_CFLAGS = `gtk-config --cflags` to the Makefile
and now it seems to compile cleanly.  Then I
try to install the package (in a non-standard directory)
and it chokes:

------------------
waldo:~/pygtk/pygtk-0.6.1 $ make install
Making install in generate
make[1]: Entering directory `/home/stannous/pygtk/pygtk-0.6.1/generate'
make[2]: Entering directory `/home/stannous/pygtk/pygtk-0.6.1/generate'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/stannous/pygtk/pygtk-0.6.1/generate'
make[1]: Leaving directory `/home/stannous/pygtk/pygtk-0.6.1/generate'
Making install in pyglade
make[1]: Entering directory `/home/stannous/pygtk/pygtk-0.6.1/pyglade'
make[2]: Entering directory `/home/stannous/pygtk/pygtk-0.6.1/pyglade'
make[2]: Nothing to be done for `install-exec-am'.
/bin/sh ../././mkinstalldirs
+/sw/packages/python/current/lib/python1.5/site-packages/pyglade
mkdir /sw/packages/python/current/lib/python1.5/site-packages
mkdir: Failed to make directory
+"/sw/packages/python/current/lib/python1.5/site-packages"; Read-only file
+system
mkdir /sw/packages/python/current/lib/python1.5/site-packages/pyglade
mkdir: Failed to make directory
+"/sw/packages/python/current/lib/python1.5/site-packages/pyglade"; No
such file
+or directory
make[2]: *** [install-pygladePYTHON] Error 2
make[2]: Leaving directory `/home/stannous/pygtk/pygtk-0.6.1/pyglade'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/stannous/pygtk/pygtk-0.6.1/pyglade'
make: *** [install-recursive] Error 1
waldo:~/pygtk/pygtk-0.6.1 $
-------------------------------------------

I'm not sure why it is trying to install in

  "/sw/packages/python/current/lib/python1.5/site-packages"

since during the configure, I specified

  configure --prefix=/home/stannous/lib --exec-prefix=/home/stannous/lib
            --with-gtk-prefix=/home/stannous/lib

Which makes me think it shouldn't even try to install in /sw/packages...

Am I doing something wrong?

Thanks,
Sam


To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to