gtk-config command not found

Posted on 2006-04-27
Last Modified: 2013-11-18
I am trying to install cheaps on ubuntu... i have reached a dead end on the following error, please help.
i had to install gcc for ubuntu to fight previous errors. Here is the log.

user1@localhost:/home/user1/cheops-0.61# ./configure
loading cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for fcntl.h... yes
checking for sys/ioctl.h... yes
checking for sys/time.h... yes
checking for unistd.h... yes
checking for working const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for ucd-snmp... no.  -- snmp disabled
checking for gtk... ./configure: line 1309: gtk-config: command not found
configure: error: Check that gtk-config is in path
Question by:jibranilyas

    Author Comment

    if someone wants to give me a link or explain the ./configure process, it will be much appreciated.
    LVL 20

    Accepted Solution

    ..."explain the ./configure process"...
    ./configure has nothing to do with your problem so the explanation of the ./configure innards wont help here.
    The last line in your error message :
    configure: error: Check that gtk-config is in path
    is actually tyhe critical point!!!

    So make sure to include the  full PATH to the gtk-configure in your environment variable(s) !

    I'm not currently on Ubuntu box and I cant tell you exactly where to look for gtk-config file,  so I cannot give you  right answer, but if your gtk-configure ( executable) file is located , for instance, in:    
    open your console ( terminal ) window and define the path environment variable by adding
    in your path variable following this instruction :
    You may have to run locate or slocate command to find where is the gtk-configure  file located within your
    Ubuntu installation to give gcc installer right direction (path).
    good luck
    LVL 20

    Expert Comment

    BTW , you cannot install gcc as a regular user ( in your case: user1 ) ; you have to install it with superuser ot root privilegies.
    So try this comand to install gcc on your Ubuntu PC :
          sudo apt-get install gcc
          sudo apt-get install gcc-3.4

    LVL 4

    Expert Comment

    maybe you just don't have gtk-config?
    it's part of the GTK library version 1.x (GTK 2.* doesn't have or need gtk-config, but programs written for GTK 1.* can't compile on GTK 2.* alone)

    Author Comment

    nedvis and jack, i had gcc
    atlast, i ran the following command to build the dependencies
    'apt-get build-dep gcc'

    after that, i was able to install my software.

    thanks for the assistance.
    LVL 4

    Expert Comment

    congratulations! you should probably award points to nedvis
    LVL 4

    Expert Comment

    oh, you've already done it, sorry :)

    Author Comment

    ^ :D

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: CSS Specialist

    We don’t have to sell you on the idea of becoming a developer. If you’re you here, you already know it’s one of the most lucrative (and fastest growing) career tracks out there. It’s CSS that allows you to set yourself apart from other web and mobile developers.

    Suggested Solutions

    Shoutout to Emily Plummer ( for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
    Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
    The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now