asterisk详细安装步骤
2008-07-20 18:07
302 查看
假设当前路径为/opt,不带硬件安装asterisk,进入到CLI>命令行下
1.设置交叉编译环境
# export PATH=$PATH:/opt/timesys/toolchains/armv5b-linux/bin
2.安装make工具包
# tar xzfv make-3.81.tar.gz
# cd make-3.81
# ./configure
# make
说明:
之所以要安装make-3.81是因为make-3.79有bug,不然,编译asterisk的时候会报如下错误:
expand.c:489: allocated_variable_append: Assertion 'current_variable_set_list->next != 0' failed
make: *** [all] Aborted
3.安装asterisk
# tar xzfv asterisk-1.4.19.1.tar.gz
<output>
#cd asterisk-1.4.19.1
# ./configure --build=i686-linux --without-pwlib --without-curl
<output>
.$$$$$$$$$$$$$$$=..
.$7$7.. .7$$7:.
.$$:. ,$7.7
.$7. 7$$$$ .$$77
..$$. $$$$$ .$$$7
..7$ .?. $$$$$ .?. 7$$$.
$.$. .$$$7. $$$$7 .7$$$. .$$$.
.777. .$$$$$$77$$$77$$$$$7. $$$,
$$$~ .7$$$$$$$$$$$$$7. .$$$.
.$$7 .7$$$$$$$7: ?$$$.
$$$ ?7$$$$$$$$$$I .$$$7
$$$ .7$$$$$$$$$$$$$$$$ :$$$.
$$$ $$$$$$7$$$$$$$$$$$$ .$$$.
$$$ $$$ 7$$$7 .$$$ .$$$.
$$$$ $$$$7 .$$$.
7$$$7 7$$$$ 7$$$
$$$$$ $$$
$$$$7. $$ (TM)
$$$$$$$. .7$$$$$$ $$
$$$$$$$$$$$$7$$$$$$$$$.$$$$$$
$$$$$$$$$$$$$$$$.
说明:
(1) 若不带--without-pwlib 参数,则运行./configure 的时候会报pwlib error
(2) 若不带--without-curl参数,则运行./configure 的时候会报如下错误:
Func_curl.c : 106 :error “CURLOPT_NOSIGNAL” undeclared (First use in this function)
[root@localhost asterisk-1.4.19.1]# ../make-3.81/make menuselect 出现如下菜单项:
**************************************************
Asterisk Module and Build Option
Selection
**************************************************
Press 'h' for help.
---> 1. Applications
2. Call Detail Recording
3. Channel Drivers
4. Codec Translators
5. Format Interpreters
6. Dialplan Functions
7. PBX Modules
8. Resource Modules
9. Voicemail Build Options
10. Compiler Flags
11. Module Embedding
12. Core Sound Packages
13. Music On Hold File
Packages
14. Extras Sound Packages
[root@localhost asterisk-1.4.19.1]# ../make-3.81/make
.......................
.......................
+--------- Asterisk Build Complete ---------+
+ Asterisk has successfully been built, and +
+ can be installed by running: +
+ +
+ /opt/voip/asterisk-1.4.19.1/../make-3.81/make install
+
+-------------------------------------------+
[root@localhost asterisk-1.4.19.1]# ../make-3.81/make install
+---- Asterisk Installation Complete -------+
+
98d2
+
+ 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: +
+ +
+ /opt/voip/asterisk-1.4.19.1/../make-3.81/make samples
+
+ +
+----------------- or ---------------------+
+ +
+ You can go ahead and install the asterisk +
+ program documentation now or later run: +
+ +
+ /opt/voip/asterisk-1.4.19.1/../make-3.81/make progdocs
+
+ +
+ **Note** This requires that you have +
+ doxygen installed on your local system +
+-------------------------------------------+
[root@localhost asterisk-1.4.19.1]# ../make-3.81/make samples
<output>
[root@localhost asterisk-1.4.19.1]# ../make-3.81/make progdocs
<output>
Generating namespace index...
Generating group index...
Generating example index...
Generating file member index...
Generating namespace member index...
Generating page index...
Generating graph info page...
Generating search index...
Generating style sheet...
则在/usr/sbin/路径下会生成asterisk命令
[root@localhost asterisk-1.4.19.1]# asterisk
[root@localhost asterisk-1.4.19.1]# asterisk -r
Asterisk 1.4.19.1, Copyright (C) 1999 - 2008 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.4.19.1 currently running on localhost (pid = 18320)
localhost*CLI>
至此,asterisk 安装完毕
1.设置交叉编译环境
# export PATH=$PATH:/opt/timesys/toolchains/armv5b-linux/bin
2.安装make工具包
# tar xzfv make-3.81.tar.gz
# cd make-3.81
# ./configure
# make
说明:
之所以要安装make-3.81是因为make-3.79有bug,不然,编译asterisk的时候会报如下错误:
expand.c:489: allocated_variable_append: Assertion 'current_variable_set_list->next != 0' failed
make: *** [all] Aborted
3.安装asterisk
# tar xzfv asterisk-1.4.19.1.tar.gz
<output>
#cd asterisk-1.4.19.1
# ./configure --build=i686-linux --without-pwlib --without-curl
<output>
.$$$$$$$$$$$$$$$=..
.$7$7.. .7$$7:.
.$$:. ,$7.7
.$7. 7$$$$ .$$77
..$$. $$$$$ .$$$7
..7$ .?. $$$$$ .?. 7$$$.
$.$. .$$$7. $$$$7 .7$$$. .$$$.
.777. .$$$$$$77$$$77$$$$$7. $$$,
$$$~ .7$$$$$$$$$$$$$7. .$$$.
.$$7 .7$$$$$$$7: ?$$$.
$$$ ?7$$$$$$$$$$I .$$$7
$$$ .7$$$$$$$$$$$$$$$$ :$$$.
$$$ $$$$$$7$$$$$$$$$$$$ .$$$.
$$$ $$$ 7$$$7 .$$$ .$$$.
$$$$ $$$$7 .$$$.
7$$$7 7$$$$ 7$$$
$$$$$ $$$
$$$$7. $$ (TM)
$$$$$$$. .7$$$$$$ $$
$$$$$$$$$$$$7$$$$$$$$$.$$$$$$
$$$$$$$$$$$$$$$$.
说明:
(1) 若不带--without-pwlib 参数,则运行./configure 的时候会报pwlib error
(2) 若不带--without-curl参数,则运行./configure 的时候会报如下错误:
Func_curl.c : 106 :error “CURLOPT_NOSIGNAL” undeclared (First use in this function)
[root@localhost asterisk-1.4.19.1]# ../make-3.81/make menuselect 出现如下菜单项:
**************************************************
Asterisk Module and Build Option
Selection
**************************************************
Press 'h' for help.
---> 1. Applications
2. Call Detail Recording
3. Channel Drivers
4. Codec Translators
5. Format Interpreters
6. Dialplan Functions
7. PBX Modules
8. Resource Modules
9. Voicemail Build Options
10. Compiler Flags
11. Module Embedding
12. Core Sound Packages
13. Music On Hold File
Packages
14. Extras Sound Packages
[root@localhost asterisk-1.4.19.1]# ../make-3.81/make
.......................
.......................
+--------- Asterisk Build Complete ---------+
+ Asterisk has successfully been built, and +
+ can be installed by running: +
+ +
+ /opt/voip/asterisk-1.4.19.1/../make-3.81/make install
+
+-------------------------------------------+
[root@localhost asterisk-1.4.19.1]# ../make-3.81/make install
+---- Asterisk Installation Complete -------+
+
98d2
+
+ 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: +
+ +
+ /opt/voip/asterisk-1.4.19.1/../make-3.81/make samples
+
+ +
+----------------- or ---------------------+
+ +
+ You can go ahead and install the asterisk +
+ program documentation now or later run: +
+ +
+ /opt/voip/asterisk-1.4.19.1/../make-3.81/make progdocs
+
+ +
+ **Note** This requires that you have +
+ doxygen installed on your local system +
+-------------------------------------------+
[root@localhost asterisk-1.4.19.1]# ../make-3.81/make samples
<output>
[root@localhost asterisk-1.4.19.1]# ../make-3.81/make progdocs
<output>
Generating namespace index...
Generating group index...
Generating example index...
Generating file member index...
Generating namespace member index...
Generating page index...
Generating graph info page...
Generating search index...
Generating style sheet...
则在/usr/sbin/路径下会生成asterisk命令
[root@localhost asterisk-1.4.19.1]# asterisk
[root@localhost asterisk-1.4.19.1]# asterisk -r
Asterisk 1.4.19.1, Copyright (C) 1999 - 2008 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.4.19.1 currently running on localhost (pid = 18320)
localhost*CLI>
至此,asterisk 安装完毕
相关文章推荐
- [LNMPA搭建四]Apache详细安装步骤
- Git学习系列之Debian或Ubuntu上安装Git详细步骤(图文详解)
- CentOS 6.4下安装Oracle 11gR2详细步骤(多图)
- 安装SQL SERVER2005详细步骤过程图解
- Liunx vsftpd安装手册,附带我的安装详细步骤
- Linux安装JDK及eclipse详细步骤
- CentOS中安装eclipse详细步骤
- 下载并安装libevent开发库详细步骤
- 苹果MAC中安装并搭建Android开发环境的详细步骤
- 编译安装 apache+mysql+php 详细步骤
- 总结:linux下安装mplayer详细步骤和问题解决
- LAMP----linux+apache+mysql+php详细安装步骤之二mysql篇
- Visual Studio 2008 下安装boost的详细步骤 此博文包含图片
- TensorFlow在Windows 7上的详细安装步骤
- 在Linux系统下安装Vmware(虚拟机)图文教程步骤详细介绍
- 分享安装VS2010 SP1与ASP.NET MVC4详细步骤
- 安装MySQL先复制1. Linux (CentOS 7.3) 下快速安装Mysql数据库(安装教程)2.后复制阿里云配置 MySQL 远程连接的详细步骤
- IntelliJ IDEA详细安装步骤
- 腾讯云服务器CentOS7.0安装JDK+Tomcat+MySQL详细步骤以及自己遇到的一些问题
- [JIRA] 最新Linux安装版本jira6.3.6安装破解以及数据导入的详细步骤