Wang, Jing J wrote:
> You can workaround installation issue by
> rpm -ivh AdobeReader_cht-8.1.4-1.i486.rpm --nodeps
> 
> But still need a root cause for it
> 
> 
> WangJing
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
> Behalf Of axel lin 
> Sent: 2009年3月26日 11:15
> To: [email protected]
> Subject: [Moblin Dev] Failed to install AdobeReader on Moblin2
> 
> hi,
> I got below error message when install AdobeReader
> #rpm -ivh AdobeReader_cht-8.1.4-1.i486.rpm
> error: Failed dependencies:
>         /usr/bin/awk is needed by AdobeReader_cht-8.1.4-1.i486
> 
> gawk is already installed from Moblin2 repo.
> I also tried to make a link for /usr/bin/awk ( ln -sf /bin/gawk
> /usr/bin/awk ) but this issue still happen.
> Any idea to fix this issue?


when rpm does dependency checks, it checks according to what's in its
database, not according to pathnames in the filesystem.  making various
symlinks, moving files around, etc. will have NO effect on rpm's checking.

rpm has to know that something provides that path, that is, if you get a
positive answer to this question:

rpm -q  --whatprovides /usr/bin/awk

you're okay; if you don't the check above will fail.

the only fix for this is at the distro level, to anticpate things that packages
will requrie and make sure they're provided the way they're expected - and
it's going to be trial-and-error because until you hit one, you don't know
what a particular 3rd-party package is depending on.

I consider this a nasty wart of this system - it's actually one of the concepts
of LSB to try to hide specific details like this behind a single dependency
so that packages don't get so tied to specific distro implementatins, but
even that's only a partial solution,

_______________________________________________
Moblin dev Mailing List
[email protected]

To manage or unsubscribe from this mailing list visit:
https://lists.moblin.org/mailman/listinfo/dev or your user account on 
http://moblin.org once logged in.

For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists

Reply via email to