-   Debian (
-   -   Why "apt-file search wx-config" not find? (Debian Lenny) (

kaz2100 12-31-2008 08:18 AM

Why "apt-file search wx-config" not find? (Debian Lenny)

I am confused, I need to figure out how apt-file works.


I (like somebody else) needed to figure out which package wx-config is in.

apt-file search wx-config
gives me that /usr/share/man/man1/wx-config.1.gz is in wx-common package. I now know it is a link to /usr/lib/wx/config/gtk2-unicode-release-2.6 (may also be -2.8, at least with my lenny, in libwxgtk2.6-dev)

Which package makes a link?

Also why wx-common NOT depends on libwxgtk2.6-dev.

I am confident that I misunderstand something. I just need to figure out.

Happy Penguins!

knudfl 12-31-2008 11:15 AM

"wx-config" should be configured automatically when
installing libwxgtk2.6-dev ( or libwxgtk2.8-dev )

/usr/bin/wx-config is a link to
'/etc/alternatives/wx-config' which is a link to
which is from package 'libwxgtk2.8-dev' ( 2.6 )

There is no file by name 'wx-config' in the package
libwxgtk2.8-dev, the link is written by one of
the install scripts in the package, so no search
will do, looking in a debian package base, neither
local or on the internet.

Usual method to configure wx-config ( has to be
done when changing from 2.8 to 2.6 or vice versa,
some apps use 2.6, some 2.8 for compiling ) :
# 'update-alternatives --config wx-config'

'libwxgtk2.8-dev' depends on 'libwxbase2.8-0'
'libwxbase2.8-dev' .. 'libwxgtk2.8-0'
'wx2.8-headers' . Likewise for 2.6

'wx-common' isn't needed by any of the above,
but will itself depend on 'libwxbase2.6-0'
Try the command 'dpkg --listfiles wx-common'
to display the very few files contained in the
So 'wx-common' is an almost stand alone package
probably only needed when writing new programs
using wxWidgets.

kaz2100 12-31-2008 05:05 PM


Thanks for prompt reply.

Now I know that wx-config pops out while libwxgtk-dev is installed. So, online manual and link itself belong to different package.

Is there any apt-command to know this?

Happy Penguins!

PS. The other day, I was playing around with link to different gcc's (3.3, 3.2, 3.1..), then had hard time to restore to original condition. I assume it is similar nature.

knudfl 01-01-2009 02:42 AM

No, the link does not belong to another pakage,
it is written by the script 'postinst' in the
libwxgtkX.x-dev package.

# 2

........ so no search
will do, looking in a debian package base, neither
local or on the internet.
No 'apt' or dpkg' tool will find 'wx-config'.
Neither will 'grep' or '', searching direct
into the downloaded package itself.

knudfl 01-02-2009 11:38 AM

About gcc and links : The default installed, the one for
kernel compilation, etc., ( in my Debian Lenny gcc-4.1.1 )
has links gcc and cc.
And no reason to change that, using other compilers.

Examples commands to call a different compiler :
1) 'gcc-3.3.6 my_code.c -o object.o'
2) 'CC=gcc-3.3.6 ./configure'
...'CXX=g++-3.3.6 ./configure'
'CC=gcc-3.3.6 make' .. ''CXX=g++-3.3.6 make'

'CC=gcc-3.3.6 CXX=g++-3.3.6 ./configure' ( or make )

All times are GMT -5. The time now is 09:52 AM.