LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-24-2003, 08:28 PM   #1
endezeichen
Member
 
Registered: Nov 2003
Posts: 48

Rep: Reputation: 15
running an rpm


I downloaded Samba because for some reason when installing from directly from the redhat disk it freezes. Anyway, I typed in the terminal

rpmbuild --rebuild samba-3.0.0-2.src.rpm
It said no such file or directory exists... I assume im supposed to type the full directory in somewhere in the line, which is /home/endezeichen/samba-3.0.0-2.src.rpm Where in the line should I type this?? Is there an easier way?
Thanks
 
Old 11-24-2003, 08:37 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I think that before a rebuild you need to
install the source rpm? Not that I know a
lot about rpms, since I don't use them...


Cheers,
Tink
 
Old 11-24-2003, 08:58 PM   #3
hazza
Member
 
Registered: Nov 2003
Location: Australia
Distribution: Mandrake, SUSE, Fedora
Posts: 122

Rep: Reputation: 15
It could be a problem with the build directories. Thread title should probably be building an rpm. Anyway, one suggestion would be to configure rpmbuild for your user account to build source rpms under your home directory. If you don't have the file ~endezeichen/.rpmmacros then make one and put the following in it:

# .rpmmacros
%_topdir /home/endezeichen/rpm
%_tmppath /home/endezeichen/tmp

Make sure the the directories the following directories exist with the following under you user account:

$ mkdir -p ~endezeichen/tmp
$ mkdir -p ~endezeichen/rpm
$ for d in BUILD RPMS SOURCES SPECS SRPMS; do mkdir -p ~endezeichen/rpm/$d; done
$ for d in athlon i386 i486 i586 i686 noarch; do mkdir -p ~endezeichen/rpm/RPMS/$d; done

Then try to build it with rpmbuild:

rpmbuild --rebuild ~/endezeichen/samba-3.0.0-2.src.rpm

Try all of this to see if it works.
 
Old 11-24-2003, 09:52 PM   #4
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Also, make sure the rpm-build package is installed It's separate from the rpm package on Mandrake; probably is in Redhat too.
 
Old 11-24-2003, 09:54 PM   #5
tornadoburn
LQ Newbie
 
Registered: Nov 2003
Location: Montreal, Canada
Distribution: RH 7.1
Posts: 23

Rep: Reputation: 15
This may be irrelevant or just an answer from another noob - but given the fact that smaba is not installing of the disk:

you just installed a new version of RH on a PC right?

type rpm -ql samba - to see wat is installed(package wize)

if the rpm doesn't have any previous packages - just install it rather then rebuilding it? maybe just a suggestion
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running a RPM on Solaris mattcob Solaris / OpenSolaris 2 08-23-2005 06:22 PM
running rpm on slackware djgerbavore Slackware 7 06-01-2005 02:44 PM
Segmentation fault while running RPM KaruppuSwamy.T Linux - General 5 12-03-2004 05:56 AM
Always error when running an rpm rsumbeling Linux - Software 2 11-13-2004 10:50 AM
Problem running rpm jaggu Linux - Software 5 01-22-2004 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:26 PM.

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