`

(可用/自总结)在亚马逊云 AMI LINUX 安装 asterisk 遇到的问题

阅读更多

1.在安装 dahdi 时,执行 make 时,出现关于内核的问题,一般是因为 kernel 和 kernel-devel 的版本不一致

 

2. 在安装 asterisk 时,执行 make config 时,出现了以下错误:

     

     We could not install init scripts for your distribution

 

     这是一个外国人的回答:

    I know this is a very old question, but I ran into the same problem and found a solution so I wanted to share it.

 

The reason for the error is because the make config script doesn't recognize the type of system architecture that an Amazon Linux EC2 installation returns. But you can "fake it" into thinking it's a red hat installation, which will work just fine. So you do this:

 

touch /etc/redhat-release

make config

ldconfig

rm /etc/redhat-release

 

The start-up scripts will be installed and work fine.

 

3. 在启动 asterisk  后,进入 asterisk 时,出现以下错误

    error while loading shared libraries: libjansson.so.4

 

      先下载

      Jansson进行安装。

 

      ./configure DBUILD_SHARED=1

 

        make

        make install

     //创建一个libjansson.so的符号链接到/usr/lib目录下

 

            ln -s /usr/local/lib/libjansson.so /usr/lib/libjansson.so.4

 

   //重新加载库

 

            ldconfig

 

 

 

           就可以正常启动了。

 

           asterisk -vvvvc

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics