Hi to all.
I'm having a problem with the rpm command on centos 5.5; I am used to recompile a source rpm with the following command:
root@test ~: rpmbuild --rebuild pssh-1.2.2-1.rf.src.rpm Installing pssh-1.2.2-1.rf.src.rpm error: cannot create %sourcedir /home/test/rpm/SOURCES error: pssh-1.2.2-1.rf.src.rpm cannot be installed
Does anybody know something about that ? Thanks in advance....
On Sun, 13 Mar 2011, sync wrote:
Hi to all.
I'm having a problem with the rpm command on centos 5.5; I am used to recompile a source rpm with the following command:
root@test ~: rpmbuild --rebuild pssh-1.2.2-1.rf.src.rpm Installing pssh-1.2.2-1.rf.src.rpm error: cannot create %sourcedir /home/test/rpm/SOURCES
Just a guess but try creating the %sourcedir above. Most likely you will need other directories as well. You could also use mock but that will need to be setup as well.
Regards,
On Sun, Mar 13, 2011 at 10:27 PM, Tom Diehl tdiehl@rogueind.com wrote:
On Sun, 13 Mar 2011, sync wrote:
Hi to all.
I'm having a problem with the rpm command on centos 5.5; I am used to recompile a source rpm with the following command:
root@test ~: rpmbuild --rebuild pssh-1.2.2-1.rf.src.rpm Installing pssh-1.2.2-1.rf.src.rpm error: cannot create %sourcedir /home/test/rpm/SOURCES
Just a guess but try creating the %sourcedir above. Most likely you will need other directories as well. You could also use mock but that will need to be setup as well.
Regards,
-- Tom Diehl tdiehl@rogueind.com Spamtrap address mtd123@rogueind.com _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Thanks , The problem is solved now.
I just run the following commands:
root@test ~: cp -r /usr/src/redhat /home/test/rpm root@test ~: rpmbuild --rebuild pssh-1.2.2-1.rf.src.rpm
Then enter the rpm directory will find the xxx.rpm package, then run "rpm -ivh xx.rpm".
On Sun, Mar 13, 2011 at 10:47 AM, sync jiannma@gmail.com wrote:
Thanks , The problem is solved now.
I just run the following commands:
root@test ~: cp -r /usr/src/redhat /home/test/rpm root@test ~: rpmbuild --rebuild pssh-1.2.2-1.rf.src.rpm
Then enter the rpm directory will find the xxx.rpm package, then run "rpm -ivh xx.rpm".
Workable, but if "/home/test/rpm" exists already, it will copy "/usr/src/redhat" to "/home/test/rpm/redhat". This can get..... confusing.
On Sun, Mar 13, 2011 at 7:47 AM, sync jiannma@gmail.com wrote:
Thanks , The problem is solved now.
I just run the following commands:
root@test ~: cp -r /usr/src/redhat /home/test/rpm root@test ~: rpmbuild --rebuild pssh-1.2.2-1.rf.src.rpm
Then enter the rpm directory will find the xxx.rpm package, then run "rpm -ivh xx.rpm".
For future searchers, the details instructions are in the CentOS wiki:
http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment
then follow:
http://wiki.centos.org/HowTos/RebuildSRPM
Akemi