• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2167
  • Last Modified:

gtk-config command not found

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
0
jibranilyas
Asked:
jibranilyas
  • 3
  • 3
  • 2
1 Solution
 
jibranilyasAuthor Commented:
if someone wants to give me a link or explain the ./configure process, it will be much appreciated.
0
 
nedvisCommented:
..."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:    
     /usr/sbin/gtk-config
folder
open your console ( terminal ) window and define the path environment variable by adding
/usr/sbin
in your path variable following this instruction :
http://www.faqts.com/knowledge_base/view.phtml/aid/26752 
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
nedvis
0
 
nedvisCommented:
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
or
      sudo apt-get install gcc-3.4


nedvis
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
jack_p50Commented:
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)
0
 
jibranilyasAuthor Commented:
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.
0
 
jack_p50Commented:
congratulations! you should probably award points to nedvis
0
 
jack_p50Commented:
oh, you've already done it, sorry :)
0
 
jibranilyasAuthor Commented:
^ :D
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now