返回列表 發帖

【角色茶桌】—— 我的Asterisk 1.8安装历程 —— make menuselect 选项是否有更改呢?

本帖最後由 角色 於 2011-9-18 01:23 編輯

1)下载CentOS 5.6 ISO,然后安装,选Server Mode
- Firewall要disabled, SELINUX=disabled

2)下载asterisk tar ball,我用的asterisk-1.8.6.0.tar.gz
- save asterisk-1.8.6.0.tar.gz in /usr/src/asterisk
- 用tar xvf askterisk-1.8.6.0.tar.gz

3) Install the following packages
yum install gcc \
gcc-c++ \
libxml2-devel \
libtermcap-devel \
ncurses-devel \
newt-devel \

4) ./configure
(needs gcc, gcc-c++, limxml2-devel, libtermcap-devel)

5) make menuselect
(needs ncurses-devel and newt-devel. We need to re-run ./configure again in order to make "make menuselect" work)

6) make
+--------- Asterisk Build Complete ---------+
+ Asterisk has successfully been built, and +
+ can be installed by running:              +
+                                           +
+                make install               +
+-------------------------------------------+

7) make install
+---- Asterisk Installation Complete -------+
+                                           +
+    YOU MUST READ THE SECURITY DOCUMENT    +
+                                           +
+ Asterisk has successfully been installed. +
+ If you would like to install the sample   +
+ configuration files (overwriting any      +
+ existing config files), run:              +
+                                           +
+                make samples               +
+                                           +
+-----------------  or ---------------------+
+                                           +
+ You can go ahead and install the asterisk +
+ program documentation now or later run:   +
+                                           +
+               make progdocs               +
+                                           +
+ **Note** This requires that you have      +
+ doxygen installed on your local system    +
+-------------------------------------------+

8) make samples

9) yum install doxygen and then followed by make progdocs

10) make install

11)make config

12) make install-logrotate

13) chkconfig asterisk on

14) service asterisk start

15) asterisk -rv
Asterisk 1.8.6.0, Copyright (C) 1999 - 2011 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 1.8.6.0 currently running on shirley (pid = 14639)
Verbosity is at least 3
s


下面的网站可以提供参考:

https://wiki.asterisk.org/wiki/display/AST/Home



现在有D515和D525的电脑(其实感谢bubblestar兄让出他的D525MB),所以基本上设备都齐全,现在可以慢慢安装Asterisk 1.8了。

我特意另开这幅帖子,主要记录我安装Asterisk的历程,可以让大家参考。

角色

有按照选择,但是就没有files,我在网站找过,其他人都出现这样的问题,好像iLBC的files有所作出更改。不能再自动下载。

角色

TOP

回復 46# 角色


照下面圖示剔選

iLBC.png


iLBC2.png

TOP

中英文顯示沒有關係,不需介意。

在make menuselect 版面入面有兩個項目,一個是Format Interpreters,另一個是Codec Translators,請在這兩項入面,看看 iLBC 是否已剔選,沒有的話,請剔選 ilbc

TOP

回復 44# bubblestar

都是出下面的errors。
  1. codec_ilbc.c:41:30: error: ilbc/iLBC_encode.h: No such file or directory
  2. codec_ilbc.c:42:30: error: ilbc/iLBC_decode.h: No such file or directory
  3. codec_ilbc.c:57: error: expected specifier-qualifier-list before ‘iLBC_Enc_Inst_t’
  4. codec_ilbc.c: In function ‘lintoilbc_new’:
  5. codec_ilbc.c:67: warning: implicit declaration of function ‘initEncode’
  6. codec_ilbc.c:67: error: ‘struct ilbc_coder_pvt’ has no member named ‘enc’
  7. codec_ilbc.c: In function ‘ilbctolin_new’:
  8. codec_ilbc.c:76: warning: implicit declaration of function ‘initDecode’
  9. codec_ilbc.c:76: error: ‘struct ilbc_coder_pvt’ has no member named ‘dec’
  10. codec_ilbc.c: In function ‘ilbctolin_framein’:
  11. codec_ilbc.c:114: warning: implicit declaration of function ‘iLBC_decode’
  12. codec_ilbc.c:114: error: ‘struct ilbc_coder_pvt’ has no member named ‘dec’
  13. codec_ilbc.c: In function ‘lintoilbc_framein’:
  14. codec_ilbc.c:132: error: ‘struct ilbc_coder_pvt’ has no member named ‘buf’
  15. codec_ilbc.c: In function ‘lintoilbc_frameout’:
  16. codec_ilbc.c:153: error: ‘struct ilbc_coder_pvt’ has no member named ‘buf’
  17. codec_ilbc.c:154: warning: implicit declaration of function ‘iLBC_encode’
  18. codec_ilbc.c:154: error: ‘struct ilbc_coder_pvt’ has no member named ‘enc’
  19. codec_ilbc.c:163: error: ‘struct ilbc_coder_pvt’ has no member named ‘buf’
  20. codec_ilbc.c:163: error: ‘struct ilbc_coder_pvt’ has no member named ‘buf’
  21. make[1]: *** [codec_ilbc.o] Error 1
  22. make: *** [codecs] Error 2
  23. [root@leo asterisk-1.8.6.0]#
複製代碼

TOP

回復 37# bubblestar

我的全英文,而你是中文?

角色

TOP

有沒有一開始就做晒以下YUM 呢?

yum -y install gcc gcc-c++ libxml2-devel ncurses-devel openssl-devel mysql-devel sqlite-devel unixODBC-devel libtool-ltdl-devel freetds-devel libvorbis-devel alsa-lib-devel bluez-libs-devel curl-devel libtiff-devel  libssl-dev speex speex-devel libusb-devel CIG-devel openldap-devel gmime-devel net-snmp-devel flex bison lua-devel subversion make gnutls-devel gnutls-utils kernel-devel newt-devel mlocate lynx tar wget nmap bzip2 mod_ssl crontabs vixie-cron libxml2 texinfo neon neon-devel


make menuselect 之前要行這一句。

contrib/scripts/get_ilbc_source.sh

這樣就可以裝好的了。

TOP

安装iLBC又出事呢?在make的时候,发现没有下面的library,不知道在哪里可以找到。

ilbc/iLBC_encode.h: No such file or directory


角色

TOP

I cannot but Putty does

Putty displays all Chinese properly in its own command line environment but not in Asterisk CLI.

TOP

Can you display Chinese properly?

TOP

For information, Putty has built-in support remote character set in multi-language.

TOP

I did install English and added Chinese support like what you did.  What makes the difference may be that I choose UTF-8 in Windows translation of Putty and just change LANG="zh_TW.UTF-8" in /etc/sysconfig/i18n for testing Chinese Displaying effect.

In daily operation, I use all command in English.  No Chinese involved.  So far, no problem.

TOP

回復 37# bubblestar


    Why you install in Chinese? Normally I install English and then add Chinese support. This may be the problem that your putty has wrong code. Normal putty uses ascii characters set.

TOP

我installed 了的packages 及未裝的 packages。

yum grouplist



grouplist.png

TOP

谢谢,明白。

角色

TOP

返回列表