LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-14-2003, 08:49 PM   #1
iamthewind
Member
 
Registered: Sep 2003
Posts: 51

Rep: Reputation: 15
how to use "# rpm -rebuild" ??


when I was using # rpm -rebuild ***.src.rpm It replied me that :
rpm: arguments to --root (-r) must begin with a /

Is there anybody explain it ? and tell me how to solve it

Thank you very much !
 
Old 10-14-2003, 08:54 PM   #2
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
rpmbuild --rebuild ---->for newer red hat and mdk systems

rpm --rebuild ----> for older versions
 
Old 10-14-2003, 08:54 PM   #3
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
You need double hyphens: rpm --rebuild ***.src.rpm, otherwise rpm won't recognize the option (it thinks you're specifying the -r switch with "ebuild" as parameters ).

Håkan
 
Old 10-14-2003, 09:51 PM   #4
iamthewind
Member
 
Registered: Sep 2003
Posts: 51

Original Poster
Rep: Reputation: 15
thanks for your help ,
but ......
No , if I input # rpmbuild ...... It reply to me :command not found
if I input # rpm ---rebuild ......It reply to me: unknown option
if I input # rpm -rebuild .........It reply to me :rpm: arguments to --root (-r) must begin with a /

I really don't know what should I do !!
 
Old 10-14-2003, 09:55 PM   #5
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
what distro?
 
Old 10-14-2003, 10:07 PM   #6
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
Quote:
Originally posted by iamthewind
thanks for your help ,
but ......
No , if I input # rpmbuild ...... It reply to me :command not found
if I input # rpm ---rebuild ......It reply to me: unknown option
if I input # rpm -rebuild .........It reply to me :rpm: arguments to --root (-r) must begin with a /

I really don't know what should I do !!
the second one doesn't work because you put in 3 hyphens. use 2 hyphens... --rebuild.
 
Old 10-15-2003, 12:24 AM   #7
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
good eye megaspaz
 
Old 10-15-2003, 05:50 AM   #8
iamthewind
Member
 
Registered: Sep 2003
Posts: 51

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by megaspaz
the second one doesn't work because you put in 3 hyphens. use 2 hyphens... --rebuild.

No,No,No,No,No,No,No,

It's my fault ,I am quite sorry ..
but how can u take me as a fool??????
It of course occured when I am writting this thread.
I am surly can't put in 3 hyphens when I am working ,and just try once !!!

But thank you all the same
 
Old 10-15-2003, 07:45 AM   #9
malcidragon
Member
 
Registered: Feb 2002
Location: Leeds UK
Distribution: Fedora Core 3
Posts: 67

Rep: Reputation: 15
rpmbuild comes with rpm-devel I think, or one of the rpm-
packages but not with the basic install....
 
Old 10-15-2003, 08:09 AM   #10
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
I don't think he intended to "take you for a fool" as you say. try to see if you have the rpm-devel package installed:

rpm -qa | grep rpm
 
Old 10-15-2003, 08:38 AM   #11
iamthewind
Member
 
Registered: Sep 2003
Posts: 51

Original Poster
Rep: Reputation: 15
No ,I never mind him ,
I am sorry! all are because of my knowless


the reply of rpm -qa | grep rpm is
rpm-4.2-0.69
rpm-python-4.2.0.69

is version (rpm-4.2 ) quite low?
 
Old 10-15-2003, 10:20 AM   #12
lupin_the_3rd
Member
 
Registered: Oct 2003
Location: Memphis, TN
Distribution: Slackware current
Posts: 485

Rep: Reputation: 30
no, you just don't have the development packages installed... they should be on your distros install disk.
 
  


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
Telling people to use "Google," to "RTFM," or "Use the search feature" Ausar General 77 03-21-2010 11:26 AM
Where to download rpm packages of "gocr" and "kooka" satimis Linux - Software 6 02-23-2006 11:35 PM
Any difference? "Firefox.rpm" "Firefox.rpm.bin" Mic Q SUSE / openSUSE 4 05-06-2005 02:15 AM
Difference Between "Source RPM" "Static RPM" Mic Q SUSE / openSUSE 2 03-30-2005 06:51 PM
What's the difference between "rpm" and "*.noarch.rpm"? kpachopoulos Linux - Newbie 1 08-12-2004 11:03 AM

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

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