LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  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):

[1]

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 :

/usr/local/lib

and

/usr/X11R6/lib

to the LD_LIBRARY_PATH but no good.

[2]

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 =
.:/home/rpan/bin:/home/rpan/EMAN/bin:/usr/lib/qt3/bin:/usr/local/bin
:/usr/bin:/usr/sbin:/sbin:/bin:/usr/bin/X11:/usr/local:/home/rpan/pydb
:/usr/java/j2sdk1.4.2_04/bin/:/usr/lib/gtk-2.0:/usr/lib/gtk-2.0/2.2.0
:/usr/lib/gtk-2.0/2.2.0/engines:/usr/local/include/gtk-1.2:/usr/lib/gtk

and $LD_LIBRARY_PATH is
/home/rpan/EMAN/lib:/usr/lib/qt3/lib:/usr/local/lib:/usr/lib/gtk-2.0
:/usr/lib/gtk-2.0/2.2.0/engines:/usr/local/lib:/usr/X11R6/lib


Thx in advance.

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

Rep: Reputation: 171Reputation: 171
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.
 
  


Reply


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


All times are GMT -5. The time now is 07:21 PM.

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