Solved

Error compiling Zaptel for Asterisk PBX

Posted on 2008-10-22
6
1,063 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Almost all Internet protocol telephones have built-in switches at the back that allow you to connect your personal computer to one port and use the other port to connect your phone to to a Cisco switch.   Why we need to connect the PC to the pho…
As companies replace their old PBX phone systems with Unified IP Communications, many are finding out that legacy applications such as fax do not work well with VoIP. Fortunately, Cloud Faxing provides a cost-effective alternative that works over an…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now