CentOS下make menuconfig出现install ncurses的问题解决办法

The first step that you should make is to you to choose which version of Asterisk you want to install.
Asterisk 1.2 - the stable version
Asterisk 1.4 - the version that is currently in beta testing
When you know which version you want to install download the according packages. 

Note that we will install also libpri and zaptel packages. They are optional for Asterisk but if you want to use Asterisk with MeetMe (see  MeetMe application  and  meetme.conf ) or to use MusicOnHold you'll have to install zaptel. The  TDMoE cards  will also need the zaptel module in order to work correctly. If you will use  PRI cards  you'll have to install libpri module.

For Asterisk 1.2:

For Asterisk 1.4:
 



Now check the exact version of your kernel. You can achieve this by typing `uname -a`. The output should be something like this: ` Linux luser 2.6.17-1.2142_EL #1 Tue Jul 11 22:41:14 EDT 2006 i686 i686 i386 GNU/Linux `. Check if you are using 2.6 or 2.4 kernel. Notice that. We'll need this info later. You should check if you have installed the kernel sources ( for the current version of the kernel ) on your machine. To achieve this type `rpm -q kernel-devel` The output of the screen should be something like this:
running_at_console.gif

Note that if you don't have kernel sources you should install them. You can use  yum  again: ` yum install kernel-devel `. If you use this command  yum  will install the sources for your current version of the kernel.

It is time to check for the availability of some other packages:
rpm -q bison
rpm -q bison-devel
rpm -q ncurses
rpm -q ncurses-devel
rpm -q zlib
rpm -q zlib-devel
rpm -q openssl
rpm -q openssl-devel
rpm -q gnutls-devel
rpm -q gcc
rpm -q gcc-c++
 

If any of those packages are not installed install them by using yum
yum install bison
yum install bison-devel
yum install ncurses
yum install ncurses-devel
yum install zlib
yum install zlib-devel
yum install openssl
yum install openssl-devel
yum install gnutls-devel
yum install gcc
yum install gcc-c++
 

If yum is unable to find one or more of these packages, try your luck with  PBone . You should find the required packages there. When you download them, install them with either of those:
rpm -i PACKAGE.rpm
rpm -Uvh PACKAGE.rpm
 


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:


Now extract the downloaded sources by the command ` tar -vxzf PACKAGE.tar.gz `, where PACKAGE.tar.gz are the packages that we downloaded (libpri, zaptel and asterisk itself).

Installing Libpri:
cd /path/to/source/libpri
make
make install
 

Installing Zaptel:
cd /usr/src/asterisk/zaptel
# if you have a 2.4 kernel you should type just make
make
# if you have a 2.6 kernel you should type make linux26
make linux26 - if you have a 2.6 kernel
make install
 

Installing Asterisk:
cd /usr/src/asterisk/asterisk
# before making Asterisk you have to install mpg123 package (to be able to play mp3 files for music on hold).
make mpg123
# for Asterisk v1.4 you should start configure script
./configure
make
make install
make samples
 


In order to verify the asterisk installation start your asterisk daemon by typing `safe_asterisk` and connect to its console by typing `asterisk -vvvvvr`. Now reload the entire configuration by typing `reload`.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值