?
Solved

Error compiling Zaptel for Asterisk PBX

Posted on 2008-10-22
6
Medium Priority
?
1,071 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 

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 2000 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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

The point of this post is to give you a copy/paste installation solution to setting up Asterisk 1.6 on Ubuntu 9.04 (or similar) server. # Setup the system apt-get install subversion apt-get install make apt-get install linux-source kernel-p…
How To Create Custom / Distinctive Ring Tones on Polycom Phones Purpose and Overview When creating a custom ring tone, you have simple aspirations: to make your phone cooler than everyone else's. Perhaps you need a louder ringer. Perhaps you w…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

771 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