LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 03-07-2008, 03:32 PM   #1
spankbot
Member
 
Registered: Aug 2007
Posts: 133

Rep: Reputation: 16
RHEL 5.1 basic - rpm-build missing (has something changed?)


I'm trying to build a custom kernel for RHEL 5.1 basic. The rpm-build command is missing and "yum install rpm-build" does nothing. Is rpm-build deprecated?

Also, I desperately need instructions for building a custom kernel on RHEL 5.1 basic. Long gone are the days where I could simply download a tar ball from kernel.org, compile and boot. It seems I need to use the rpm system now.
 
Old 03-07-2008, 03:43 PM   #2
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
You should be able to build any kernel that comes from kernel.org on that machine. You may have to install some packages via yum in order to compile it (such as ncurses...that one always seems to get me) but it should still compile and work regardless.
 
Old 03-07-2008, 03:59 PM   #3
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Check and see if rpm-build is installed or not; rpm -qa 'rpm*'

One must 'prep' the kernel source before attempting to build a custom kernel as supplied from Red Hat's src.rpm file.

See: http://wiki.centos.org/HowTos/I_need_the_Kernel_Source

But Wells is correct, with all the required tools in place one can build any of the vanilla kernels from kernel.org;

$ uname -a
Linux Aspire5100 2.6.24.3 #1 Wed Feb 27 10:11:58 EST 2008 x86_64 x86_64 x86_64 GNU/Linux

The steps for the Red Hat family are;

make mrproper
make oldconfig
make menuconfig (or xconfig or gconfig)
make
make modules_install
make install
 
Old 03-07-2008, 05:11 PM   #4
spankbot
Member
 
Registered: Aug 2007
Posts: 133

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Wells View Post
You should be able to build any kernel that comes from kernel.org on that machine. You may have to install some packages via yum in order to compile it (such as ncurses...that one always seems to get me) but it should still compile and work regardless.
My problem is that I have a binary driver thats compiled against a specific RedHat kernel, so I really just want to change a few minor features of the current RedHat kernel.

Not only wont yum install rpm-build, but there is no rpm-build on the software DVD, and "yum list available | grep build" returns nothing. "rpm-qa | grep rpm" lists the following.

Code:
rpm-4.4.2-47.el5
rpm-python-4.4.2-47.el5
rpm-libs-4.4.2-47.el5
redhat-rpm-config-8.0.45-22.el5
Searching rhn.redhat.com for packages only lists software for old version of redhat, even though I have a current subscription.
 
Old 03-07-2008, 07:46 PM   #5
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Which specific kernel is this binary driver thats compiled against?? Which binary driver are you talking about anyhow??

The rpm-build package is included on the installation media, and since you have a valid subscription you should be able to install rpm-build via yum.

From a RHEL 5 DVD;
$ ls -al /media/cdrecorder/Workstation/rpm*
-rw-r--r-- 68 root root 571785 Jan 17 2007 /media/cdrecorder/Workstation/rpm-build-4.4.2-37.el5.x86_64.rpm

If you cannot locate the rpm-build-4.4.2-47.el5 package or use yum to install it then check here (CentOS==RHEL minus the legal stuff);

ftp://mirrors.kernel.org/centos/5/os/
 
Old 03-08-2008, 12:54 AM   #6
spankbot
Member
 
Registered: Aug 2007
Posts: 133

Original Poster
Rep: Reputation: 16
The binary driver is for a Tams HP-IB pci card.
http://www.tamsinc.com/hpib/index.htm

Unfortunately, Tams has very poor linux support...
 
Old 03-08-2008, 06:25 AM   #7
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Does not look like they are that bad on support, a little behind maybe. Some vendors do not even bother with Linux support at all. According to this page then do have drivers and such for the 2.6.18-53.el5 kernel, nothing is stopping you from running this kernel.

http://www.tamsinc.com/sicl/82091/82091rev.htm
 
Old 03-09-2008, 02:30 PM   #8
spankbot
Member
 
Registered: Aug 2007
Posts: 133

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Lenard View Post
Does not look like they are that bad on support, a little behind maybe. Some vendors do not even bother with Linux support at all. According to this page then do have drivers and such for the 2.6.18-53.el5 kernel, nothing is stopping you from running this kernel.

http://www.tamsinc.com/sicl/82091/82091rev.htm
Thats the driver I'm using, and it works. The problem is that I have another pci card (8 port serial card) in the same machine that requires me to change a parameter in the kernel.
 
Old 03-09-2008, 03:50 PM   #9
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
OK...........

Did you get your rpm-build rpm issue resolved???
 
Old 03-11-2008, 05:48 PM   #10
spankbot
Member
 
Registered: Aug 2007
Posts: 133

Original Poster
Rep: Reputation: 16
My rpm-build issue was resolved. I have no idea why you can't install this via yum on RHEL5.1. I had to borrow a co-workers DVD.
 
Old 03-11-2008, 06:37 PM   #11
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
What subscription level do you have at RHN?? You need a fairly high subscription level, the basic does not provide access to such things as the development tools.
 
Old 02-12-2013, 09:28 AM   #12
Wells
Member
 
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 417

Rep: Reputation: 53
HAHAHA.... OK, I just did a search for what package rpm-build was located in, and this thread was at the top of the pile for search responses... and it answered my question.

The sad thing is, I basically answered my own question five years ago!
 
  


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
Installing MS Windows XP on Basic RHEL WS 4.0 ravisunny2 Red Hat 5 11-17-2007 07:05 AM
How can I generate / build and RPM from *.src.rpm file sreekumartg Red Hat 3 02-23-2007 05:23 PM
logwatch on RHEL keeps saying files have changed laggerific Linux - Software 2 02-23-2006 01:46 PM
cannot build source rpm/ rpm questions kpachopoulos Fedora 3 07-24-2005 09:15 AM
i just purchased RHEL WS basic edition Q's Razgo Red Hat 2 01-06-2004 06:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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