LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   blfs : I Install successfully rpm on my lfs7.2 but there are problems :( (http://www.linuxquestions.org/questions/linux-from-scratch-13/blfs-i-install-successfully-rpm-on-my-lfs7-2-but-there-are-problems-4175439682/)

k84834 12-02-2012 08:13 AM

blfs : I Install successfully rpm on my lfs7.2 but there are problems :(
 
Hi all body
I can successfully install RPM on my LFS7.2 and all of its dependencies.
but when I want to install package with rpm below and same errors occure!
Code:

root [ /sources ]# rpm -i -vv util-macros-1.17-5.ram1.i686.rpm
D: ============== util-macros-1.17-5.ram1.i686.rpm
D: loading keyring from pubkeys in /${prefix}/var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /${prefix}/var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening  db environment /${prefix}/var/lib/rpm cdb:0x401
D: opening  db index      /${prefix}/var/lib/rpm/Packages 0x400 mode=0x0
D: locked  db index      /${prefix}/var/lib/rpm/Packages
D: opening  db index      /${prefix}/var/lib/rpm/Name 0x400 mode=0x0
D: Expected size:        22919 = lead(96)+sigs(180)+pad(4)+data(22639)
D:  Actual size:        22919
D: util-macros-1.17-5.ram1.i686.rpm: Header SHA1 digest: OK (1fcefb3c4bdf136a5195ed0a466d9349c7a61fde)
D: ========== relocations
D:        added binary package [0]
D: found 0 source and 1 binary packages
D: ========== +++ util-macros-1.17-5.ram1 i686/linux 0x0
D: opening  db index      /${prefix}/var/lib/rpm/Basenames 0x400 mode=0x0
D: opening  db index      /${prefix}/var/lib/rpm/Providename 0x400 mode=0x0
D:  Requires: /usr/bin/pkg-config                          NO 
D:  Requires: rpmlib(CompressedFileNames) <= 3.0.4-1        YES (rpmlib provides)
D:  Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1      YES (rpmlib provides)
D: opening  db index      /${prefix}/var/lib/rpm/Conflictname 0x400 mode=0x0
D: opening  db index      /${prefix}/var/lib/rpm/Obsoletename 0x400 mode=0x0
error: Failed dependencies:
        /usr/bin/pkg-config is needed by util-macros-1.17-5.ram1.i686

D: closed  db index      /${prefix}/var/lib/rpm/Obsoletename
D: closed  db index      /${prefix}/var/lib/rpm/Conflictname
D: closed  db index      /${prefix}/var/lib/rpm/Providename
D: closed  db index      /${prefix}/var/lib/rpm/Basenames
D: closed  db index      /${prefix}/var/lib/rpm/Name
D: closed  db index      /${prefix}/var/lib/rpm/Packages
D: closed  db environment /${prefix}/var/lib/rpm
root [ /sources ]# rpm -i -vv util-macros-1.17-5.ram1.i686.rpm
D: ============== util-macros-1.17-5.ram1.i686.rpm
D: loading keyring from pubkeys in /${prefix}/var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /${prefix}/var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening  db environment /${prefix}/var/lib/rpm cdb:0x401
D: opening  db index      /${prefix}/var/lib/rpm/Packages 0x400 mode=0x0
D: locked  db index      /${prefix}/var/lib/rpm/Packages
D: opening  db index      /${prefix}/var/lib/rpm/Name 0x400 mode=0x0
D: Expected size:        22919 = lead(96)+sigs(180)+pad(4)+data(22639)
D:  Actual size:        22919
D: util-macros-1.17-5.ram1.i686.rpm: Header SHA1 digest: OK (1fcefb3c4bdf136a5195ed0a466d9349c7a61fde)
D: ========== relocations
D:        added binary package [0]
D: found 0 source and 1 binary packages
D: ========== +++ util-macros-1.17-5.ram1 i686/linux 0x0
D: opening  db index      /${prefix}/var/lib/rpm/Basenames 0x400 mode=0x0
D: opening  db index      /${prefix}/var/lib/rpm/Providename 0x400 mode=0x0
D:  Requires: /usr/bin/pkg-config                          NO 
D:  Requires: rpmlib(CompressedFileNames) <= 3.0.4-1        YES (rpmlib provides)
D:  Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1      YES (rpmlib provides)
D: opening  db index      /${prefix}/var/lib/rpm/Conflictname 0x400 mode=0x0
D: opening  db index      /${prefix}/var/lib/rpm/Obsoletename 0x400 mode=0x0
error: Failed dependencies:
        /usr/bin/pkg-config is needed by util-macros-1.17-5.ram1.i686

D: closed  db index      /${prefix}/var/lib/rpm/Obsoletename
D: closed  db index      /${prefix}/var/lib/rpm/Conflictname
D: closed  db index      /${prefix}/var/lib/rpm/Providename
D: closed  db index      /${prefix}/var/lib/rpm/Basenames
D: closed  db index      /${prefix}/var/lib/rpm/Name
D: closed  db index      /${prefix}/var/lib/rpm/Packages
D: closed  db environment /${prefix}/var/lib/rpm
root [ /sources ]#

what is the matter?!!! :-?

Code:

root [ /sources ]# find / | grep pkg-config
/usr/share/doc/pkg-config-0.27
/usr/share/doc/pkg-config-0.27/pkg-config-guide.html
/usr/share/man/man1/pkg-config.1
/usr/bin/pkg-config
/sources/pkg-config-0.27.tar.gz
root [ /sources ]# py //I press tab
pydoc            python2          python2.7-config  python-config
python            python2.7        python2-config   
root [ /sources ]# py


knudfl 12-02-2012 12:27 PM

Quote:

error: Failed dependencies:
/usr/bin/pkg-config is needed by util-macros-1.17-5.ram1.i686
'rpm' looks for installed dependencies in the rpm data base only.
Solution : 1) Install 'pkg-config' as an rpm package.
Or 2) use the '--nodeps' option :
# rpm -Uvh --nodeps util-macros-1.17-5.ram1.i686.rpm


.

k84834 12-03-2012 03:36 AM

Hi
thank you for reply :)
I install pkg-config as an rpm package , but when I want to install other packages there Are other dependencies that I have installed them in LFS!
like below
Code:

root [ /sources/rpm-packages ]# rpm -Uvh libXau-1.0.7-1mgc25.i686.rpm
error: Failed dependencies:
        /sbin/ldconfig is needed by libXau-1.0.7-1mgc25.i686
        libc.so.6 is needed by libXau-1.0.7-1mgc25.i686
        libc.so.6(GLIBC_2.0) is needed by libXau-1.0.7-1mgc25.i686
        libc.so.6(GLIBC_2.1) is needed by libXau-1.0.7-1mgc25.i686
        libc.so.6(GLIBC_2.1.3) is needed by libXau-1.0.7-1mgc25.i686
root [ /sources/rpm-packages ]#

is it right I install all packages with --nodeps ?!
can I install them at once like "rpm -Uvh --nodeps *.rpm " ?
if not , what I do with these failed dependencies???

knudfl 12-03-2012 04:26 AM

Quote:

Is it right I install all packages with --nodeps ?
That's what we do in OS's with no dependency tracking, like Slackware.
Quote:

/sbin/ldconfig is needed ....
libc.so.6 is needed by ....
Both are provided by glibc, which you already have :
'glibc' is your OS, together with the kernel.


All times are GMT -5. The time now is 06:33 AM.