Error installing Asterisk


I am trying to install Asterisk I have pycurl and curl installed on system (Laptop running FC10). Can you tell me why this error is coming and how to fix it?

[AR] hash/hash.o hash/hash_bigkey.o hash/hash_buf.o hash/hash_func.o hash/hash_log2.o hash/hash_page.o hash/ndbm.o btree/bt_close.o btree/bt_conv.o btree/bt_debug.o btree/bt_delete.o btree/bt_get.o btree/bt_open.o btree/bt_overflow.o btree/bt_page.o btree/bt_put.o btree/bt_search.o btree/bt_seq.o btree/bt_split.o btree/bt_utils.o db/db.o mpool/mpool.o recno/rec_close.o recno/rec_delete.o recno/rec_get.o recno/rec_open.o recno/rec_put.o recno/rec_search.o recno/rec_seq.o recno/rec_utils.o -> libdb1.a
make[2]: Leaving directory /usr/src/asterisk-' [LD] abstract_jb.o acl.o aescrypt.o aeskey.o aestab.o alaw.o app.o ast_expr2.o ast_expr2f.o asterisk.o astmm.o astobj2.o audiohook.o autoservice.o callerid.o cdr.o channel.o chanvars.o cli.o config.o cryptostub.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o file.o fixedjitterbuf.o frame.o fskmodem.o global_datastores.o http.o image.o indications.o io.o jitterbuf.o loader.o logger.o manager.o md5.o netsock.o pbx.o plc.o privacy.o rtp.o say.o sched.o sha1.o slinfactory.o srv.o stdtime/localtime.o strcompat.o tdd.o term.o threadstorage.o translate.o udptl.o ulaw.o utils.o editline/libedit.a db1-ast/libdb1.a ../apps/ ../cdr/ ../channels/ ../codecs/ ../formats/ ../funcs/ ../pbx/ ../res/ -> asterisk /usr/bin/ld: cannot find -lcurl collect2: ld returned 1 exit status make[1]: *** [asterisk] Error 1 make[1]: Leaving directory/usr/src/asterisk-’
make: *** [main] Error 2


Can anybody find the fix for this error in Asterisk installation! Asterisk has never sucked me like this.


maybe you need something like curl-devel or curl-dev

I already have latest Curl libraries and Pycurl installed. Asterisk was working on my system earlier but now it seems to be broken.


I have found the solution with the help of a Linux Guru.
Before doing ./configure I did this:

export CFLAG=-l/usr/bin/curl-config

and it worked.



i’m having this error while i try to install Asterisk on my 64 bit machine.

make[1]: Entering directory `/usr/src/asterisk-'
   [CC] func_audiohookinherit.c -> func_audiohookinherit.o
   [LD] func_audiohookinherit.o ->
   [CC] func_base64.c -> func_base64.o
   [LD] func_base64.o ->
   [CC] func_callerid.c -> func_callerid.o
   [LD] func_callerid.o ->
   [CC] func_cdr.c -> func_cdr.o
   [LD] func_cdr.o ->
   [CC] func_channel.c -> func_channel.o
   [LD] func_channel.o ->
   [CC] func_curl.c -> func_curl.o
   [LD] func_curl.o ->
/usr/bin/ld: skipping incompatible /usr/lib/ when searching for -lidn
/usr/bin/ld: skipping incompatible /usr/lib/libidn.a when searching for -lidn
/usr/bin/ld: cannot find -lidn
collect2: ld returned 1 exit status
make[1]: *** [] Error 1
make[1]: Leaving directory `/usr/src/asterisk-'
make: *** [funcs] Error 2