LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-08-2003, 03:34 AM   #1
zebra5
LQ Newbie
 
Registered: Oct 2003
Distribution: mandrake 9.1
Posts: 7

Rep: Reputation: 0
Question rpmbuild: command not found


I have just installed Mandrake 9.1.
But this distribution don't recognize my modem BCM v.90
So I try to compile a new rpm but i get this error :
'bash: rpmbuild: command not found'

Maybe a package is missing to use rpmbuild command??

Thanks a lot for your advises
 
Old 10-08-2003, 10:09 AM   #2
LarryDoliver
Member
 
Registered: Mar 2003
Posts: 126

Rep: Reputation: 17
if you're just installing an rpm, just use the 'rpm' command, not 'rpmbuild'.

there should be an rpm on the install CD's for rpm-devel, install those to get rpmbuild
 
Old 10-08-2003, 12:47 PM   #3
zebra5
LQ Newbie
 
Registered: Oct 2003
Distribution: mandrake 9.1
Posts: 7

Original Poster
Rep: Reputation: 0
In fact, I have downloaded a src.rpm for my modem and then apply this procedure:

#########################################
$ rpm2cpio BCMSM-3.4.19-6.src.rpm | cpio -i

At this point you should have a SPEC file and a tarball in your
BCMSM-sources/ directory. The SPEC file is kernel dependent, so you
cannot use rpmbuild. Instead, do:

$ tar xzf BCMSM-3.4.19.tar.gz
$ cd BCMSM-3.4.19/
$ make rpm RPM_KERNELS=<desired kernel versions> KERNEL_DIR=/usr/src
#########################################

When I execute :
make rpm RPM_KERNELS=<desired kernel versions> KERNEL_DIR=/usr/src

I get the error:
"bash:rpmbuild :command not found"

That's why I need to use rpmbuild
Well, I will try to find rpm-devel on my CD and install it to get rpmbuild command.

Another question:
For mandrake 9.1, where is the base directory (KERNEL_DIR)where kernel sources are installed ? (i.e. KERNEL_DIR=/usr/src, is it correct?)

Thanks a lot
 
Old 10-08-2003, 03:31 PM   #4
LarryDoliver
Member
 
Registered: Mar 2003
Posts: 126

Rep: Reputation: 17
this it a totally screwball way for them to distribute source files!

what you are doing is taking a file called src.rpm and unpacking (rpm2cpio) to a tar file, untarring it (tar x), making a "real" rpm (make rpm), then I assume you have to go install that rpm.


whew....


Try this: rpm -ihv src.rpm

if that fails (I'll bet it does), then try (instead of 'make rpm')
"./configure && make && make install"


and your kernel source directory would probably be /usr/src/linux or /usr/src/linux-2.4
 
  


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
bash: <command name> command not found smash Programming 5 03-13-2006 09:48 AM
rpmbuild: command not found ltt19 Linux - Software 7 11-28-2004 01:34 PM
cd.. command not found?!? xtremcoder Fedora 4 10-06-2004 05:43 PM
Problems with libpng not found when using rpmbuild on a .src file superduty455 Linux - Software 5 09-16-2004 04:15 PM
rpmbuild-command not found arnold_it Linux - Software 4 08-11-2003 09:54 AM

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

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