Solved

Error compiling Zaptel for Asterisk PBX

Posted on 2008-10-22
6
1,065 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
google voice, ring two phones 2 47
Cisco UC voicemail sent to multiple mailboxes 1 62
Free PBX 3 79
exchange UM and Lync quastiones 6 73
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

773 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