rpmbuild安装的问题,路过的帮看下!~~

rpmbuild安装的问题,路过的帮看下!~~

[root@ecofe2 IP]# ls
IPModifyForXP.exe          rpm-build-4.3.3-13_nonpt1.i386      rpm-libs-4.3.3-13_nonptl.i386.rpm
kernel-2.6.9-5.EL.src.rpm  rpm-build-4.3.3-13_nonptl.i386.rpm  setup.ini
[root@ecofe2 IP]# rpm -ivh rpm-build-4.3.3-13_nonptl.i386.rpm
warning: rpm-build-4.3.3-13_nonptl.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
error: Failed dependencies:
        rpm = 4.3.3-13_nonptl is needed by rpm-build-4.3.3-13_nonptl.i386
[root@ecofe2 IP]# rpm -ivh rpm-libs-4.3.3-13_nonptl.i386.rpm
warning: rpm-libs-4.3.3-13_nonptl.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing...                ########################################### [100%]
        file /usr/lib/librpm-4.3.so from install of rpm-libs-4.3.3-13_nonptl conflicts with file from package rpm-libs-4.3.3-7_nonptl
        file /usr/lib/librpmbuild-4.3.so from install of rpm-libs-4.3.3-13_nonptl conflicts with file from package rpm-libs-4.3.3-7_nonptl
        file /usr/lib/librpmdb-4.3.so from install of rpm-libs-4.3.3-13_nonptl conflicts with file from package rpm-libs-4.3.3-7_nonptl
        file /usr/lib/librpmio-4.3.so from install of rpm-libs-4.3.3-13_nonptl conflicts with file from package rpm-libs-4.3.3-7_nonptl
[root@ecofe2 IP]#
rpm -Uvh --force --nodeps
[root@ecofe2 IP]# cd /usr/src
[root@ecofe2 src]# ls
2.6.9-34.EL-i686  e1000  kernels  linux-2.6.17.13  linux-2.6.17.13.zip  linux-2.6.9.tar.bz2  redhat
[root@ecofe2 src]# cd redhat
[root@ecofe2 redhat]# ls
BUILD  RPMS  SOURCES  SPECS  SRPMS
[root@ecofe2 redhat]# rpmbuild -ba --target=i686 ./kernel-2.6.spec
Building target platforms: i686
Building for target i686
error: failed to stat /usr/src/redhat/./kernel-2.6.spec: No such file or directory
[root@ecofe2 redhat]#
我也想装  rpm-build,找了半天,没找到安装包,后来就yum install rpm-build ,没想到成功了 (yum了两次)
直接安装可能因为依赖关系而失败
但是yum安装yum会自动解决依赖关系 缺少的包它会去下载