piaoyizu 发表于 2006-11-16 13:19:42

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

# 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.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
#

cobranail 发表于 2006-11-16 13:23:16

rpm -Uvh --force --nodeps

piaoyizu 发表于 2006-11-16 13:28:48

# 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
#

jokelee 发表于 2007-11-13 22:44:10

我也想装rpm-build,找了半天,没找到安装包,后来就yum install rpm-build ,没想到成功了 (yum了两次)

npcomet 发表于 2007-11-13 22:51:09

直接安装可能因为依赖关系而失败
但是yum安装yum会自动解决依赖关系 缺少的包它会去下载
页: [1]
查看完整版本: rpmbuild安装的问题,路过的帮看下!~~