Solved

Error compiling Zaptel for Asterisk PBX

Posted on 2008-10-22
6
1,067 Views
Last Modified: 2013-12-21
Hello Experts -

I am in desparate need of some help.  I am trying to setup an Asterisk 1.6 box on CentOS 5.2 text mode.  I got it to work with the GUI; however, from what I've read online, text mode is definitely the way to go.  Anyhow, when trying to install the packages needed to run Asterisk, I get a No Package Available for the kernel-smp-devel package.  I didn't know how big of a problem this was goingt to cause until I tried to install the Zaptel package.  Here is what I do...

make clean [works great]
./configure [works great]
make menuselect [works great]
make [returns error]

You do not appear to have the sources for the 2.6.18-92.e15 kernel installed...
exit 1
make[1]: *** [modules] Error 1
make[1]: Leaving directory '/usr/src/zaptel-1.4.12.1'
make: *** [all] Error 2

The kernel-devel package installs fine.  What can I do?  I need immediate help!

Thanks in advance.
0
Comment
Question by:chezbrgrs
  • 3
  • 3
6 Comments
 
LVL 36

Expert Comment

by:grblades
ID: 22784166
Try installing the kernel source code. You can get the RPM from :-
http://mirror.centos.org/centos/5.2/os/SRPMS/kernel-2.6.18-92.el5.src.rpm
0
 

Author Comment

by:chezbrgrs
ID: 22785045
Isn't that what 'yum install -y kernel-devel' does?  If I use 'uname -r', it outputs that I have 2.16.18-92.e15.
0
 
LVL 36

Expert Comment

by:grblades
ID: 22785648
Possibly. Whats in each package varies by distribution.

Can you run "rpm -qa | grep kernel" so I can see what you have installed. Normally I would expect you to need :-

kernel (oviously)
kernel-devel
kernel-headers
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

Author Comment

by:chezbrgrs
ID: 22785745
Here is the output:

kernel-headers-2.6.18-92.e15
kernel-2.6.18-92.e15
kernel-devel-2.6.18-92.e15

If I do a 'uname -a', I get:

Linux localhost.localdomain 2.6.18-92.e15 #1 SMP ...

Isn't that what the kernel-SMP-devel package is for (SMP)?

Thanks!
0
 
LVL 36

Accepted Solution

by:
grblades earned 500 total points
ID: 22785885
SMP is the multiprocessor kernel. For a single processor machine it was the case that a single processor optimised kernel was a few percent faster than a multiprocessor based one but nowerdays with multiprocessor being the standard for new machines (core2 due etc...) I suspect that all the kernels are multi processor enabled.

What you have looks fine.

I have found http://www.asteriskguru.com/tutorials/asterisk_installation_compilation_centos.html
Have a look through that and in particular the following paragraph which I think is your problem:-

"CentOS doesn't install the kernel sources into the /usr/src/linux directory as is written in Zaptel's and Asterisk's Makefile. Go to `/usr/src` and create a link named 'linux' to your kernel sources directory (the default place for your kernel's sources is /usr/src/kernels/...). The result should look like this:"
0
 

Author Closing Comment

by:chezbrgrs
ID: 31509071
It worked!!!  I just had to create that symbolic link which I didn't have to do in the GUI installation.

Thank you so much!!!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Cisco Telephony RegEx Help 2 88
Making Cisco Phones More Resiliant to High Latency 3 80
CIsco UCM route out PSTN instead of over WAN 2 65
Listening device 21 75
Every year the snow affects people and businesses. According to the Federation of Small Businesses (FSB), in 2009, UK businesses lost an estimated £1.2bn (http://news.bbc.co.uk/1/hi/business/7864804.stm) because of bad weather. This article was c…
I recently purchased a Bluetooth headset called the Music Jogger (model BSH10). The control buttons on it look like this: One of my goals is to use it as the microphone and speakers for Skype calls. In that respect, it works well. However, I …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question