LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-17-2004, 01:53 AM   #1
Flamenco
LQ Newbie
 
Registered: Nov 2004
Location: VIET NAM
Distribution: Mandrake Linux 10.0 Official
Posts: 21

Rep: Reputation: 15
How to build a rpm file from the source file?


I have some project that written with C ++, i want make a rpm file for every one that using Mandrake linux can download and install it easyly. But i don't know how to make it!
Can u help me? Thanks!
 
Old 12-17-2004, 03:23 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you google for the terms 'mandrake rpm howto'
you will find this link:
http://qa.mandrakesoft.com/twiki/bin/view/Main/RpmHowTo
 
Old 12-17-2004, 12:00 PM   #3
cormander
Member
 
Registered: Dec 2004
Location: Hawaii
Distribution: Fedora & CentOS
Posts: 72

Rep: Reputation: 15
If you know how to use emacs, do this:

emacs yourpackage.spec

It will create a new file, and automatically put most of what you need in a spec file in there, to help you start.

Fill it out as best you can, then try building it:

rpmbuild -ba yourpackage.spec

Make sure your package files are in your rpmbuild directory, or else your build won't see the files.

-Corey
 
Old 12-17-2004, 12:04 PM   #4
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
On top of building an RPM, can you also list HOW you compile from source? For some reason, the whole ./configure make make install thing works 0 out of 20 times that I've tried. I hate how us Mandrake users are totally locked down and depend on RPM's to install software.
 
Old 12-17-2004, 12:09 PM   #5
cormander
Member
 
Registered: Dec 2004
Location: Hawaii
Distribution: Fedora & CentOS
Posts: 72

Rep: Reputation: 15
The last time I used mandrake was a while ago ( last year ), but I don't recall having any problems with make installs.

What sort of errors do you get?

-Corey
 
Old 12-22-2004, 03:40 AM   #6
Flamenco
LQ Newbie
 
Registered: Nov 2004
Location: VIET NAM
Distribution: Mandrake Linux 10.0 Official
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Micro420
On top of building an RPM, can you also list HOW you compile from source? For some reason, the whole ./configure make make install thing works 0 out of 20 times that I've tried. I hate how us Mandrake users are totally locked down and depend on RPM's to install software.
Sorry! I don't understand! I've never met an error with these command since i 've intalled all libbraries that included in Mandrake 10.0 Official and some other libs that software requied!
 
  


Reply



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
build rpm file . bruse Linux - Newbie 4 09-11-2005 10:06 AM
Unable to build RPM file from tarball tkt Linux - Newbie 1 04-26-2005 02:29 AM
How do i store the output of an rpm or source to file? dr_zayus69 Linux - Software 8 03-07-2005 09:03 AM
where does it go when rpm a rpm source file feetyouwell Linux - Software 1 09-03-2004 04:14 PM
How to build an RPM from a source file ? redhat_zephyr Linux - General 1 03-12-2004 01:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

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

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