Results 1 to 6 of 6

Thread: Getting error while building iplist rpm on the CentOS.

  1. #1
    Join Date
    Apr 2011
    Posts
    64

    Getting error while building iplist rpm on the CentOS.

    I have installed CentOS 5.5 64 bit on the computer of mine. well I am looking to build RPM and I have got following error message on the screen while doing the same on the system of mine. The error message can be stated as ‘RPM build errors: Bad exit status from /var/tmp/rpm-tmp.61655 (%prep)’. I am not having any idea why this issue is being happening in the situation of mine. Let me know if you are having any help on this particular situation. Thanks a lot in advance.

  2. #2
    Join Date
    Nov 2009
    Posts
    824

    Re: Getting error while building iplist rpm on the CentOS.

    I am suspecting that the rpmbuild process is attempting to cd iplist-0.29 which you can found into the script file var/tmp/rpm-tmp.61655. The CD process is error out with the ‘No such file or directory’. Also one step further you need to look on the content of the SOURCES/iplist-0.29.tar.bz2 tarball. You need to see whether it is expanding to iplist-0.29/* or iplist/* ? if there is an error into .spec file then you should use the following instruction.
    Code:
    %prep
    %setup -q -n iplist

  3. #3
    Join Date
    Apr 2009
    Posts
    970

    Re: Getting error while building iplist rpm on the CentOS.

    I am not agreeing with the idea which you have mentioned over here in the previous post. I think you have executed above mentioned command on the terminal of yours.
    Code:
    sudo chown -R user:group /usr/src/redhat/*
    According to me you need to build the RPM as a root of computer and see whether you are able to find the difference in the situation.

  4. #4
    Join Date
    Nov 2009
    Posts
    792

    Re: Getting error while building iplist rpm on the CentOS.

    Well you need to rebuild the SRPMeach and every time when there is security updates are available. Before you go for rebuild the SRPM you need to look for the desired package which is available into repositories. The possibility of the success of rebuilding of the SRPMpackage is depend on the thing how CentOS is distributed. There would be great chance of the success if you have rebuilded SRPM with Red Hat and CentOS.

  5. #5
    Join Date
    Nov 2009
    Posts
    1,416

    Re: Getting error while building iplist rpm on the CentOS.

    The simplest way to rebuild SRPMis by using the rpmbuild –rebuild command. This particular command is used to unpack the SRPMfile into the specific and source file. After that you need to use the instruction which is provided while building the RPM. For example you need to use the following command on the terminal.
    Code:
    [user@host ~]$ rpmbuild --rebuild /tmp/mypackage-1.0.0-1.src.rpm
    If anything wrong happens it would simply prompt an error message on the screen.

  6. #6
    Join Date
    Nov 2009
    Posts
    1,292

    Re: Getting error while building iplist rpm on the CentOS.

    If you are looking to install SRPM package on the computer you need to use the rpm –I command with the SRPM package. You can also use the rpm -qpl in order to list the files which is being contained on the SRPM Package. When you are supposed to install the SRPM package you need to use the same directory and rest of the file should be placed at the /rpmbuild/SOURCES directory on the computer of yours.

Similar Threads

  1. Replies: 5
    Last Post: 18-10-2011, 08:43 PM
  2. Error with software RAID CentOS 5.5
    By Wave in forum Operating Systems
    Replies: 5
    Last Post: 07-05-2011, 12:16 PM
  3. Replies: 5
    Last Post: 06-05-2011, 10:30 AM
  4. Replies: 5
    Last Post: 04-05-2011, 10:50 AM
  5. yum update error in centos
    By lickdafun in forum Operating Systems
    Replies: 4
    Last Post: 02-05-2011, 04:44 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,752,105,760.49439 seconds with 16 queries