Вход | Регистрация
Вы здесь: Главная / Форум / Главный форум по Asterisk / Общего характера / newbie install problem

newbie install problem

Откуда: Bulgara
Сообщений: 2

newbie install problem

Hi all
I'm newbie to asterisk; I'm trying to install asterisk but I'm getting the folowing error :

/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin/ld: cannot find -lssl
collect2: ld returned 1 exit status
make: *** [asterisk] Error 1


you will say that I don't have openssl installed but I have 8)
Thank you for any sugestions ...
2005-02-02 01:42

Сообщений: 10

Re: newbie install problem

I have installed asterisk on Slackware(10.0) many times and I didn't get error like this..
2005-02-02 11:08

Avatara of litnimax
Откуда: Москва
Сообщений: 3421

Re: newbie install problem

Find libssl:
updatedb
locate libssl
I guess U will see smth like this:
/usr/lib/libssl.so.0.9.7
U need to make a symbolic link:
ln -s /usr/lib/libssl.so.0.9.7 /usr/lib/libssl.so
Good luck!
http://pbxware.ru - все для Asterisk! || Switchvox - сделано на Asterisk! Подробности на http://switchvox.ru
2005-02-02 13:57

Откуда: Bulgara
Сообщений: 2

Re: newbie install problem

THIS WORKED OUT - many thanks. But there is the follow :( ???
I have openssl compiled and installed v0.9.7e but asterisk is not compiling :(

gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -DASTERISK_VERSION=\"1.0.5\" -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\" -DBUSYDETECT_MARTIN -DOPENSSL_NO_KRB5 -fPIC -c -o res_crypto.o res_crypto.c
res_crypto.c:27:25: openssl/ssl.h: No such file or directory
res_crypto.c:28:25: openssl/err.h: No such file or directory
res_crypto.c:72: error: parse error before "RSA"
res_crypto.c:72: warning: no semicolon at end of struct or union
res_crypto.c:82: error: parse error before '}' token
res_crypto.c: In function `pw_cb':
res_crypto.c:99: error: dereferencing pointer to incomplete type
res_crypto.c:101: error: dereferencing pointer to incomplete type
res_crypto.c:101: error: dereferencing pointer to incomplete type
res_crypto.c:102: error: dereferencing pointer to incomplete type
res_crypto.c:104: error: dereferencing pointer to incomplete type
res_crypto.c:106: error: dereferencing pointer to incomplete type
res_crypto.c:107: error: dereferencing pointer to incomplete type
res_crypto.c:113: error: dereferencing pointer to incomplete type
res_crypto.c: In function `ast_key_get':
res_crypto.c:124: error: dereferencing pointer to incomplete type
res_crypto.c:124: error: dereferencing pointer to incomplete type
2005-02-02 19:50

Avatara of litnimax
Откуда: Москва
Сообщений: 3421

Re: newbie install problem

The cause is missing openssl C headers:
res_crypto.c:27:25: openssl/ssl.h: No such file or directory


1) What is your distro? If redhat-like system, which uses rpm, install rpm-devel packets of openssl.
rpm -qa | grep ssl
rpm -i openssl-devel-x.x.x.rpm
use rpmfind.net to find the needed devel package:
http://rpmfind.net/linux/rpm2html/search.php?query=openssl-devel&submit=Search+...

2) If you really have devel installed, try:
locate ssl.h
export CFLAGS=-I/path/to/includes (without openssl/ as u can see)
make

P.S. U can get commercial 24x7 support or help in time critical situations from Key Solutions company.
We are focusing on Asterisk based solutions. We offer installation, integration, support, consulting and custom development.
Our team has good knowledge in linux, security, databases and voip technologies. All are welcome :)

--
Maxim Litntisky
Head of Telecom Department
Key Solutions
Russia Moscow
http://www.ksolutions.ru
http://www.asterisksupport.ru

http://pbxware.ru - все для Asterisk! || Switchvox - сделано на Asterisk! Подробности на http://switchvox.ru
2005-02-03 00:40

Добавить страницу в закладки:  Delicious Google Slashdot Yahoo Yandex.ru Reddit Digg Technorati Bobrdobr.ru Newsland.ru Smi2.ru Rumarkz.ru Vaau.ru Memori.ru Rucity.com Moemesto.ru News2.ru Mister-Wong.ru Myscoop.ru 100zakladok.ru