Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-10-2004, 12:37 PM   #1
Runsun Pan
LQ Newbie
Registered: Sep 2004
Distribution: Mandrake
Posts: 1

Rep: Reputation: 0
wxGTK/GTK installation

Hi all,

I tried to install wxGTK-2.4.2. The first step was:

./configure --with-gtk --enable-gtk2 --enable-unicode

but it returned an error:

-----[ error msg starts ]----
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
Please check that gtk-config is in path, the directory
where GTK+ libraries are installed (returned by
'gtk-config --libs' command) is in LD_LIBRARY_PATH or
equivalent variable and GTK+ is version 1.2.3 or above.
-----[ error msg ends ]----

What I did to try to resolve this problem (don't laugh, I am an extreme newbie):


gtk-config --libs

This returns:

-L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXext -lX11 -lm

then I added :




to the LD_LIBRARY_PATH but no good.


Trying to install GTK+:

Download gtk+2.0-2.2.4-9mdk.i586.rpm and "rpm -i" it.

It said:

"package gtk+2.0-2.2.4-9mdk is already installed"

What's wrong and what can I do to solve this?

BTW, I'm using Mandrake 10.0 and $PATH =


Thx in advance.

Old 09-10-2004, 03:34 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You need to install 'libgtk+2.0-devel' package (or something with a very similar name, with 'gtk+' and 'devel'). The thing is that gtk+ package is the right one when you just run programs using it. If you want to compile a program using it, you need some extra files which are in the corresponding devel package. If that's the first program you're compiling from source, you may need to install more devels.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
wxGTK-6.2 installation mohtasham1983 Linux - Software 4 11-17-2005 10:38 PM
problem with GTK during installation of wxGTK spariggio82 Linux - Software 1 04-01-2005 02:42 PM
wxGTK, GTK (need guidance starting out) servnov Programming 1 09-07-2004 07:49 PM
GTK installation miskiw Linux - Software 2 04-24-2004 10:26 AM
lMule wxGTK and wxGTK-devel Caveman Linux - Software 3 10-15-2003 11:38 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:50 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration