Re: can't install gtk2.0 on solaris 2.8



> OK... Now go back and re-check your glib installation, and find out why
> only glib.h got installed.

I re-installed glib.
 
> Also, you might want to see if glib-config works - I would have expected
> that to add some flags:
> 
> > configure:10016: checking for GLIB - version >= 2.0.0
> > configure:10161: result: no
> 
> That's suspicious - why did it say no?
> 
> configure:10197: /usr/local/gnu/bin/gcc -o conftest -g -O2 -Wall
> conftest.c   >&5
> 
> to see a -I/usr/local/include flag in there (and possibly -L/usr/local/lib
> as well).

I get the error message:
[...]
checking for pkg-config... /export/home/jaume/build/bin/pkg-config
checking for GLIB - version >= 2.0.0... 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:
*** Glib 2.0.0 or better is required. The latest version of
*** Glib is always available from ftp://ftp.gtk.org/.

I found in config.log:

configure:10161: result: no
configure:10198: /usr/local/gnu/bin/gcc -o conftest -g -O2 -Wall
-I/export/home/jaume/build/include/glib-2.0
-I/export/home/jaume/build/lib/glib-2.0/include     conftest.c
-L/export/home/jaume/build/lib -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
>&5
configure:10193: parse error before `/'
configure:10201: $? = 1
configure: failed program was:
#line 10175 "configure"
#include "confdefs.h"

#include <glib.h>
#include <stdio.h>

#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
 return ((glib_major_version) || (glib_minor_version) ||
(glib_micro_version));
  ;
  return 0;
}
/usr/local/gnu/bin/gcc -o conftest -g -O2 -Wall conftest.c   >&5
configure:10236: error:
*** Glib 2.0.0 or better is required. The latest version of
*** Glib is always available from ftp://ftp.gtk.org/.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]