LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-23-2003, 05:44 PM   #1
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
RPM help


I found a site on the net that says to install a " src.rpm " file like this:

rpmbuild --rebuild packagename.src.rpm

but it does nothing and i cannot find the --rebuild switch in the rpm man pages.

How do i install a " packagename.src.rpm "

I also tried this " rpm -i packagename.src.rpm "

and i get this: " cannot create %sourcedir

/usr/src/redhat/SOURCES "


thanks.

Last edited by BajaNick; 09-23-2003 at 05:49 PM.
 
Old 09-23-2003, 06:07 PM   #2
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
Hi,

I've just looked in the man page. The --rebuild switch is there, I'll copy it in here for you. It looks like the --rebuild switch just creates a binary rpm file that you can install the normal way.

-----------------------------
rpmbuild --rebuild|--recompile SOURCEPKG ...

When invoked this way, rpmbuild installs the named source package, and
does a prep, compile and install. In addition, --rebuild builds a new
binary package. When the build has completed, the build directory is
removed (as in --clean) and the the sources and spec file for the pack-
age are removed.
----------------------------------

To search a man page you can type / and what to search for... for example in this case /--rebuild



Good luck.

>Craig
 
Old 09-23-2003, 06:12 PM   #3
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
I did this exactly as root and user:

/--rebuild

and nothing comes up except no such file or directory.

I did man rpm and looked through and i do see --rebuild anywhere. Do i have the special no --rebuild version? lol.
ill keep looking.
 
Old 09-23-2003, 06:25 PM   #4
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
Ahh cool, I know what you're doing.

You are looking at the man page for 'rpm'. Which is how you install binary rpm files.

You are trying to use 'rpmbuild' which is a different command. Do this...

man rpmbuild (press enter - the man page for rpmbuild will open)
/--rebuild (press enter)

>Craig
 
Old 09-23-2003, 06:43 PM   #5
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
That didnt work but thanks anyway, now i dont need to use that because i found out i have a whole other problem, if you care to, look at my other post here in the software forum. but i am still curious as to why thats not working.
 
Old 09-23-2003, 07:11 PM   #6
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
rpmbuild -bb pkg_name.src.rpm

try that...although I am posting to yopur other thread as well
 
Old 09-23-2003, 07:21 PM   #7
ehdwuld
Member
 
Registered: Jul 2003
Distribution: Currently Suse 11.1 but have RH7,8,9 / Fedora 7,8_64,9_64,&10_64
Posts: 634

Rep: Reputation: 30
rpmb -ivh --rebuild < packagename> src.rpm

rpmb = rpmbuild ( man rpm )

i think you just missed the intall part
try again and let us know

EDIT: Doh!!!!!!! read the rpmbuild man page
I'm wrong as usual

Last edited by ehdwuld; 09-23-2003 at 07:27 PM.
 
Old 09-23-2003, 07:29 PM   #8
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
nope, that dosnt work either. Thanks but i dont need to do this now.
 
Old 09-23-2003, 08:44 PM   #9
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
well just to note anyways, i am pretty sure if you manually create the SOURCES directory that error will go away and everything should be cool again
 
  


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
rpm -Uvh does not work with header & rpm files in /var/spool/up2date jd_no7 Linux - Software 1 05-17-2004 05:24 PM
How do I force an older rpm to install over a newer rpm of wine onyx Linux - Software 4 02-20-2004 12:44 AM
rpm error only says"rpm: relocation error: rpm: undefined symbol: poptAliasOptions" dlrsims Linux - Newbie 2 11-14-2003 09:22 PM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 07:19 AM
Help : rpm dependency error when install video driver rpm ymdwxm Linux - Software 1 04-04-2003 04:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:34 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