rpmbuild安装的问题,路过的帮看下!~~
# lsIPModifyForXP.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.rpmrpm-build-4.3.3-13_nonptl.i386.rpmsetup.ini
# 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
# 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... ###########################################
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
# rpm -Uvh --force --nodeps # cd /usr/src
# ls
2.6.9-34.EL-i686e1000kernelslinux-2.6.17.13linux-2.6.17.13.ziplinux-2.6.9.tar.bz2redhat
# cd redhat
# ls
BUILDRPMSSOURCESSPECSSRPMS
# 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
# 我也想装rpm-build,找了半天,没找到安装包,后来就yum install rpm-build ,没想到成功了 (yum了两次) 直接安装可能因为依赖关系而失败
但是yum安装yum会自动解决依赖关系 缺少的包它会去下载
页:
[1]