LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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, 02: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, 04:23 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
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, 01: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, 01: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, 01: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, 04: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


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


All times are GMT -5. The time now is 05:03 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration