src.rpm怎样打开?

src.rpm怎样打开?

在kde下我直接双击没有反应

src.rpm是不是源文件的压缩包?怎样解压缩?
rpmbuild *.src.rpm

然后到 /usr/src/redhat/RPMS 下找,在里面的目录自己找找
rpmbuild --rebuild *.src.rpm
rpm -i *.src.rpm

分別在/usr/src/redhat/裡面的
SPECS, SOURCES

cd /usr/src/redhat/SPECS
裡面有一個 *.spec 的文件...
rpmbuild -bb *.spec 就可以建造一個 *.[i386/i586/i686].rpm 的包...
存放在 /usr/src/redhat/RPMS裡面....
[quote:169d501403="hew"]rpmbuild *.src.rpm

然后到 /usr/src/redhat/RPMS 下找,在里面的目录自己找找[/quote]
我的执行如下:
[root@xdw home]# rpmbuild grep-2.5-1.src.rpm
error: File /home/grep-2.5-1.src.rpm does not appear to be a specfile.

不知道为什么
[quote:2a05941ef4="xdwjack"][quote:2a05941ef4="hew"]rpmbuild *.src.rpm

然后到 /usr/src/redhat/RPMS 下找,在里面的目录自己找找[/quote]
我的执行如下:
[root@xdw home]# rpmbuild grep-2.5-1.src.rpm
error: File /home/grep-2.5-1.src.rpm does not appear to be a specfile.

不知道为什么[/quote]

rpm -i grep-2.5-1.src.rpm
cd /usr/src/redhat/SPECS
ls 看看有沒有 grep.spec ??
[quote:d517f7e49b="tou"]
rpm -i grep-2.5-1.src.rpm
cd /usr/src/redhat/SPECS
ls 看看有沒有 grep.spec ??[/quote]


如何?
[quote:fd3ea11953="xdwjack"][quote:fd3ea11953="tou"]
rpm -i grep-2.5-1.src.rpm
cd /usr/src/redhat/SPECS
ls 看看有沒有 grep.spec ??[/quote]


如何?[/quote]

rpmbuild -bb grep.spec 試看看....
[root@xdw SPECS]# rpmbuild -bb grep.spec
error: Failed build dependencies:
        pcre-devel is needed by grep-2.5-1
[quote:43d47a93ed="xdwjack"][root@xdw SPECS]# rpmbuild -bb grep.spec
error: Failed build dependencies:
        pcre-devel is needed by grep-2.5-1[/quote]

即是你還沒有安裝pcre-devel, 先安裝它吧!!