Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
Hi, I'm still kind of new to linux. I'm trying to install gtk+ but it says that it does not have the requirements: checking for BASE_DEPENDENCIES... configure: error: Package requirements ...
  1. #1
    Just Joined!
    Join Date
    Aug 2006
    Posts
    18

    GTK+ requirement issues

    Hi, I'm still kind of new to linux. I'm trying to install gtk+ but it says that it does not have the requirements:

    checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2 .0 >= 2.12.0 atk >= 1.9.0 pango >= 1.12.0 cairo >= 1.2.0) were not met.
    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.

    I have the latest versions of glib, atk, pango and cairo that I built myself from the source. How can I build it so that gtk+ knows where it is?

  2. #2
    Just Joined!
    Join Date
    Jan 2006
    Posts
    71
    you need to set the environment variable: PKG_CONFIG_PATH

    prompt% PKG_CONFIG_PATH=<the_path_to_where_you_installed_t hose_files>

  3. #3
    Just Joined!
    Join Date
    Aug 2006
    Posts
    18
    Ok, that makes sense. Though after I changed it, I started to get this error message:

    checking how to run the C preprocessor... /lib/cpp
    configure: error: C preprocessor "/lib/cpp" fails sanity check

    When I checked the config log, It says this:

    Syntax error
    configure:4191: result: /lib/cpp
    configure:4215: /lib/cpp conftest.c
    In file included from /usr/include/bits/posix1_lim.h:130,
    from /usr/include/limits.h:144,
    from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:122,
    from /usr/lib/gcc-lib/i486-linux/3.3.5/include/syslimits.h:7,
    from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:11,
    from conftest.c:13:
    /usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
    configure:4221: $? = 1
    configure: failed program was:
    | /* confdefs.h. */

    I am getting this error for everything I try to configure. When I randomly try to make or make install something, I get:

    In file included from /usr/include/bits/posix1_lim.h:130,
    from /usr/include/limits.h:144,
    from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:122,
    from /usr/lib/gcc-lib/i486-linux/3.3.5/include/syslimits.h:7,
    from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:11,
    from ../../glibconfig.h:11,
    from localcharset.c:26:
    /usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
    make[4]: *** [localcharset.lo] Error 1




    I have no idea what to say to this, is this a bug, or... I have no idea...

  4. #4
    Just Joined!
    Join Date
    Jan 2006
    Posts
    71
    By default, mine isn't set to anything. Try setting it back to nothing. See if that fixes your other problems. If not a reboot might do the trick.

  5. #5
    Just Joined!
    Join Date
    Aug 2006
    Posts
    18
    Neither worked, I keep getting the same error messages.

  6. #6
    Just Joined!
    Join Date
    May 2006
    Posts
    19
    okay,

    this was my way to solve the package requirements problem you had. It worked for me but you seem to have other problems. But it might be worth a shot...
    here’s the rundown of what I did:


    install everything into opt/gtk (see command below) in this order:
    glib, cairo, pango, atk, gtk

    the commands to do each are exactly the same:
    ./configure –prefix=/opt/gtk (<- that's a dash-dash before 'prefix')
    make
    make install

    also before you do configure for gtk you’ll want the following pasted into your .bashrc file (just type ‘gedit .bashrc’ in the top level of your command prompt):

    CPPFLAGS=”-I/opt/gtk/include”
    LDFLAGS=”-L/opt/gtk/lib”
    PKG_CONFIG_PATH=”/opt/gtk/lib/pkgconfig”
    export CPPFLAGS LDFLAGS PKG_CONFIG_PATH

    LD_LIBRARY_PATH=/opt/gtk/lib:$LD_LIBRARY_PATH
    PATH=/opt/gtk/bin:$PATH
    export LD_LIBRARY_PATH PATH





    >>>as a side note I ran into an error when trying to configure GTK that went like this:

    checking Pango flags... configure: error:
    *** Pango not found. Pango built with Cairo support is required
    *** to build GTK+. See PangoWebsite for Pango information.

    It ended up pango wasn't made properly because my version of cairo was too old. If you look in the pango config.log file and search for ‘cairo’ you’ll see some line where it checks to see if cairo is >=1.X.X.

    Just install cairo equal or higher and then install pango again.

  7. #7
    Just Joined!
    Join Date
    Aug 2006
    Posts
    18
    Thank you for responding, as for the question about it configureing anything, I have that sorted out.

    I now reach a small problem, when I started configureing for atk I got this error message:

    configure: error:
    *** GLIB 2.5.7 or better is required. The latest version of
    *** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
    *** but not in the same location as pkg-config add the location of the file
    *** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.

    And I so far have been doing this in your order, and with your ./configure command.

    I have tried to change the PKG_CONFIG_PATH to opt/gtk but that has not changed the error message...

    Also, the version of glib is 2.12.3 so at least that is correct...

  8. #8
    Just Joined!
    Join Date
    May 2006
    Posts
    19
    Hi,

    I ran into something like that before, early on. I had found someone else solved this with:

    ./configure –prefix=/usr
    make
    make install

    for Glib.

    http://www.linuxforums.org/forum/ins...ting-glib.html

    For the record, I just want to say I don't really know much about linux. I'm just trying things and seeing what works. I'm just learning as I go. But from some recent experience with failed dependencies I'm wondering if it wouldn't be better to just install everything in /usr? The program I'm trying to install isn't finding a few libraries from pango and cairo. So I'm wondering if /opt is too obscure a location to install in?

  9. #9
    Just Joined!
    Join Date
    Aug 2006
    Posts
    18
    please let this message go through

  10. #10
    Just Joined!
    Join Date
    Aug 2006
    Posts
    18
    for some reason, i had alot of trouble posting this, here's to hoping this goes through...

    OH crap... I broke something... running ./configure to anythng yields:

    checking for C compiler default output file name... configure: error: C compiler cannot create executables

    and config.log says:

Page 1 of 2 1 2 LastLast

Posting Permissions

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