LinuxQuestions.org
Visit Jeremy's Blog.
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 04-13-2007, 10:27 AM   #1
rsatapathy
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Rep: Reputation: 0
Problem installing Asterisk


I'm installing asterisk in my Dell DHM system on the fedora core 6 platform.
I'm getting this error mesg.

Quote:
[root@dialer zaptel-1.2.16]#make
grep: /lib/modules/2.6.18-1.2798.fc6/build/include/linux/autoconf.h: No such file or directory
Makefile:211: target `ztdummy.o' given more than once in the same rule.

You do not appear to have the sources for the 2.6.18-1.2798.fc6 kernel installed.
make: *** [all] Error 1
[root@dialer zaptel-1.2.16]#
Can anyone help me on this topic ?
 
Old 04-13-2007, 12:51 PM   #2
andy77
LQ Newbie
 
Registered: Jul 2004
Location: Los Angeles, CA
Distribution: Fedora Core
Posts: 23

Rep: Reputation: 15
It seems like you need to install the kernel headers. Try 'rpm -qa | grep kernel' and make sure it returns kernel-devel and kernel-headers. If it doesn't then install the missing package via yum.
 
Old 04-13-2007, 12:57 PM   #3
roderickm
LQ Newbie
 
Registered: Apr 2007
Posts: 4

Rep: Reputation: 0
Installing kernel source on FC6

Google is your friend! Notice the error message, You do not appear to have the sources for the 2.6.18-1.2798.fc6 kernel installed. Then search appropriately. You'll find something along these lines:

http://www.mjmwired.net/resources/mj...html#kernelsrc
 
Old 04-13-2007, 11:55 PM   #4
rsatapathy
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Hi andy thanks for you sugestions. I'm giving below the output of the command
#rpm -qa | grep kernel
Quote:
[root@dialer ~]# rpm -qa | grep kernel
kernel-headers-2.6.18-1.2798.fc6
kernel-2.6.18-1.2798.fc6
kernel-devel-2.6.18-1.2798.fc6
[root@dialer ~]#
I think the kernel headers are installed. So what more do i need to check ? Please help.

Last edited by rsatapathy; 04-13-2007 at 11:57 PM.
 
Old 04-15-2007, 09:43 AM   #5
roderickm
LQ Newbie
 
Registered: Apr 2007
Posts: 4

Rep: Reputation: 0
Quote:
Originally Posted by rsatapathy
I think the kernel headers are installed. So what more do i need to check ?
According to the Zaptel Makefile, you should only see that error when the $(KSRC) variable is empty or the directory to which $(KSRC) refers does not exist:

Code:
@if [ -z "$(KSRC)" -o ! -d "$(KSRC)" ]; then \
   echo "You do not appear to have the sources for the $(KVERS) kernel installed."; \
   exit 1 ; fi
Looking back through the Makefile, we find that $(KSRC) is defined as:

Code:
KVERS:=$(shell uname -r)
endif
ifndef KSRC
  ifneq (,$(wildcard /lib/modules/$(KVERS)/build))
    KSRC:=/lib/modules/$(KVERS)/build
  else
    KSRC_SEARCH_PATH:=/usr/src/linux-2.4 /usr/src/linux
    KSRC:=$(shell for dir in $(KSRC_SEARCH_PATH); do if [ -d $$dir ]; then echo 
$$dir; break; fi; done)
  endif
endif
We know that $(KVERS) is defined, because the kernel version shows up in the error message. Look in /lib/modules/`uname -r`/build for your kernel headers. If not there, look also in /usr/src/linux-2.4 and /usr/src/linux for full sources. Without knowing more, my guess is that RPM thinks those packages are installed, but they're not (or no longer) there. You could use RPM to force-upgrade those headers, or install the kernel source headers manually without RPM.

Good luck!
 
Old 04-16-2007, 11:23 AM   #6
rsatapathy
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks roderickm for your sujestions. It was indeed because of the kernel version
i found out the solution anyhow. Thanks for your effort though
 
  


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
asterisk configuration to make a call PC - PC through asterisk priya001 Linux - Server 0 11-08-2006 06:06 AM
LXer: VoIPowering Your Office with Asterisk: Shiny New Asterisk 1.4 LXer Syndicated Linux News 0 11-03-2006 06:54 AM
Installing Asterisk 1.2.3 procfs Linux - Software 3 02-10-2006 07:57 AM
Installing Asterisk on SuSE 9.0 Pro... MATDEV SUSE / openSUSE 0 10-16-2004 09:12 PM

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

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