[asterisk-users] Step-by-Step Asterisk and MeetMe Help

Jimmy Ezell jezell at hmhca.com
Tue May 19 12:55:04 CDT 2009


>-----Original Message-----
>From: asterisk-users-bounces at lists.digium.com
>[mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of Tilghman
>Lesher
>Sent: Tuesday, May 19, 2009 09:39 AM
>To: Asterisk Users Mailing List - Non-Commercial Discussion
>Subject: Re: [asterisk-users] Step-by-Step Asterisk and MeetMe Help
>
>
>On Monday 18 May 2009 19:26:21 Jimmy Ezell wrote:
>> make[1]: Leaving directory 
>`/usr/src/kernels/2.6.9-78.0.13.EL-smp-i686'
>> [ `id -u` = 0 ] && /sbin/depmod -a 2.6.9-78.ELsmp || :
>
>Here is your problem.  Your kernel name is "2.6.9-78.ELsmp" 
>and the kernel
>name you just compiled for is "2.6.9-78.0.13.EL-smp-i686".  These two
>strings need to match EXACTLY, or you're compiling modules for 
>the wrong
>kernel.  Probably the easiest course of action is to build the 
>kernel against
>those same sources, and reboot into that kernel.
>
>-- 
>Tilghman
>
I thank you.  I am sure you must be right.  Here is where I show my Linux ignorance.  I have been confused about the kernel thing for a while. Let me tell you what I have done so perhaps you can explain what I need to do to fix it.

The asterisk book said to create a symbolic link like this:
# ln -s /usr/src/'uname -r' /usr/src/linux-2.4

This did not work for me because the uname command spits out 2.6.9-78.ELsmp and the /usr/src/2.6.9-78.ELsmp directory does not exist on my machine.  I looked in the /usr/src/ directory and saw a subdirectory called kernels and below that 2 subdirectories called 2.6.9-78.0.13.EL-i686 and 2.6.9-78.0.13.EL-smp-i686.

So I pointed my symbolic link to the 2.6.9-78.0.13.EL-smp-i686 directory because that was the closest to what the 'name -r' command produced.  After doing this all my make commands ran and 95% of it seems to be working, but not zaptel. I am thinking that I need to point my symbolic link somewhere else but I am not sure where.  

I did a search for the 2.6.9-78.ELsmp directory and got: 
[root at localhost /]# find -iname 2.6.9-78.ELsmp
./lib/modules/2.6.9-78.ELsmp

This is what I found in that directory
[root at localhost 2.6.9-78.ELsmp]# ls
kernel          modules.dep          modules.isapnpmap  modules.usbmap
modules.alias   modules.ieee1394map  modules.pcimap
modules.ccwmap  modules.inputmap     modules.symbols


I tried to point my symbolic link to that directory
# ln -s /lib/modules/2.6.9-78.ELsmp /usr/src/linux-2.4
and now when I do the make on zaptel I get this error:

[root at localhost zaptel-1.4.12.1]# make
make[1]: Entering directory `/usr/src/zaptel-1.4.12.1'
echo "You do not appear to have the sources for the 2.6.9-78.ELsmp kernel installed."
You do not appear to have the sources for the 2.6.9-78.ELsmp kernel installed.
exit 1
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/src/zaptel-1.4.12.1'
make: *** [all] Error 2

I am sure I have done some basic thing wrong here. These are exactly the kinds of things I am trying to sort out and document so that a mostly Windows guy like myself can make use of Asterisk.

Jimmy Ezell
http://qvlweb.blogspot.com/2009/04/asterisk-pbx-install-index.html




>



More information about the asterisk-users mailing list