Linuxインストール*エラー発生時のsrc.rpm



Linux Installation Src



Linuxのインストール* src.rpmは、次の場合に発生します。

warning: user mandrake does not exist - using root warning: group mandrake does not exist - using root

エラー。



症状:



[root@xxxxx beinan]# ls unrar* unrar-3.5.2-1.2.fc4.src.rpm unrar.spec

理由:



概要:src.rpmソースパケット。ソースがインストールされた後、パッケージが生成される前にコンパイルするために使用できます。rpm再構築

方法:
1:ダウンロードが完了しました:unrar-3.5.2-1.2.fc4.src.rpm unrar.spec
|_+_|
インストールソースパッケージunrar-3.5.2-1.2.fc4.src.rpmどこにインストールするか見てみましょう。
[root@xxxxx 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@xxxxx 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%]
ここにインストール:
|_+_|
次に、unrar.specによって実行しました。実際、彼は[root @ xxxxx beinan]#
|_+_|
で記述されたスクリプトをコンパイルしています。
[root@xxxxx beinan]# rpm -ivh unrar-3.5.2-1.2.fc4.src.rpm
[root@xxxxx beinan]# ls /usr/src/redhat/SOURCES/unrar unrar.1 unrarsrc-3.5.2.tar.gz 
インストールできませんか?
# rpmbuild --ba unrar.spec 
利用できませんか?
 Compiled:
ジャンクファイルのクリーンアップ:このメソッドを頻繁に使用してRPMパッケージをコンパイルする場合、主に各redhat /内の/ usr / srcディレクトリの内容をクリーンアップします。

二:方法1:
[root@xxxxx beinan]# ls /usr/src/redhat/RPMS/i386/ unrar-3.5.2-1.i386.rpm unrar-debuginfo-3.5.2-1.i386.rpm
方法2:
[root@xxxxx beinan]# rpm -ivh /usr/src/redhat/RPMS/i386/unrar-3.5.2-1.i386.rpm Preparing... ########################################### [100%] 1:unrar ########################################### [100%]

この記事は 'から来ています ウォンポーのブログ 'ブログ、このソースを保持するようにしてください http://huangbao.blog.51cto.com/725279/152656