Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


Closed Thread
  Search this Thread
Old 12-01-2009, 12:21 AM   #1
Registered: May 2008
Posts: 39

Rep: Reputation: 16
Error in Creating rpm package for a simple "Hello World" Program

Hi friends,
I tried to created a simple rpm package for "Hello world" program
Im getting the error while creating rpm package using rpmbuild -bb hello.spec.

My spec file:
#script to build sample rpm
%define ver 1.0
%define rel 1
%define prefix /usr

Name: Demorpm
Version: 1.0
Release: 1.0
Summary: To test the rpm package building process
Group: Applications
License: GPL
URL: None
Source0: %{name}-%{ver}.tar.gz
Source1: %{name}-%{ver}
BuildRoot: /tmp/%{name}-%{ver}-root


To test the sample rpm build



#make configure

rm -rf ${RPM_BUILD_ROOT}
make install



Can any one help me..
Thanks in advance.
Old 12-01-2009, 05:50 AM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2021 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,484

Rep: Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633Reputation: 3633
You are not saying, which error, it's about :

Difficult to repair unknown error ... ?

But I can show a home made simple example, that works.
Then you can compare.

And a "Hello World" spec file instruction
Attached Files
File Type: txt EL5-xfardic-0.8.1.spec.txt (1.5 KB, 31 views)
File Type: txt buildrpm-build--rpm--spec-file--rpmbuild.txt (2.1 KB, 26 views)

Last edited by knudfl; 12-01-2009 at 06:09 AM.
Old 12-01-2009, 08:26 AM   #3
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Continue here:

Closed Thread

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
error in creating rpm package for a simple "Hello World" c program jayasekar Linux - Newbie 8 12-02-2009 12:53 AM
"Failed Dependency error" while installing RPM for "DateTime" perl modules giridhargopal.cj Linux - Newbie 7 11-19-2008 12:05 AM
How could I get rid of this error? "RPM package is not installed" Selvanind Linux - Newbie 3 06-12-2008 05:41 AM
checkinstall error : *** The "rpm" program is not in your PATH! logicalfuzz Linux - Software 2 09-11-2005 06:40 AM
simple "Hello World" sample in C please plisken Programming 2 02-27-2002 01:36 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:15 AM.

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
Open Source Consulting | Domain Registration