Make & make install in Asterisk 配置未完成

Make & make install in Asterisk config not complete

我用 ./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

请帮忙配置完整

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

您已经安装了 openssl 和 crypto devel 包。

安装需要几个依赖,你可以按照下面的步骤获取所有依赖:Goto official site to see more

进入目录

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

安装 Asterisk 的依赖包。

sudo ./install_prereq install