[newbe] installing curl

I am a linux noob but intermediate Asterisk user, and I am completely stuck…!

My Asterisk machine does not know the function curl.

I’ve done a clean install of CentOS 5.8 and then followed ‘the book’ (Chapter 3. Installing Asterisk) to install Asterisk 1.8 with libpri and dahdi.

after doing a lot of searching I’ve found a few things:

  1. if I run ./configure -with-curl then end of the output says:
  1. to enable curl in make menuselect I had to first install curl & curl-devel

  2. if I check asterisk to see if curl exists by doing: core show help curl it says:

  1. if I try to load the module with module load curl I get:

[quote]Unable to load module curl
Command ‘module load curl’ failed.
[Jan 17 10:17:44] WARNING[12446]: loader.c:418 load_dynamic_module: Error loading module ‘curl’: /usr/lib/asterisk/modules/curl.so: cannot open shared object file: No such file or directory
[Jan 17 10:17:44] WARNING[12446]: loader.c:894 load_resource: Module ‘curl’ could not be loaded.[/quote]

checking the directory /usr/lib/asterisk/modules/ I can see there is no file curl.so, but there is a file func_curl.so

  1. So I try to load the module with module load func_curl I get:

I am at a loss, I do not fully understand what the above results mean or where to continue looking for the solution… Please help…

The install path I’ve followed:

yum update -y && reboot
yum install -y ntp && ntpdate pool.ntp.org && chkconfig ntpd on && service ntpd start 
yum install gcc gcc-c++ make wget subversion libxml2-devel ncurses-devel openssl-devel vim-enhanced 
yum install curl curl-devel
mkdir -p ~/src/asterisk-complete/asterisk
cd ~/src/asterisk-complete/
mkdir libpri
cd libpri
svn co http://svn.asterisk.org/svn/libpri/tags/1.4.14
cd 1.4.14
make install

yum install kernel-devel-`uname -r`
cd ~/src/asterisk-complete/
mkdir dahdi
cd dahdi/
svn co http://svn.asterisk.org/svn/dahdi/linux-complete/tags/2.6.1+2.6.1
cd 2.6.1+2.6.1/
make install
make config

cd ~/src/asterisk-complete/asterisk
svn co http://svn.asterisk.org/svn/asterisk/branches/1.8
cd 1.8
make menuselect (==> make sure curl is selected)
make install
make samples
make config

core show function CURL
NOTE the CapItAls

-= Info about function ‘CURL’ =-

Retrieves the contents of a URL

url - URL to retrieve
post-data - Optional data to send as a POST (GET is default action)


Not available

[See Also]
Not available

I lack the words to acuratly express stupidly simple that was…