LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices



Reply
 
Search this Thread
Old 07-04-2011, 10:56 PM   #1
Alpo
Member
 
Registered: Jul 2011
Location: US and A.
Distribution: RHEL 6.1 & Ubuntu 10.04
Posts: 50

Rep: Reputation: Disabled
Wireshark compile error in RHEL 6.1


Fellow Penguin Lovers,

When compiling Wireshark 1.6.0, I get the following error: "configure:19488: error: GTK+ 2.4 or later isn't available, so Wireshark can't be compile." You may be asking why I'm doing this when RPMs are available. Welp, the RPM version of Wireshark flooded by WiFi connection requiring me to disconnect and then reconnect every time I ran Wireshark. No longer, I say!

Important points regarding the error:
1) GTK+ 2.18.9 is installed (gtk2-2.18.9-6.el6.x86_64.rpm)
2) GTK+ 2.18-devel is installed (gtk2-devel-2.18.9-6.el6.x86_64.rpm)
3) The above were downloaded and installed from the RHEL customer portal
4) My brain hurts

Please advise on why I'm getting this error when a newer version of GTK+ is installed and how I can fix it.


Thanks,

Alpo


---
Red Hat Enterprise Linux 6.1 64-bit
Intel i7 QuadCore
750GB Hard Drive
6GB SDRAM

Last edited by Alpo; 07-04-2011 at 11:16 PM.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 07-04-2011, 11:08 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,753
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
It is likely the configure script is looking for the file gtk+-2.0.pc. This should be installed by the gtk2 devel package. You need to make sure your PKG_CONFIG_PATH includes the directory containing gtk+-2.0.pc. There are default paths pkg-config looks in and, typically, gtk+-2.0.pc would be installed in one of those. On the other hand, maybe you don't have pkgconfig installed on your machine.
 
1 members found this post helpful.
Old 07-04-2011, 11:15 PM   #3
Alpo
Member
 
Registered: Jul 2011
Location: US and A.
Distribution: RHEL 6.1 & Ubuntu 10.04
Posts: 50

Original Poster
Rep: Reputation: Disabled
weibullguy,

Thanks for the reply. Pkgconfig is also installed (pkgconfig-0.23-9.1.el6.x86_64.rpm). I did a search for gtk+-2.0.pc and nothing turned up. Which file contains the PKG_CONFIG_PATH variable, and what is the default path for gtk+-2.0.pc?



Cheers,

Alpo
 
Old 07-04-2011, 11:31 PM   #4
Alpo
Member
 
Registered: Jul 2011
Location: US and A.
Distribution: RHEL 6.1 & Ubuntu 10.04
Posts: 50

Original Poster
Rep: Reputation: Disabled
weibullguy,

I found gtk+-2.0.pc in /usr/lib64/pkgconfig. Where/How do I edit PKG_CONFIG_PATH?
 
Old 07-04-2011, 11:52 PM   #5
Alpo
Member
 
Registered: Jul 2011
Location: US and A.
Distribution: RHEL 6.1 & Ubuntu 10.04
Posts: 50

Original Poster
Rep: Reputation: Disabled
weibullguy,

If I do an "export PKG_CONFIG_PATH=/usr/lib64/pkgconfig/" command, is that going to screw up the variable for future use?
 
Old 07-05-2011, 08:18 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,273

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
Quote:
If I do an "export PKG_CONFIG_PATH=/usr/lib64/pkgconfig/" command, ...
The export command is temporary : Works only until you exit the terminal.


( I would use this one :
export PKG_CONFIG_LIBDIR=/usr/lib64/pkgconfig )

..

Last edited by knudfl; 07-05-2011 at 08:21 AM.
 
1 members found this post helpful.
Old 07-05-2011, 08:29 AM   #7
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,753
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
Quote:
Originally Posted by knudfl View Post
( I would use this one :
export PKG_CONFIG_LIBDIR=/usr/lib64/pkgconfig )..
I wouldn't. This replaces the default search path, PKG_CONFIG_PATH adds additional directories that will be searched before the defaults. Overriding the defaults may fix the current problem, but it may cause others when building wireshark.
 
2 members found this post helpful.
Old 07-05-2011, 09:27 AM   #8
Alpo
Member
 
Registered: Jul 2011
Location: US and A.
Distribution: RHEL 6.1 & Ubuntu 10.04
Posts: 50

Original Poster
Rep: Reputation: Disabled
Dudes,

I did the export command and the installation was a success. How can I permanently add the /usr/lib64/pkgconfig to the PKG_CONFIG_PATH variable?
 
Old 07-05-2011, 10:07 AM   #9
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,753
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
The easiest way is to add it to your ~/.bashrc or ~/.bash_profile file. Just add exactly what you typed in the CLI to one of those files. No need to be root because you shouldn't be configuring and compiling as root anyway.
 
1 members found this post helpful.
Old 07-05-2011, 05:39 PM   #10
Alpo
Member
 
Registered: Jul 2011
Location: US and A.
Distribution: RHEL 6.1 & Ubuntu 10.04
Posts: 50

Original Poster
Rep: Reputation: Disabled
weibullguy,

What are the downsides of configuring/compiling as root?
 
Old 07-05-2011, 11:39 PM   #11
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,753
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
Borking your entire system. That's the downside of doing ANYTHING you don't understand as root. Unless you do a line by line review of the configure script, the Makefile, and the source code to make sure it won't do something nasty, then you really don't understand. The only thing you have to do as root is install system-wide. Of course, you can always install in your $HOME directory and then you don't need to be root even for that.
 
1 members found this post helpful.
Old 07-06-2011, 08:38 PM   #12
Alpo
Member
 
Registered: Jul 2011
Location: US and A.
Distribution: RHEL 6.1 & Ubuntu 10.04
Posts: 50

Original Poster
Rep: Reputation: Disabled
As long as I'm logged into another account and just using the "su" command, will I be ok?
 
Old 08-01-2011, 09:52 AM   #13
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,753
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
Sorry, didn't see that you had posted again.

No, you won't be OK "just" using the su command (assuming you are su-ing to the root account).
 
  


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
Getting an error before running wireshark on a linux server ravori Linux - Server 1 01-25-2011 09:52 AM
library dependency error when starting wireshark/tcpdump danielle Linux - Newbie 5 01-07-2011 06:09 AM
Help - Error while installing Wireshark orached Linux - Newbie 3 01-05-2011 02:00 AM
[SOLVED] compile a new kernel in RHEL 5 vikas027 Linux - Enterprise 9 10-11-2008 03:27 PM
Downloaded Wireshark source code and while make rpm got this error, kindly help pkhera_2001 Linux - Newbie 1 03-20-2008 09:09 AM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration