Cannot find GTK


Page 1 of 2 12 LastLast
Results 1 to 15 of 22

Thread: Cannot find GTK

  1. #1
    Join Date
    Apr 2005
    Posts
    19

    Cannot find GTK

    checking for GTK - version >= 1.2.0... no
    *** The gtk-config script installed by GTK could not be found
    *** If GTK was installed in PREFIX, make sure PREFIX/bin is in
    *** your path, or set the GTK_CONFIG environment variable to the
    *** full path to gtk-config.
    configure: error: Cannot find GTK: Is gtk-config in path?

    The error above appears when trying to install a program.
    GTK-2.0 is installed /usr/lib/gtk-2.0.
    I do not know anything about PREFIX/bin or path.

    How do is solve this problem?

    dlw

  2. #2
    Join Date
    Nov 2000
    Location
    seabeck,wa,usa
    Posts
    782
    You may have to install the developmental headers for GTK to compile GTK apps. What distro etc are you using? If it is RPM based, (mandrake/mandriva, redhat/fedora etc) you have to install gtk-dev rpms.
    No Sig

  3. #3
    Join Date
    Apr 2005
    Posts
    19
    Mandriva 2005 LE (MDK-10.2)
    I did urpmi gtk-devel and it installed several python files.

    Looked in package manager. There are a lot of files starting with gtk.
    No gtk-devel though.

    Tried to ./configure the program.
    Get the same error.

    dlw

  4. #4
    Join Date
    Apr 2005
    Posts
    19
    [root@192 don]# urpmi gtk-1.2
    no package named gtk-1.2
    The following packages contain gtk-1.2:
    aiksaurusgtk
    guile-gtk-1.2
    libaiksaurusgtk-1.2_0
    libaiksaurusgtk-1.2_0-devel
    libguile-gtk-1.2_0
    ocaml-lablgtk
    [root@192 don]#

    There is not gtk-1.2

  5. #5
    Join Date
    Nov 2000
    Location
    seabeck,wa,usa
    Posts
    782
    checking for GTK - version >= 1.2.0... no
    This is checking for GTK version (greater than or equal to) 1.2.0
    You may have to log off and log back in for the GTK_CONFIG enviroment var to be set, or source your profile.
    What are you trying to compile?
    No Sig

  6. #6
    Join Date
    Apr 2005
    Posts
    19
    Stockman-0.1

    I've shut down several times over the past week. since I began trying to install this.

  7. #7
    Join Date
    Nov 2000
    Location
    seabeck,wa,usa
    Posts
    782
    if this is a stock manager for pulling info from yahoo, (homepage http://www.nathanr.net/programming/stockman/ ) then you might read that the author says
    I'm now using Mac OS X, so the implementation is in Objective-C with the Cocoa API. There is a possibility of an X Window / X11 / XFree86 / whatever you want to call it port for other UNIXs (including Linux), but that would come much later.

    It is still very much under development, and is only useful to those who wish to help me program it, and have access to Mac OS X.
    No Sig

  8. #8
    Join Date
    Apr 2005
    Posts
    19
    Ain't this the ****.
    The page at sourceforge doesn't mention that.
    http://libstocks.sourceforge.net/
    http://stockman.sourceforge.net/download.html
    http://stockman.sourceforge.net/

    It's not in the package either.
    Are we looking at the same libstocks
    dlw

  9. #9
    Join Date
    Nov 2000
    Location
    seabeck,wa,usa
    Posts
    782
    what do you get from a (command line)
    Code:
    rpm -qa |grep gtk
    ?
    Is there really a gtk-devel? Give all output if possible please.
    No Sig

  10. #10
    Join Date
    Jan 2003
    Posts
    979
    in addition to the above, do you have gtk-config anywhere in your computer? (su, updatedb, locate gtk-config)
    -------------------------

    1.7 Ghz Pentium IV
    128MB RD-RAM
    40GB 5400 RPM HDD
    Creative Live! Sound Card
    Geforce 4 Ti4400 gfx card

  11. #11
    Join Date
    Apr 2005
    Posts
    19
    [don@192 ~]$ rpm -qa | grep gtk
    gtk+2.0-2.6.4-2mdk
    guile-gtk-1.2-0.31-9mdk
    python-gtk-0.6.11-8mdk
    libgtkhtml1.1_3-1.1.10-6mdk
    libwxgtk2.5_3-2.5.3-6mdk
    libgtk-linux-fb-2.0_0-2.4.14-3mdk
    libgtk+-x11-2.0_0-2.6.4-2mdk
    gtkdialogs-2.1-1mdk
    libguile-gtk-1.2_0-0.31-9mdk
    gtkcalc-1.0-1
    pygtk2.0-wrapper-2.4.1-4mdk
    gtk-engines-0.12-9mdk
    libgtk+2.0_0-2.6.4-2mdk
    libgtk+1.2-1.2.10-41mdk
    libgtkhtml2_0-2.6.3-1mdk
    python-gtk-devel-0.6.11-8mdk
    [don@192 ~]$

    [root@192 don]# locate gtk-config
    /home/don/software/gtk+-1.2.10/gtk-config.in
    /home/don/software/gtk+-1.2.10/docs/gtk-config.1.in
    /home/don/software/gtk+-1.2.10/docs/gtk-config.txt
    /home/don/software/gtk+-1.2.10/docs/gtk-config.1
    /home/don/software/gtk+-1.2.10/gtk-config
    /usr/local/bin/gtk-config
    /usr/local/man/man1/gtk-config.1
    [root@192 don]#

    I installed gtk-1.2 last night.
    ./configure gets past the gtk-config error.
    Now, it's
    checking for gtk-config... /usr/local/bin/gtk-config
    checking for GTK - version >= 1.2.0... yes
    checking for sqlite_open in -lsqlite... no
    configure: error: *** ERROR: SQLITE NOT FOUND
    [don@192 stockman-0.1]$

    I installed sqlite days ago.
    [root@192 don]# locate sqlite
    /home/don/.kde/share/apps/RecentDocuments/sqlite-2.8.16.so.gz.desktop
    /home/don/software/stockman-0.1/sqlite3-3.2.1.bin
    /home/don/software/sqlite-tools-2.8.6-1mdk.i586.rpm
    /home/don/software/sqlite3-3.2.1.bin.gz
    /home/don/software/sqlite3-3.2.1.bin
    /home/don/software/sqlite-2.8.16.so.gz
    /home/don/software/sqlite-2.8.16.so
    /usr/bin/sqlite3-3.2.1.bin
    /usr/local/bin/sqlite3-3.2.1.bin
    [root@192 don]#

    I put sqlite3-3.2.1.bin in /usr/bin and /usr/local/bin trying to get it to work.
    As you can see that didn't work.

    dlw
    Last edited by dlw; 07-11-2005 at 10:05 AM.

  12. #12
    Join Date
    Aug 2002
    Location
    Delaware
    Posts
    4,285
    you need to add /home/don/software/ to the library path...

    -I/home/don/software/ on a gcc command.. So hack the makefile to look there as well. (I'd probably just go the simple route and change the line that says CC=gcc to CC=gcc -I/home/don/software/
    irc.freenode.net #justlinux The Not So Official JL IRC Channel.
    ¤ Debian ¤ Apt-Get ¤

  13. #13
    Join Date
    Apr 2005
    Posts
    19
    Is this what you mean?

    ./configure -I/home/don/software/

    If so, wouldn't it be best to move the sqlite files
    to a folder in /usr/local?

    There are two Makefiles: Makefile.in, Makefile.am.
    No Makefile.

    dlw
    Last edited by dlw; 07-11-2005 at 11:09 AM.

  14. #14
    Join Date
    Nov 2000
    Location
    seabeck,wa,usa
    Posts
    782
    Mandrake (mandriva) 10.2 offers libgtk+1.2-devel-1.2.10-41mdk.i586.rpm and libgtk+2.0_0-devel-2.6.4-2mdk.i586.rpm for the developmental headers for both versions of GTK. I would install those. Then refer to the instruction from the website:
    To get started with StockMan, you will need two additional libraries:

    SQLite a nice sql database library
    libstocks a library that downloads stock information from the net
    And finaly, download StockMan.

    First, install SQLite and libstocks. It doesn't matter what order you install them, and If you build from source, they can both be built like so:
    # cd /path/to/source/
    # ./configure
    # make
    # make install
    Now, follow the same process to install StockMan.
    Mandrake offers sqlite devel (as libsqlite0-2.8.16-1mdk.i586.rpm or libsqlite3_0-devel-3.0.8-1mdk.i586.rpm) So... you can urpmi the libsqlite-devels and the libgtk-devels and compile your own libstock (from http://libstocks.sourceforge.net/) and finally compile stockman.
    Unless you really understand what you are doing, I wouldn't fool around with makefiles and such.
    Last edited by endoalpha; 07-11-2005 at 02:43 PM.
    No Sig

  15. #15
    Join Date
    Nov 2000
    Location
    seabeck,wa,usa
    Posts
    782
    As an added sidenote, I wouldn't expect stockman to work because there have been no releases since feb of 2003 and I would imagine yahoo has since changed the structure of pulling stock quotes.
    No Sig

Posting Permissions

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