Re: [expert] Compile problems with K3B 0.9

2003-07-27 Thread dfox
Somebody scribbled about Re: [expert] Compile problems with K3B 0.9

>The command you're looking for is urpmf.
>
>http://www.urpmi.org/en/man-html/urpmf.php

Nice! :)

I'll try and remember that.

>The urpm* family of commands is IMHO the best of Mandrake's innovations.

Yes, I'll agree with that. They are pretty slick tools. 

>HTH!

-- 

David E. Fox  Thanks for letting me
[EMAIL PROTECTED]change magnetic patterns
[EMAIL PROTECTED]   on your hard disk.
---


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Compile problems with K3B 0.9

2003-07-25 Thread Bill Mullen
On Fri, 25 Jul 2003, dfox wrote:

> It takes some intuition, I'll admit, to find the right libraries that
> support a particular thing. I seem to remember there was a magic trick
> to find the RPM that provides a specific file -- specifically, one that
> *isn't* on your system. A lot of times it is confusing what to install.  
> For instance, I was attempting to compile something recently that needed
> /usr/bin/gtk-config and couldn't track down the rpm that provides that
> particular file. 'urpmi gtk' isn't very helpful: it reminds me of my job
> trying to locate a specific John Smith :).

The command you're looking for is urpmf.

http://www.urpmi.org/en/man-html/urpmf.php

It will consider every RPM in your entire urpmi database, whether that RPM
is already installed, or merely available at one of your configured urpmi
sources. On my 9.0 system:

[EMAIL PROTECTED]:~$ urpmf /usr/bin/gtk-config
libgtk+1.2-devel:/usr/bin/gtk-config

The urpm* family of commands is IMHO the best of Mandrake's innovations.

HTH!

-- 
Bill Mullen   [EMAIL PROTECTED]   MA, USA   RLU #270075   MDK 8.1 & 9.0
"There are two kinds of people in the world, those who believe there are
two kinds of people in the world and those who don't." - Robert Benchley

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Compile problems with K3B 0.9

2003-07-25 Thread dfox
Somebody scribbled about Re: [expert] Compile problems with K3B 0.9

>Ok, I lied, I looked for an upgrade to kdemultimedia. I found it,
> installed it, and am now happy.

Oh I see. In that case, never mind. But what kdemultimedia are you using? 
I'm upgrading piecemeal from a broken install (only had 9.0) to cooker 
and that one stumped me. See my other post.

>Rob

-- 

David E. Fox  Thanks for letting me
[EMAIL PROTECTED]change magnetic patterns
[EMAIL PROTECTED]   on your hard disk.
---


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Compile problems with K3B 0.9

2003-07-25 Thread dfox
Somebody scribbled about Re: [expert] Compile problems with K3B 0.9
>On Monday 21 July 2003 07:36 pm, Jason Greenwood wrote:
>> Quick question. Why not use the prcompiled K3B Rpms instead??
>
>Are there any for 0.90?

I think there is - have you checked cooker-contrib?
k3b-0.9-1mdk
k3b-devel-0.9-1mdk

>Rob

-- 

David E. Fox  Thanks for letting me
[EMAIL PROTECTED]change magnetic patterns
[EMAIL PROTECTED]   on your hard disk.
---


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Compile problems with K3B 0.9

2003-07-25 Thread dfox
Somebody scribbled about Re: [expert] Compile problems with K3B 0.9
>-BEGIN PGP SIGNED MESSAGE-

>3) Comb through the results looking for devel packages that have that
>file:
>  [EMAIL PROTECTED] ~]$ urpmf libaudio.so
>  libnas2:/usr/X11R6/lib/libaudio.so.2
>  libnas2:/usr/X11R6/lib/libaudio.so.2.3
>  libnas2-devel:/usr/X11R6/lib/libaudio.so

It takes some intuition, I'll admit, to find the right libraries that 
support a particular thing. I seem to remember there was a magic trick to
find the RPM that provides a specific file -- specifically, one that 
*isn't* on your system. A lot of times it is confusing what to install. 
For instance, I was attempting to compile something recently that needed 
/usr/bin/gtk-config and couldn't track down the rpm that provides that 
particular file. 'urpmi gtk' isn't very helpful: it reminds me of my job 
trying to locate a specific John Smith :).

I seem to remember 'qlf' and some other options (maybe it was -qld?) that 
would do it. My first approach was to run this against my current cooker 
mirror. Bash says argument list too long, so I then just use it against 
gtk and eventually find the file. But is there a better approach?

Having something like a "reference" box we could ssh into might be an idea 
...

I'm currently stumped installing a newer kdemultimedia -- I have 
kdemultimedia 3.05a from 9.0 and have most everything else installed for 
3.1.2, except that. I'm getting:

devel(libnoatunarts) is needed by kdemultimedia-devel-3.1.2-10mdk

libnoatunarts is installed - but I can't find whatever it is urpmi thinks 
it needs.



-- 

David E. Fox  Thanks for letting me
[EMAIL PROTECTED]change magnetic patterns
[EMAIL PROTECTED]   on your hard disk.
---


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Compile problems with K3B 0.9

2003-07-22 Thread James Sparenberg
On Tue, 2003-07-22 at 21:31, Todd Lyons wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> James Sparenberg wanted us to know:
> 
> >>   [EMAIL PROTECTED] ~]$ urpmf libaudio.so
> >>   libnas2:/usr/X11R6/lib/libaudio.so.2
> >>   libnas2:/usr/X11R6/lib/libaudio.so.2.3
> >>   libnas2-devel:/usr/X11R6/lib/libaudio.so
> >locate libaudio.so
> >/usr/X11R6/lib/libaudio.so.2.3
> >/usr/X11R6/lib/libaudio.so.2
> 
> Those two are the runtime libraries.  Note how they're provided by the
> libnas2 package.  When linking, it will use the "-laudio" flag which
> means it wants to look for libaudio.so.  It doesn't want the .2 or .2.3
> at the end.  It wants only lib + {link target} + .so and that's it.
> That file name convention is provided by the -devel package, in this
> case, libnas2-devel.
> 
> >Even though I have the rpm in question installed.  I don't have that 3rd
> >level of linking. Where so.2 and so link to so.2.3.  So what I've found
> >is often when I get the above error.  I have 3 steps.  One, the one you
> >took.  Two, make sure that that 3rd link (the libaudio.so one) is
> >there.  and finally I've had to add a bunch to ld.so.conf.  things like
> >/usr/lib/  even though the libs are there for reasons unknown some
> >builds don't pick it up unless I had the dir to ld.so.conf and re-run
> >ldconfig.  I know this isn't supposed to happen... but.  If it works
> >repeatedly I keep repeating it.   
> 
> I think there's something else going on here.  /lib and /usr/lib are
> default paths for ldconfig.  Witness another example:
> 
> [EMAIL PROTECTED] ~]$ locate libncurses\. | grep lib | grep -v "a$"
> /usr/lib/libncurses.so.5.3
> /usr/lib/libncurses.so.5
> /usr/lib/libncurses.so
> /lib/libncurses.so.5.3
> /lib/libncurses.so.5
> /lib/libncurses.so
> [EMAIL PROTECTED] ~]$ locate libncurses\. | grep lib | grep -v "a$" | xargs rpm
> - -qf
> libncurses5-5.3-1.20030215.1mdk
> libncurses5-5.3-1.20030215.1mdk
> libncurses5-devel-5.3-1.20030215.1mdk
> libncurses5-5.3-1.20030215.1mdk
> libncurses5-5.3-1.20030215.1mdk
> libncurses5-devel-5.3-1.20030215.1mdk
> 
> So libncurses.so is provided by the libncurses5-devel package and
> libncurses.so.* is provided by the libncurses5 package.  The first is
> the development package because it's used when compiling programs that
> will use ncurses.  The second is the runtime libraries because programs
> that are linked with ncurses need this library to be present to run.
> Unfortunately, I seem to be using a bit of circular logic, maybe someone
> else can explain it a bit better.

Todd I'm not questioning what you are saying, but actually agreeing
but noting some inconsistent events in the latest MDK's   A fresh
install today had this for ld.so.conf
/usr/X11R6/lib
/var/lib

notably missing are /lib /usr/lib and /usr/local/lib (this 3rd one is
debatable as to need.) 

james


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Compile problems with K3B 0.9

2003-07-22 Thread Todd Lyons
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

James Sparenberg wanted us to know:

>>   [EMAIL PROTECTED] ~]$ urpmf libaudio.so
>>   libnas2:/usr/X11R6/lib/libaudio.so.2
>>   libnas2:/usr/X11R6/lib/libaudio.so.2.3
>>   libnas2-devel:/usr/X11R6/lib/libaudio.so
>locate libaudio.so
>/usr/X11R6/lib/libaudio.so.2.3
>/usr/X11R6/lib/libaudio.so.2

Those two are the runtime libraries.  Note how they're provided by the
libnas2 package.  When linking, it will use the "-laudio" flag which
means it wants to look for libaudio.so.  It doesn't want the .2 or .2.3
at the end.  It wants only lib + {link target} + .so and that's it.
That file name convention is provided by the -devel package, in this
case, libnas2-devel.

>Even though I have the rpm in question installed.  I don't have that 3rd
>level of linking. Where so.2 and so link to so.2.3.  So what I've found
>is often when I get the above error.  I have 3 steps.  One, the one you
>took.  Two, make sure that that 3rd link (the libaudio.so one) is
>there.  and finally I've had to add a bunch to ld.so.conf.  things like
>/usr/lib/  even though the libs are there for reasons unknown some
>builds don't pick it up unless I had the dir to ld.so.conf and re-run
>ldconfig.  I know this isn't supposed to happen... but.  If it works
>repeatedly I keep repeating it.   

I think there's something else going on here.  /lib and /usr/lib are
default paths for ldconfig.  Witness another example:

[EMAIL PROTECTED] ~]$ locate libncurses\. | grep lib | grep -v "a$"
/usr/lib/libncurses.so.5.3
/usr/lib/libncurses.so.5
/usr/lib/libncurses.so
/lib/libncurses.so.5.3
/lib/libncurses.so.5
/lib/libncurses.so
[EMAIL PROTECTED] ~]$ locate libncurses\. | grep lib | grep -v "a$" | xargs rpm
- -qf
libncurses5-5.3-1.20030215.1mdk
libncurses5-5.3-1.20030215.1mdk
libncurses5-devel-5.3-1.20030215.1mdk
libncurses5-5.3-1.20030215.1mdk
libncurses5-5.3-1.20030215.1mdk
libncurses5-devel-5.3-1.20030215.1mdk

So libncurses.so is provided by the libncurses5-devel package and
libncurses.so.* is provided by the libncurses5 package.  The first is
the development package because it's used when compiling programs that
will use ncurses.  The second is the runtime libraries because programs
that are linked with ncurses need this library to be present to run.
Unfortunately, I seem to be using a bit of circular logic, maybe someone
else can explain it a bit better.
- -- 
Blue skies...   Todd
| Get a bigger hammer!   |  I vowed revenge on the soul   |
| http://www.mrball.net  |  of Bingbong.  |
| http://faq.mrball.net  |Doug Glanville on espn.go.com   |
Linux kernel 2.4.19-24mdk   load average: 0.00, 0.03, 0.06
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: http://www.mrball.net/todd.asc

iD8DBQE/Hg+GIBT1264ScBURAqnOAKDTjj00RGTjbjntqmkbXYrNge/diQCeOA91
s2hCNALL/S0jv851XkBsa1Y=
=X6sA
-END PGP SIGNATURE-

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Compile problems with K3B 0.9

2003-07-21 Thread James Sparenberg
On Mon, 2003-07-21 at 20:23, Todd Lyons wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Rob Blomquist wanted us to know:
> 
> >I am having a problem with the source code for K3B under Mandrake 9.1: during 
> >make, I am getting: "/usr/bin/ld: cannot find -laudio".
> >Has anyone attemped to compile this, and found a solution?
> 
> Tutorial time.
> 
> How to find this out with the tools that Mandrake provides:
> 1) When ld (the dynamic linker) wants to a link a file using the library
> called "audio", it's really looking for a file named libaudio.so.
> 2) Look for that file with something such as 'urpmf libaudio'.
> 3) Comb through the results looking for devel packages that have that
> file:
>   [EMAIL PROTECTED] ~]$ urpmf libaudio.so
>   libnas2:/usr/X11R6/lib/libaudio.so.2
>   libnas2:/usr/X11R6/lib/libaudio.so.2.3
>   libnas2-devel:/usr/X11R6/lib/libaudio.so
> 4) Tada!  'urpmi libnas2-devel' and you can now compile k3b.  If you
> would have done something even simpler like try to build the k3b source
> rpm, one of the prerequisites would have been that you would have to
> install the libnas2-devel rpm for it to build properly.  There are
> others as well, but I'm not totally sure what they are.


And you are, as always, right... but (I know always some a-hole
butting in.)  If his box did/does what mine did.

locate libaudio.so

/usr/X11R6/lib/libaudio.so.2.3
/usr/X11R6/lib/libaudio.so.2


Even though I have the rpm in question installed.  I don't have that 3rd
level of linking. Where so.2 and so link to so.2.3.  So what I've found
is often when I get the above error.  I have 3 steps.  One, the one you
took.  Two, make sure that that 3rd link (the libaudio.so one) is
there.  and finally I've had to add a bunch to ld.so.conf.  things like
/usr/lib/  even though the libs are there for reasons unknown some
builds don't pick it up unless I had the dir to ld.so.conf and re-run
ldconfig.  I know this isn't supposed to happen... but.  If it works
repeatedly I keep repeating it.   

James



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Compile problems with K3B 0.9

2003-07-21 Thread Rob Blomquist
On Monday 21 July 2003 08:33 pm, Rob Blomquist wrote:
> On Monday 21 July 2003 07:36 pm, Jason Greenwood wrote:
> > Quick question. Why not use the prcompiled K3B Rpms instead??
>
> Are there any for 0.90?
>
> I used urpmi to look for them, but came up nil.

Ok, I lied, I looked for an upgrade to kdemultimedia. I found it, installed 
it, and am now happy.

Rob
-- 

Linux: For the people, by the people.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Compile problems with K3B 0.9

2003-07-21 Thread Rob Blomquist
On Monday 21 July 2003 07:36 pm, Jason Greenwood wrote:
> Quick question. Why not use the prcompiled K3B Rpms instead??

Are there any for 0.90?

I used urpmi to look for them, but came up nil.

Rob
-- 

Linux: For the people, by the people.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Compile problems with K3B 0.9

2003-07-21 Thread Todd Lyons
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rob Blomquist wanted us to know:

>I am having a problem with the source code for K3B under Mandrake 9.1: during 
>make, I am getting: "/usr/bin/ld: cannot find -laudio".
>Has anyone attemped to compile this, and found a solution?

Tutorial time.

How to find this out with the tools that Mandrake provides:
1) When ld (the dynamic linker) wants to a link a file using the library
called "audio", it's really looking for a file named libaudio.so.
2) Look for that file with something such as 'urpmf libaudio'.
3) Comb through the results looking for devel packages that have that
file:
  [EMAIL PROTECTED] ~]$ urpmf libaudio.so
  libnas2:/usr/X11R6/lib/libaudio.so.2
  libnas2:/usr/X11R6/lib/libaudio.so.2.3
  libnas2-devel:/usr/X11R6/lib/libaudio.so
4) Tada!  'urpmi libnas2-devel' and you can now compile k3b.  If you
would have done something even simpler like try to build the k3b source
rpm, one of the prerequisites would have been that you would have to
install the libnas2-devel rpm for it to build properly.  There are
others as well, but I'm not totally sure what they are.
- -- 
Blue skies...   Todd   http://www.mrball.net
   Public key:  http://www.mrball.net/todd.asc
 There are only 10 types of people in this world.
 Those who understand binary and those who don't.
Linux kernel 2.4.19-24mdk   5 users,  load average: 2.49, 2.21, 2.08
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: http://www.mrball.net/todd.asc

iD8DBQE/HK4wIBT1264ScBURAvirAKCdpZsaivQZsOXBphLHqoJ2RIBmuQCg4lWT
qtGhHOYb3eaGO1ywJcTuLhI=
=8PWE
-END PGP SIGNATURE-

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Compile problems with K3B 0.9

2003-07-21 Thread Jason Greenwood
Quick question. Why not use the prcompiled K3B Rpms instead??

Cheers

Jason

Rob Blomquist wrote:

I am having a problem with the source code for K3B under Mandrake 9.1: during 
make, I am getting: "/usr/bin/ld: cannot find -laudio".

Has anyone attemped to compile this, and found a solution?

 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


[expert] Compile problems with K3B 0.9

2003-07-21 Thread Rob Blomquist
I am having a problem with the source code for K3B under Mandrake 9.1: during 
make, I am getting: "/usr/bin/ld: cannot find -laudio".

Has anyone attemped to compile this, and found a solution?


-- 

Linux: For the people, by the people.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com