Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-19-2004, 09:25 PM   #1
Registered: Jun 2003
Distribution: Redhat
Posts: 87

Rep: Reputation: 15
building rpm package question

I downloaded package courier-imap-3.0.4.tar.bz2 and at that site it show me to build rpm package by type following command
rpmbuild -ta courier-imap-3.0.4.tar.bz2

I did that and received following error:

error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)

What did I do wrong? I'm using RedHat V.3(version 10!?)

Thank you

Old 05-20-2004, 08:20 PM   #2
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
rpmbuild is for building source rpms. They are named name.src.rpm

That file is a compressed tar file. If your trying to build your own rpm files from tarballs you could try something like krpmbuilder.
Old 09-02-2004, 05:41 AM   #3
Registered: Oct 2003
Location: spain
Distribution: fc2, fc3
Posts: 54

Rep: Reputation: 16
Maybe there is inside of the tar.gz package a file with the extension .spec.

If it exists try this:
Copy the spec file to /usr/src/redhat/SPECS
Copy the entire tar.gz package to /usr/src/redhat/SOURCES
Go to the directory /usr/src/redhat/SPECS and execute this command:
rpmbuild -bb <.spec file name here>

This should output the build process and in the last lines you can see where have been output the
rpm packages. Usually /usr/src/redhat/RPMS/i386

1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
building rpm dependency question Neruocomp Red Hat 2 09-14-2005 09:50 PM
building POSTFIX rpm package for Redhat hct224 Linux - Newbie 6 06-16-2004 01:32 AM
can reinstall the rpm package without delete the rpm package eye Red Hat 1 10-20-2003 07:53 AM
RPM Package Question. rvijay Linux - Newbie 9 09-26-2003 09:05 PM
Building own RPM package hems Linux - Newbie 1 11-28-2002 03:16 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration