How to fix this problem?


#1

I was trying to install the asterisk on my Linux enterprise AS4.

When i make install in asterisk directory, an error was threw out,

build_tools/make_build_h > include/asterisk/build.h.tmp
if cmp -s include/asterisk/build.h.tmp include/asterisk/build.h ; then echo ; else
mv include/asterisk/build.h.tmp include/asterisk/build.h ;
fi
rm -f include/asterisk/build.h.tmp
gcc -c -o buildinfo.o -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g3 -Iinclude -I…/include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -DZAPTEL_OPTIMIZATIONS -fomit-frame-pointer buildinfo.c
gcc -g3 -o asterisk -Wl,-E io.o sched.o logger.o frame.o loader.o config.o channel.o translate.o file.o say.o pbx.o cli.o md5.o term.o ulaw.o alaw.o callerid.o fskmodem.o image.o app.o cdr.o tdd.o acl.o rtp.o manager.o asterisk.o dsp.o chanvars.o indications.o autoservice.o db.o privacy.o astmm.o enum.o srv.o dns.o aescrypt.o aestab.o aeskey.o utils.o plc.o jitterbuf.o dnsmgr.o devicestate.o netsock.o slinfactory.o ast_expr2.o ast_expr2f.o cryptostub.o buildinfo.o editline/libedit.a db1-ast/libdb1.a stdtime/libtime.a -ldl -lpthread -lncurses -lm -lresolv -lssl
/usr/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
make: *** [asterisk] Error 1

Could anyone can tell me how to fix it???

Thanks a lot.


#2

Not sure, but you may need to install openssl-devel.


#3

Correct, the message indicates that the openssl-dev package is not installed.

Depending on the linux, it has diff. packagenames, eg. libssl10.0.97 in debian.