Installation issue on Asterisk 14.6.0

Hi to all,

I am using Ubuntu 17.04 OS version.
When I try to use the below command, it checking for the list of files and finally show the logo like Asterisk on the command Terminal

sudo ./configure --with-pjproject-bundled

after that I had used the make command

sudo make

At that time I got the bellow error,

administrator@administrator-H170-D3H:/usr/src/asterisk-14.6.0$ sudo make
CC=“cc” CXX=“g++” LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="–silent" makeopts
make[1]: Entering directory '/usr/src/asterisk-14.6.0/menuselect’
make[1]: ‘makeopts’ is up to date.
make[1]: Leaving directory ‘/usr/src/asterisk-14.6.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:292: 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

How to fix this ? I am very much new to this ?

Thanks in Advance !

I’m having exactly the same issue in a Debian 9 fresh install. It looks like asterisk 14.6 is unable to install all dependences with pjsip compatibility.

did you run the following command before the “sudo ./configure --with-pjproject-bundle`d”?

./contrib/scripts/install_prereq install

I’ve reinstalled a fresh Debian 9 and now i didn’t have any problem, I leave here my current installation just in case you want to try it:

# PRE REQUISITES
apt-get install aptitude -y
aptitude install -y libio-string-perl libclass-accessor-perl  libcgi-pm-perl libcwidget3v5 libparse-debianchangelog-perl aptitude-common libpango1.0-0 libpangox-1.0-0 libsub-name-perl aptitude net-tools linux-headers-`uname -r` bison libssl-dev openssl libeditline0 libeditline-dev libeditline-dev libedit2 libncurses5 libncurses5-dev ncurses-dev uuid libsqlite3-dev libuuid1 uuid-dev libjansson-dev gcc g++ libcurl3-dev libtiff-dev libapache2-mod-perl2 libxml2-dev libusb-dev flex rsync libasound-dev libiksemel-dev libspeex-dev libgmime-2.6-dev libjack-dev libspandsp-dev libsox-dev unixodbc libltdl3-dev unixodbc-dev libsqlite3-dev ghostscript zlib1g-dev wget screen subversion nmap zip unzip bzip2 sudo htop libsrtp0 libsrtp0-dev xmlstarlet ntp ntpdate mysql-common mysql-server mysql-utilities default-libmysqlclient-dev make

# DAHDI INSTALLATION
cd /usr/src/
mkdir dahdi
cd dahdi/
wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz --no-check-certificate
tar -C /usr/src/dahdi -zxf dahdi-linux-complete-current.tar.gz
cd dahdi-linux-complete-2.11.1+2.11.1/
make all
make install
make config
cd tools/
./configure
make
dahdi_genconf

# LIBPRI INSTALLATION
cd /usr/src/
mkdir libpri
cd libpri/
wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-current.tar.gz --no-check-certificate
tar -C /usr/src/libpri/ -zxf libpri-current.tar.gz
cd libpri-1.6.0/
make
make install

# ASTERISK INSTALLATION
cd /usr/src/
mkdir asterisk
cd asterisk/
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-14-current.tar.gz --no-check-certificate
tar -C /usr/src/asterisk/ -zxf asterisk-14-current.tar.gz
cd asterisk-14.6.0/
./contrib/scripts/install_prereq install
./configure --with-pjproject-bundled
make menuselect
make
make install