why does rpm ask for an earlier release?

travel NJ travelnj11 at gmail.com
Fri Mar 4 23:51:29 UTC 2011


thanks.
I may not have make it clear, when I checked the package using
"rpm -Vp Python-2.7-2.x86_64.rpm"
I did not see any references to
/home/sysadm/rpmbuild/Python2.7/Python2.7-root/usr/local/bin/python2.7
but then when I tried to install the rpm as root
rpm -ivh Python-2.7-2.x86_64.rpm
it failed with the


error: Failed dependencies:

       /home/sysadm/rpmbuild/Python2.7/Python2.7-root/usr/local/bin/python2.7

I still not seeing where I may have set the dependency. I google and
couldn't find any similar errors. I must have done something obviously
stupid :-(.

Thanks



On Fri, Mar 4, 2011 at 4:25 PM, Jos Vos <jos at xos.nl> wrote:

> On Fri, Mar 04, 2011 at 03:58:42PM -0500, travel NJ wrote:
>
> > I have built an RPM with the following definition, then it created an rpm
> > called Python-2.7-2.x86_64.rpm.
> > It failed when I tried to install it, with the following
> >
> >
> > error: Failed dependencies:
> >
> >
> /home/sysadm/rpmbuild/Python2.7/Python2.7-root/usr/local/bin/python2.7
> > is needed by Python-2.7-2.x86_64
> > I looked into http://tldp.org/HOWTO/RPM-HOWTO/build.html, seems that
> release
> > is for the release number of the same version, hence I am not sure why it
> > causes the problem
>
> Look in your package for Python script(s) containing in the first line
> /home/sysadm/rpmbuild/Python2.7/Python2.7-root/usr/local/bin/python2.7
>
> This is wrong (because it contains the buildroot).
>
> This will be used as an automatic dependency and you should take care
> of letting your package put the correct path there (probably
> /usr/local/bin/python2.7 in your case).
>
> --
> --    Jos Vos <jos at xos.nl>
> --    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
> --    Amsterdam, The Netherlands        |     Fax: +31 20 6948204
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20110304/b8858d65/attachment-0001.html>


More information about the Rpm-list mailing list