制作&在Asterisk中安装make配置不完整

时间:2017-10-25 11:34:46

标签: makefile asterisk configure ubuntu-server

我使用./configure进行配置,目前正在制作menuconfig。 但是当我运行make命令时:

root@ubuntu:~/asterisk-15.0.0# make
CC="cc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C 
menuselect CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory '/home/h26km/asterisk-15.0.0/menuselect'
make[1]: 'makeopts' is up to date.
make[1]: Leaving directory '/home/h26km/asterisk-15.0.0/menuselect'
[LD] libasteriskpj.o -> libasteriskpj.so.2
/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
Makefile:293: recipe for target 'libasteriskpj.so.2' failed
make[1]: *** [libasteriskpj.so.2] Error 1
Makefile:367: recipe for target 'main' failed
make: *** [main] Error 2

请帮忙完全配置

2 个答案:

答案 0 :(得分:1)

/usr/bin/ld: cannot find -lssl
/usr/bin/ld: cannot find -lcrypto

您已安装openssl和crypto devel软件包。

答案 1 :(得分:1)

您需要多个安装依赖项,您可以在下面执行以下操作:Goto official site to see more

进入目录

cd asterisk-XX.XX.X/contrib/scripts

为Asterisk安装依赖包。

sudo ./install_prereq install