<br><br><div class="gmail_quote">On Sun, Mar 13, 2011 at 10:27 PM, Tom Diehl <span dir="ltr"><<a href="mailto:tdiehl@rogueind.com">tdiehl@rogueind.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Sun, 13 Mar 2011, sync wrote:<br>
<br>
> Hi to all.<br>
><br>
><br>
> I'm having a problem with the rpm command on centos 5.5;<br>
> I am used to recompile a source rpm with the following command:<br>
><br>
><br>
><br>
> root@test ~: rpmbuild --rebuild pssh-1.2.2-1.rf.src.rpm<br>
> Installing pssh-1.2.2-1.rf.src.rpm<br>
> error: cannot create %sourcedir /home/test/rpm/SOURCES<br>
<br>
</div>Just a guess but try creating the %sourcedir above. Most likely you<br>
will need other directories as well. You could also use mock but that<br>
will need to be setup as well.<br>
<br>
Regards,<br>
<font color="#888888"><br>
--<br>
Tom Diehl       <a href="mailto:tdiehl@rogueind.com">tdiehl@rogueind.com</a>      Spamtrap address <a href="mailto:mtd123@rogueind.com">mtd123@rogueind.com</a><br>
_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</font></blockquote></div><br><br>Thanks , The problem is solved now.<br><br>I just run the following commands:<br><br>root@test ~: cp -r /usr/src/redhat  /home/test/rpm<br>root@test ~: rpmbuild --rebuild pssh-1.2.2-1.rf.src.rpm<br>
<br><br>Then enter the rpm directory will find the xxx.rpm package, then run "rpm -ivh xx.rpm".<br><br><br>