Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Wrong gtk+
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
eleanor
l33t
l33t


Joined: 01 Nov 2004
Posts: 666

PostPosted: Mon Mar 04, 2013 7:14 pm    Post subject: [SOLVED] Wrong gtk+ Reply with quote

Hi, I'm trying to install wireshark, but I get the error below:

Quote:

checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.12.0 and < 3.0...
*** 'pkg-config --modversion gtk+-2.0' returned 2.24.12, but GTK+ (2.24.10)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GTK+. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error: Neither Qt nor GTK+ 2.12 or later are available, so Wireshark can't be compiled




The problem is that there are some old files from older version of gtk+ install, even though that packet version isn't installed. Take a look at this:

Quote:

[I] x11-libs/gtk+
Available versions:
(1) 1.2.10-r12
(2) 2.24.12 ~2.24.15 ~2.24.16
(3) 3.2.4-r1 3.4.4 ~3.6.2 ~3.6.3-r1 ~3.6.3-r2
{{X aqua colord cups debug egl examples +introspection linguas_az linguas_ca linguas_cs linguas_da linguas_de linguas_el linguas_es linguas_et linguas_eu linguas_fi linguas_fr linguas_ga linguas_gl linguas_hr linguas_hu linguas_it linguas_ja linguas_ko linguas_lt linguas_nl linguas_nn linguas_no linguas_pl linguas_pt linguas_pt_BR linguas_ro linguas_ru linguas_sk linguas_sl linguas_sr linguas_sv linguas_tr linguas_uk linguas_vi nls packagekit test vim-syntax wayland xinerama}}
Installed versions: 2.24.12(2)(20:03:11 03/04/13)(cups introspection -aqua -debug -examples -test -vim-syntax -xinerama) 3.4.4(3)(00:22:52 10/26/12)(X cups introspection -aqua -colord -debug -examples -packagekit -test -vim-syntax -wayland -xinerama)
Homepage: http://www.gtk.org/
Description: Gimp ToolKit +

* x11-libs/gtk+extra
Available versions: 3.0.1 {{+introspection static-libs}}
Homepage: http://gtkextra.sourceforge.net
Description: Useful Additional GTK+ widgets




Does anybody have any idea how to actually solve the problem. I guess I have to manually delete the files and reinstall glib & gtk+, but I'm not sure how exactly am I supposed to approach the program. Can anybody give me any tips?

Thank you[/code]


Last edited by eleanor on Fri Mar 08, 2013 4:33 pm; edited 1 time in total
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Mon Mar 04, 2013 11:13 pm    Post subject: Reply with quote

Code:
emerge -C gtk+ && emerge -av gtk+
revdep-rebuild

_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
eleanor
l33t
l33t


Joined: 01 Nov 2004
Posts: 666

PostPosted: Mon Mar 04, 2013 11:32 pm    Post subject: Reply with quote

Hi, I already rebuild the gtk+, but forgot about revdep. Here's the status:

Quote:

* Configuring search environment for revdep-rebuild

* Checking reverse dependencies
* Packages containing binaries and libraries broken by a package update
* will be emerged.

* Collecting system binaries and libraries
* Generated new 1_files.rr
* Collecting complete LD_LIBRARY_PATH
* Generated new 2_ldpath.rr
* Checking dynamic linking consistency
[ 89% ] * broken /usr/lib64/vmware-installer/2.1.0/lib/libconf/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-tiff.so (requires libtiff.so.3)
[ 90% ] * broken /usr/lib64/vmware-installer/2.1.0/sopython/libpy25.so (requires libpython2.5.so.1.0)
[ 91% ] * broken /usr/lib64/vmware/libconf/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-tiff.so (requires libtiff.so.3)
[ 100% ]
* Generated new 3_broken.rr
* Assigning files to packages
* !!! /usr/lib64/vmware-installer/2.1.0/lib/libconf/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-tiff.so not owned by any package is broken !!!
* /usr/lib64/vmware-installer/2.1.0/lib/libconf/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-tiff.so -> (none)
* !!! /usr/lib64/vmware-installer/2.1.0/sopython/libpy25.so not owned by any package is broken !!!
* /usr/lib64/vmware-installer/2.1.0/sopython/libpy25.so -> (none)
* !!! /usr/lib64/vmware/libconf/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-tiff.so not owned by any package is broken !!!
* /usr/lib64/vmware/libconf/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-tiff.so -> (none)
* Generated new 4_raw.rr and 4_owners.rr
* Found some broken files, but none of them were associated with known packages
* Unable to proceed with automatic repairs.
* The broken files are listed in 4_owners.rr


Is it safe to delete the conflicting files? Those are all files somehow related to vmware, so I doubt they are relevant. But the wireshark still won't merge: the same error.
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Mon Mar 04, 2013 11:37 pm    Post subject: Reply with quote

Code:
emerge gentoolkit
lafilefixer --justfixit
emerge wireshark

_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
eleanor
l33t
l33t


Joined: 01 Nov 2004
Posts: 666

PostPosted: Mon Mar 04, 2013 11:46 pm    Post subject: Reply with quote

Hi,

I'm getting the same error as above, so nothing is fixed, yet.

Any more ideas?
Back to top
View user's profile Send private message
Navar
Guru
Guru


Joined: 20 Aug 2012
Posts: 353

PostPosted: Tue Mar 05, 2013 12:20 am    Post subject: Reply with quote

eleanor wrote:

* !!! /usr/lib64/vmware-installer/2.1.0/lib/libconf/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-tiff.so not owned by any package is broken !!!


I'd start with trying to resolve that.

Code:
equery b -f ^.*libpixbufload.*$

Led me to the conclusion that you should:
Code:
emerge -1av gdk-pixbuf


Make sure your tiff useflag is showing for the emerge so that library is rebuilt.

Assuming this is for vmware-workstation (I don't use vmware),

Code:
equery -N g --depth=10 app-emulation/vmware-workstation | less
(searching the dependency graph to see where gdk-pixbuf came in) implies you may want to

Code:
emerge -1av dev-python/pygobject


as well.

Then give
Code:
revdep-rebuild -ip

a try and see if it can complete.

When was this system last sync'ed and emerge -avuND --with-bdeps=y @world?
_________________
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Tue Mar 05, 2013 3:01 pm    Post subject: Reply with quote

Error like the above usually happens if you did something silly, like i.e. manually install a copy of gtk+ into /usr/local.
Back to top
View user's profile Send private message
eleanor
l33t
l33t


Joined: 01 Nov 2004
Posts: 666

PostPosted: Tue Mar 05, 2013 3:58 pm    Post subject: Reply with quote

Okey, the revdep is fine now:

Quote:

# revdep-rebuild -ip
* Configuring search environment for revdep-rebuild

* Checking reverse dependencies
* Packages containing binaries and libraries broken by a package update
* will be emerged.

* Collecting system binaries and libraries
* Generated new 1_files.rr
* Collecting complete LD_LIBRARY_PATH
* Generated new 2_ldpath.rr
* Checking dynamic linking consistency
[ 100% ]

* Dynamic linking on your system is consistent... All done.


But the problem persist.


Quote:

checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.12.0 and < 3.0...
*** 'pkg-config --modversion gtk+-2.0' returned 2.24.12, but GTK+ (2.24.10)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GTK+. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error: Neither Qt nor GTK+ 2.12 or later are available, so Wireshark can't be compiled




Any other ideas? VoidMage: it's possible that I installed some package manually, but I'm sure it wasn't the gtk+.
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Tue Mar 05, 2013 6:22 pm    Post subject: Reply with quote

Code:
emerge -C gtk+ && emerge wireshark


Let's see what the output is w/ no GTK+
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
eleanor
l33t
l33t


Joined: 01 Nov 2004
Posts: 666

PostPosted: Tue Mar 05, 2013 8:24 pm    Post subject: Reply with quote

Hi, I get the same error:

Quote:

checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.12.0 and < 3.0...
*** 'pkg-config --modversion gtk+-2.0' returned 2.24.12, but GTK+ (2.24.10)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GTK+. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error: Neither Qt nor GTK+ 2.12 or later are available, so Wireshark can't be compiled


Whole output here: http://bpaste.net/show/81668/
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Tue Mar 05, 2013 10:43 pm    Post subject: Reply with quote

What is the output of:
Code:
emerge -pv glib
?
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
Navar
Guru
Guru


Joined: 20 Aug 2012
Posts: 353

PostPosted: Tue Mar 05, 2013 11:52 pm    Post subject: Reply with quote

Making progress, but we're still left guessing what exactly caused this. Gtk+-2.24.10-r1 was removed from portage late this fall I believe.

Please post the output from:

Code:
genlop -lu | grep -i gtk+-2.24

If you went off manually doing something outside of portage, this will help indicate. You should have shown a successful unmerge of 2.24.10-r1 with the merger of 2.24.12 to replace.

Also do:
Code:
ls -al /usr/lib/pkgconfig/gtk+*

Code:
cat /usr/lib/pkgconfig/gtk+-2.0.pc


So we can at least determine more of what seems normal vs not.
_________________
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn.
Back to top
View user's profile Send private message
keenblade
Veteran
Veteran


Joined: 03 Oct 2004
Posts: 1087

PostPosted: Wed Mar 06, 2013 2:03 am    Post subject: Reply with quote

I think the problem may not be the gtk+ version, but the wireshark build system. Wireshark build system may have a bug.
_________________
Anyway it's all the same at the end...
Need help to get it working: "x-fi surround 5.1"
Back to top
View user's profile Send private message
Navar
Guru
Guru


Joined: 20 Aug 2012
Posts: 353

PostPosted: Wed Mar 06, 2013 4:27 am    Post subject: Reply with quote

keenblade,

Code:
emerge -1av wireshark
[ebuild   R    ] net-analyzer/wireshark-1.8.5:0/1.8.5  USE="caps crypt gtk pcap ssl zlib -adns -doc -doc-pdf -geoip -ipv6 -kerberos -libadns -lua -portaudio -profile -python (-selinux) -smi" 0 kB

Code:
...
checking if profile builds must be generated... no
checking for pkg-config... (cached) /usr/bin/i686-pc-linux-gnu-pkg-config
checking for GTK+ - version >= 2.12.0 and < 3.0... yes (version 2.24.12)
checking for pkg-config... (cached) /usr/bin/i686-pc-linux-gnu-pkg-config
checking for GLIB - version >= 2.14.0... yes (version 2.32.4)
checking whether GLib supports loadable modules... yes
checking whether dladdr can be used to find the pathname of an executable... no
...

Built fine here.
_________________
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Wed Mar 06, 2013 11:22 am    Post subject: Reply with quote

:roll: :roll: :roll:
This error message comes from AM_PATH_GTK_2_0 macro.
What it actually says is that pkg-config finds gtk+ 2.24.12, but the linking test finds 2.24.10.
That's usually means that a stale copy of the lib exists someplace of higher priority in ld.so.conf hierarchy - usually in /usr/local/lib.

In nearly all of the cases, it's an user error.
Back to top
View user's profile Send private message
eleanor
l33t
l33t


Joined: 01 Nov 2004
Posts: 666

PostPosted: Wed Mar 06, 2013 4:16 pm    Post subject: Reply with quote

Here:

Quote:

# genlop -lu | grep -i gtk+-2.24
Fri Oct 26 00:02:53 2012 >>> x11-libs/gtk+-2.24.12
Thu Dec 13 21:51:35 2012 <<< x11-libs/gtk+-2.24.12
Thu Dec 13 21:51:37 2012 >>> x11-libs/gtk+-2.24.12
Mon Mar 4 19:17:04 2013 <<< x11-libs/gtk+-2.24.12
Mon Mar 4 19:17:06 2013 >>> x11-libs/gtk+-2.24.12
Mon Mar 4 20:03:23 2013 <<< x11-libs/gtk+-2.24.12
Mon Mar 4 20:03:26 2013 >>> x11-libs/gtk+-2.24.12
Tue Mar 5 00:12:41 2013 <<< x11-libs/gtk+-2.24.12
Tue Mar 5 00:18:25 2013 >>> x11-libs/gtk+-2.24.12
Tue Mar 5 19:49:24 2013 <<< x11-libs/gtk+-2.24.12
Tue Mar 5 19:54:55 2013 >>> x11-libs/gtk+-2.24.12
localhost eleanor # ls -al /usr/lib/pkgconfig/gtk+*
-rw-r--r-- 1 root root 377 Mar 5 19:54 /usr/lib/pkgconfig/gtk+-2.0.pc
-rw-r--r-- 1 root root 328 Mar 5 19:54 /usr/lib/pkgconfig/gtk+-unix-print-2.0.pc
-rw-r--r-- 1 root root 377 Mar 5 19:54 /usr/lib/pkgconfig/gtk+-x11-2.0.pc
localhost eleanor # cat /usr/lib/pkgconfig/gtk+-2.0.pc
prefix=/usr
exec_prefix=${prefix}
libdir=/usr/lib64
includedir=${prefix}/include
target=x11

gtk_binary_version=2.10.0
gtk_host=x86_64-pc-linux-gnu

Name: GTK+
Description: GTK+ Graphical UI Library (${target} target)
Version: 2.24.12
Requires: gdk-${target}-2.0 atk cairo gdk-pixbuf-2.0 gio-2.0 pangoft2
Libs: -L${libdir} -lgtk-${target}-2.0
Cflags: -I${includedir}/gtk-2.0


VoidMage, I commented the /usr/local/usr from the ld.so.conf and rerun ldconfig and emerged wireshark with the same problem, which means that the gtk+ libraries are probably in /usr.
Back to top
View user's profile Send private message
Navar
Guru
Guru


Joined: 20 Aug 2012
Posts: 353

PostPosted: Wed Mar 06, 2013 4:58 pm    Post subject: Reply with quote

@voidmage: meh. Your ability to re-state the obvious remains obvious. :roll: The OP asserted, then denied, questioned, but irregardless asked for help resolving the matter. Yet you're going on about what was already stated in the error message when not borderline in-lining personal attacks. If you're an automake, cmake, libtool, configure, insert next new fangled go all in the most obscured way possible build tool across all platforms expert, then the onus was on you to make a meaningful contribution rather than actually continue to act a tool.

Moving on...

@Eleanor I haven't had a need to use this in a long time, but your options are obviously the find route and manually via all paths listed in /etc/ld.so.conf, most likely in logical read order, beginning to end of file in order of priority. But hey, don't quote me and no warranty implied. :P

You can try running the following script to help you locate duplicate .so files, using paths listed in /etc/ld.so.conf:

Code:

#!/bin/sh
# Find and list duplicate libraries within /etc/ld.so.conf paths.

find `cat /etc/ld.so.conf | grep -e ^/` -type f -name '*.so.*' 2>/dev/null \
| sed 's/\.so.*//' \
| sort >/tmp/duplib1.$$
sort -u </tmp/duplib1.$$ >/tmp/duplib2.$$
diff /tmp/duplib1.$$ /tmp/duplib2.$$ \
| grep '^<' \
| sed -e 's/^< /ls -l /' -e 's/$/.so*/' \
| sh


Good luck.

edit: revised script to be more thorough
_________________
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn.


Last edited by Navar on Mon Mar 11, 2013 2:21 am; edited 4 times in total
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Wed Mar 06, 2013 5:11 pm    Post subject: Reply with quote

Gotta Love sed lol 8)

@eleanor: How often do you:
Code:
emerge -uDv world
?

I know I'm kinda coming in on the back end of this, but this is occurring because package config found stale library files, and I admit I'm not smart enough (yet) to "script a fix," like Navaar, so I stayed quiet but watched the post. Gentoo is very unforgiving if a proper maintenance procedure/regiment isn't followed, as you have found out after dealing with this issue.
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
eleanor
l33t
l33t


Joined: 01 Nov 2004
Posts: 666

PostPosted: Wed Mar 06, 2013 6:04 pm    Post subject: Reply with quote

Hi,

If I remove the following files from /usr/lib64/

Quote:

-rw-r--r-- 1 root root 377 Mar 5 19:54 gtk+-2.0.pc
-rw-r--r-- 1 root root 328 Mar 5 19:54 gtk+-unix-print-2.0.pc
-rw-r--r-- 1 root root 377 Mar 5 19:54 gtk+-x11-2.0.pc


If I try to install the wireshark, I get the error about gtk+ not being found:

Quote:

checking for pkg-config... (cached) /usr/bin/x86_64-pc-linux-gnu-pkg-config
checking for GTK+ - version >= 2.12.0 and < 3.0... Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
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: Neither Qt nor GTK+ 2.12 or later are available, so Wireshark can't be compiled

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-analyzer/wireshark-1.8.5/work/wireshark-1.8.5/config.log




And then reemerging the gtk+-2.24.12 and then reemerging wireshark, I get the previous error:

Quote:

checking for GTK+ - version >= 2.12.0 and < 3.0...
*** 'pkg-config --modversion gtk+-2.0' returned 2.24.12, but GTK+ (2.24.10)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GTK+. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error: Neither Qt nor GTK+ 2.12 or later are available, so Wireshark can't be compiled


But I just emerged the 2.24.12 version, not the 2.24.10, why is it finding the 10 version?
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Wed Mar 06, 2013 6:51 pm    Post subject: Reply with quote

Code:
echo PKG_CONFIG_PATH >> ~/path.txt

1. Post the Contents of path.txt
2. Is /usr on a separate partition?
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
eleanor
l33t
l33t


Joined: 01 Nov 2004
Posts: 666

PostPosted: Wed Mar 06, 2013 6:59 pm    Post subject: Reply with quote

Hi, the variable is empty:

Code:

# echo $PKG_CONFIG_PATH



No /usr is not on a separate partition.
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Wed Mar 06, 2013 7:46 pm    Post subject: Reply with quote

eleanor wrote:
Hi, the variable is empty:

Code:

# echo $PKG_CONFIG_PATH



No /usr is not on a separate partition.


PKG_CONFIG_PATH should have something in it....hmmm

Lets try:
Code:
emege -C virtual/pkgconfig dev-util/pkgconfig
emerge --sync
emerge dev-util/pkgconfig virtual/pkgconfig
emerge -C glib && emerge glib
env-update
source /etc/profile
ls -al /usr/lib/pkgconfig
echo $PKG_CONFIG_PATH
emerge -pv qt-meta

_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
eleanor
l33t
l33t


Joined: 01 Nov 2004
Posts: 666

PostPosted: Wed Mar 06, 2013 9:26 pm    Post subject: Reply with quote

Hi, the variable is still empty and I'm sure that it's valid that it's empty:

Code:

# echo $PKG_CONFIG_PATH



Proof:

Quote:

# genlop -t glib
* dev-libs/glib

Wed Mar 6 22:22:14 2013 >>> dev-libs/glib-2.32.4-r1
merge time: 3 minutes and 7 seconds.


The error message the same:

Quote:

checking for GTK+ - version >= 2.12.0 and < 3.0...
*** 'pkg-config --modversion gtk+-2.0' returned 2.24.12, but GTK+ (2.24.10)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GTK+. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error: Neither Qt nor GTK+ 2.12 or later are available, so Wireshark can't be compiled
Back to top
View user's profile Send private message
eyoung100
Veteran
Veteran


Joined: 23 Jan 2004
Posts: 1428

PostPosted: Wed Mar 06, 2013 9:37 pm    Post subject: Reply with quote

Code:
export PKG_CONFIG_PATH="/usr/lib64/:/usr/lib/pkgconfig" emerge wireshark

If this doesnt work file a wireshark bug.
_________________
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Back to top
View user's profile Send private message
eleanor
l33t
l33t


Joined: 01 Nov 2004
Posts: 666

PostPosted: Wed Mar 06, 2013 9:53 pm    Post subject: Reply with quote

I figured it out, and it was a total luck. Here are the needed commands to make it work:

Quote:

# eselect profile list
Available profile symlink targets:
[1] default/linux/amd64/13.0
[2] default/linux/amd64/13.0/selinux
[3] default/linux/amd64/13.0/desktop *
[4] default/linux/amd64/13.0/desktop/gnome
[5] default/linux/amd64/13.0/desktop/kde
[6] default/linux/amd64/13.0/developer
[7] default/linux/amd64/13.0/no-multilib
[8] default/linux/amd64/13.0/x32
[9] hardened/linux/amd64
[10] hardened/linux/amd64/selinux
[11] hardened/linux/amd64/no-multilib
[12] hardened/linux/amd64/no-multilib/selinux
[13] hardened/linux/uclibc/amd64
localhost eleanor # eselect profile set 1
localhost eleanor # emerge wireshark



I've set the dektop profile in the past, because someone recommended it (don't remember who though). Two questions remain:
1. Is this a bug in the gentoo profile? Probably yes.
2. Why is using the desktop profile better than not using it? What's the difference?

I also think there's a bug in the hexchat, because this is displayed when I try to emerge it:

Quote:

checking for pkg-config... (cached) /usr/bin/x86_64-pc-linux-gnu-pkg-config
checking for GTK+ - version >= 2.10.0...
*** 'pkg-config --modversion gtk+-2.0' returned 2.24.12, but GTK+ (2.24.10)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GTK+. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no

Cannot find GTK! Not building GTK FrontEnd.

Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum