LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-31-2008, 08:18 AM   #1
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,397

Rep: Reputation: 81
Why "apt-file search wx-config" not find? (Debian Lenny)


Hya,

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

Background:

I (like somebody else) needed to figure out which package wx-config is in.
Code:
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)

Question:
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!
 
Old 12-31-2008, 11:15 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,198

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
"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
'/usr/lib/wx/config/gtk2-unicode-release-2.8'
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
package.
So 'wx-common' is an almost stand alone package
probably only needed when writing new programs
using wxWidgets.
....

Last edited by knudfl; 12-31-2008 at 01:10 PM.
 
Old 12-31-2008, 05:05 PM   #3
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,397

Original Poster
Rep: Reputation: 81
Hya,

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.
 
Old 01-01-2009, 02:42 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,198

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

# 2
Quote:
........ 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 'lesspipe.sh', searching direct
into the downloaded package itself.
....
 
Old 01-02-2009, 11:38 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,198

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


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
giving search-string(s) from a file to linux "find" command Fond_of_Opensource Linux - Newbie 3 02-02-2009 06:14 PM
apt-get "recommends" package install question in Lenny kushalkoolwal Debian 8 12-28-2008 10:09 PM
"Battery not present" after upgrade Debian etch to Lenny Debiantist Linux - Newbie 3 12-02-2008 08:42 AM
LXer: DistroWatch Weekly: FreeBSD 7.0, Debian "Lenny" updates, KNOPPIX 5.3 LXer Syndicated Linux News 0 03-03-2008 04:51 AM
debian "lenny" nvidia nforce4 software raid 10 gariac Linux - Hardware 0 08-09-2007 01:49 AM


All times are GMT -5. The time now is 12:03 PM.

Main Menu
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