Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    "gtk/gtk.h No such file or directory" when configuring


    I'm trying to install the extended preferences plugin for GAIM, but I am rather new and don't know what to do beyond "./configure, make, and make install." It's giving me this when i ./configure:

    Code:
    configure:3314: checking for GTK+ - version >= 2.0.0
    configure:3459: result: no
    configure:3492: gcc -o conftest  -Wall -g3    conftest.c   >&5
    conftest.c:12:21: error: gtk/gtk.h: No such file or directory
    conftest.c: In function 'main':
    conftest.c:18: error: 'gtk_major_version' undeclared (first use in this function)
    conftest.c:18: error: (Each undeclared identifier is reported only once
    conftest.c:18: error: for each function it appears in.)
    conftest.c:18: error: 'gtk_minor_version' undeclared (first use in this function)
    conftest.c:18: error: 'gtk_micro_version' undeclared (first use in this function)
    configure:3498: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
    | 
    | #define PACKAGE_NAME ""
    | #define PACKAGE_TARNAME ""
    | #define PACKAGE_VERSION ""
    | #define PACKAGE_STRING ""
    | #define PACKAGE_BUGREPORT ""
    | #define EXTPREFS_VERSION "0.5"
    | #define HAVE_GAIM 1
    | /* end confdefs.h.  */
    | 
    | #include <gtk/gtk.h>
    | #include <stdio.h>
    | 
    | int
    | main &#40;&#41;
    | &#123;
    |  return &#40;&#40;gtk_major_version&#41; || &#40;gtk_minor_version&#41; || &#40;gtk_micro_version&#41;&#41;;
    |   ;
    |   return 0;
    | &#125;
    configure&#58;3540&#58; error&#58;
    *** GTK+ 2.0 is required to build gaim-snpp; please make sure you have
    *** the GTK+ development headers installed. The latest version of GTK+ is
    *** always available at http&#58;//www.gtk.org/.
    I do have GTK, though.

    I looked around, but all I could find was a vague answer in a forum that seemed to require more prior knowledge with linux than I have.

  2. #2
    Linux Guru AlexK's Avatar
    Join Date
    Feb 2005
    Location
    Earth
    Posts
    3,379
    *** GTK+ 2.0 is required to build gaim-snpp; please make sure you have
    *** the GTK+ development headers installed. The latest version of GTK+ is
    *** always available at http://www.gtk.org/.
    it is telling you exactly what to do. I suggest you use your distro's package manager or Add remove software tool to search for gtk-devel or gtk libs and install them.
    Life is complex, it has a real part and an imaginary part.

  3. #3
    If he has Suse Linux 10.1 he has the same problem I do.
    It's in "/opt/gnome/include"

    How do I make sure compilers always look there along with the default locaiton?

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •