LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-28-2009, 11:46 PM   #1
dar2009
LQ Newbie
 
Registered: May 2009
Posts: 9

Rep: Reputation: 0
"You do not appear to have the sources for the 2.6.9-78.EL kernel installed


I am trying to install dahdi-linux-2.0.0 on CentOS and get the above error when I 'make'.

If I do 'locate kernel-2.6.9' I get:

/usr/src/redhat/SOURCES/kernel-2.6.9-i586-smp.config
and about 17 more files under this, so I presume I 'have the sources'.

I have tried to reference this location with the 'make' command, using '--with' and '--include-dir' etc. Do I need to copy all these files to the 'dahdi-linux-2.0.0' directory? I presume there is a command to 'make' and reference the source files location...? Am I missing something?

D
 
Old 05-28-2009, 11:55 PM   #2
smartboyathome
LQ Newbie
 
Registered: Feb 2007
Posts: 4

Rep: Reputation: 0
It is looking for the sources for the kernel, not the binary itself (which is what you have). I don't know RPM well, but you can get the sources for the linux kernel itself here and use that.
 
Old 05-29-2009, 12:24 AM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Just install the kernel-devel package. That should be all you need.
 
Old 05-29-2009, 01:50 AM   #4
dar2009
LQ Newbie
 
Registered: May 2009
Posts: 9

Original Poster
Rep: Reputation: 0
The kernel-devel package is installed.

Sorry, I'm a total newbie at this.

When you say I need the sources, but I have the binary, how do I know when I have the sources? Source files are .c extension, right?

Under /root/downloads/linux-2.6.9/kernel

I have

acct.c exit.c kthread.c profile.c sys.c
audit.c extable.c Makefile ptrace.c sysctl.c
auditsc.c fork.c module.c rcupdate.c time.c
capability.c futex.c panic.c resource.c timer.c
compat.c intermodule.c params.c sched.c uid16.c
configs.c itimer.c pid.c signal.c user.c
cpu.c kallsyms.c posix-timers.c softirq.c workqueue.c
dma.c kmod.c power spinlock.c
exec_domain.c kprobes.c printk.c stop_machine.c

Are these not the source files?
 
Old 05-29-2009, 01:53 AM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Look in /usr/src/kernels
 
Old 05-29-2009, 02:30 AM   #6
dar2009
LQ Newbie
 
Registered: May 2009
Posts: 9

Original Poster
Rep: Reputation: 0
/usr/src/kernels

has

2.6.9-78.0.22.EL-i686 2.6.9-78.0.22.EL-smp-i686
 
Old 05-29-2009, 03:00 AM   #7
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Those are the sources for their respective kernels. Did you run ./configure before you tried make?
 
Old 05-29-2009, 03:06 AM   #8
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Always back to Fedora
Posts: 263

Rep: Reputation: 51
If you have CENTOS running, then you should have a Package Manager gui somewhere - probably on the System>Administration>Add/Remove Software.

You can use this to install kernel development packages. Or more simply type in :-

# yum install kernel-devel

this will install the development packages for your running kernel.
 
Old 06-01-2009, 11:33 PM   #9
dar2009
LQ Newbie
 
Registered: May 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks.

I have already run # yum install kernel-devel.

"Those are the sources for their respective kernels".

Sorry, I'm going around in circles here. If I need the kernel sources for 2.6.9, does that mean I have to be running kernel version 2.6.9? On bootup, the CentOS screen says kernel 2.6.9, but if I go to /usr/src and ls, I get linux-2.4 highlighted.

Any info appreciated as I am about to give up!!
 
Old 06-02-2009, 02:37 AM   #10
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Always back to Fedora
Posts: 263

Rep: Reputation: 51
Quote:
Originally Posted by dar2009 View Post
Thanks.

I have already run # yum install kernel-devel.

"Those are the sources for their respective kernels".

Sorry, I'm going around in circles here. If I need the kernel sources for 2.6.9, does that mean I have to be running kernel version 2.6.9? On bootup, the CentOS screen says kernel 2.6.9, but if I go to /usr/src and ls, I get linux-2.4 highlighted.

Any info appreciated as I am about to give up!!
Don't give up. Let's start from scratch and see how we go. Type in

# uname -a

and list that here please.
 
Old 06-02-2009, 11:52 PM   #11
dar2009
LQ Newbie
 
Registered: May 2009
Posts: 9

Original Poster
Rep: Reputation: 0
# uname -a
Linux AsteriskMonitor 2.6.9-78.EL #1 Thu Jul 24 23:46:01 EDT 2008 i686 i686 i386 GNU/Linux
 
Old 06-03-2009, 12:08 AM   #12
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Always back to Fedora
Posts: 263

Rep: Reputation: 51
Quote:
Originally Posted by dar2009 View Post
# uname -a
Linux AsteriskMonitor 2.6.9-78.EL #1 Thu Jul 24 23:46:01 EDT 2008 i686 i686 i386 GNU/Linux
Ok. You obviously are running kernel 2.6.9-78.EL, but you knew that anyway

Now type in

# rpm -qa | grep -i kernel

and list that please. So we don't waste anymore time, if you _don't_ see something like

kernel-headers-2.6.9-78...

listed, then type in

# yum install kernel-headers

You can then try compiling again.
 
Old 06-03-2009, 12:23 AM   #13
ArfaSmif
Member
 
Registered: Oct 2008
Location: Brisbane Australia
Distribution: Always back to Fedora
Posts: 263

Rep: Reputation: 51
Another thing which might be helpful is the web site rpm.pbone.net which searches for precompiled versions of software. I had a quick look there, and found dahdi-linux for RHEL4 and RHEL5 but not for CENTOS, but since CENTOS is basically rebadged RHEL you could download a precompiled package. Also note that dahdi-linux is now at version 2.1.0.4 I think.
 
Old 07-17-2009, 01:02 PM   #14
jesus.francisco
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
Smile Simple

Simple, just run:

yum install kernel-smp-devel

and them go and compile your Zaptel for Asterisk...

Good luck with your PBX.
 
  


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
Nvidia driver install script: "Unable to determine the version of the kernel sources" lumix Linux - Software 9 12-18-2008 07:40 AM
No kernel Sources Installed - I don't get it Chazzman_bm Linux - Newbie 15 03-19-2008 10:13 AM
Installed kernel-devel and source for i686; didn't create directory "build" itsonlyme Linux - Kernel 3 04-05-2007 10:08 AM
Message: Package "kernel-source" needs to be installed by YaST2 first! snarvey SUSE / openSUSE 3 03-17-2006 11:22 PM
9.2rc1 No Kernel Sources Installed??? olias Mandriva 13 11-05-2003 11:39 AM


All times are GMT -5. The time now is 06:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration