Linux 安装*src.rpm的时候出现:
warning: user mandrake does not exist - using root warning: group mandrake does not exist - using root
错误 。
症状:
[root@localhost System_Sources]# rpm -Uvh libmpfr-2.2.1-3mdv2007.1.src.rpm warning: libmpfr-2.2.1-3mdv2007.1.src.rpm: V3 DSA signature: NOKEY, key ID 26752624 1:libmpfr warning: user mandrake does not exist - using root warning: group mandrake does not exist - using root warning: user mandrake does not exist - using root warning: group mandrake does not exist - using root ########################################### [100%] [root@localhost Desktop]# rpm -Uvh yum-3.2.20-4.fc10.src.rpm warning: yum-3.2.20-4.fc10.src.rpm: V3 DSA signature: NOKEY, key ID 0b86274e 1:yum warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root ########################################### [100%]
原因:
[root@localhost beinan]# ls unrar* unrar-3.5.2-1.2.fc4.src.rpm unrar.spec
unrar-3.5.2-1.2.fc4.src.rpm unrar.spec
[root@localhost beinan]# rpm -ivh unrar-3.5.2-1.2.fc4.src.rpm
[root@localhost beinan]# ls /usr/src/redhat/SOURCES/unrar unrar.1 unrarsrc-3.5.2.tar.gz
# rpmbuild --ba unrar.spec
编译完成:
[root@localhost beinan]# ls /usr/src/redhat/RPMS/i386/ unrar-3.5.2-1.i386.rpm unrar-debuginfo-3.5.2-1.i386.rpm
[root@localhost beinan]# rpm -ivh /usr/src/redhat/RPMS/i386/unrar-3.5.2-1.i386.rpm Preparing... ########################################### [100%] 1:unrar ########################################### [100%]
[root@localhost beinan]# unrar x mydoc.rar
1.执行rpm -i your-package.src.rpm 2. cd /usr/src/redhat/SPECS 3. rpmbuild -bp your-package.specs 一个和你的软件包同名的specs文件 4. cd /usr/src/redhat/BUILD/your-package/ 一个和你的软件包同名的目录 5. ./configure 这一步和编译普通的源码软件一样,可以加上参数 6. make 7. make install
1.执行rpm -i you-package.src.rpm 2. cd /usr/src/redhat/SPECS 前两步和方法一相同 3. rpmbuild -bb your-package.specs 一个和你的软件包同名的specs文件 这时,在/usr/src/redhat/RPM/i386/ (根据具体包的不同,也可能是i686,noarch等等) 在这个目录下,有一个新的rpm包,这个是编译好的二进制文件。 执行rpm -i new-package.rpm即可安装完成。
本文出自 “黄宝的博客” 博客,请务必保留此出处http://huangbao.blog.51cto.com/725279/152656