PHP Woes

jjma

Verified User
Joined
Mar 29, 2004
Messages
275
Location
Edinburgh,Scotland
Problem upgrading to Curl version 7.13.0 but it fails with what I had in configure.php:

--with-curl \
--with-curl-dir=/usr/local/lib \

checking for cURL 7.9.8 or greater... ./configure: line 1: curl-config: command not found
configure: error: cURL version 7.9.8 or later is required to compile php with cURL support

*** There was an error while trying to configure php. Check the configure.php file

Directories of /usr/local/lib show:

-rw-r--r-- 1 root root 1863746 Feb 27 19:30 /usr/local/lib/libcurl.a
-rwxr-xr-x 1 root root 899 Feb 27 19:30 /usr/local/lib/libcurl.la
lrwxrwxrwx 1 root root 16 Feb 27 19:30 /usr/local/lib/libcurl.so -> libcurl.so.3.0.0
lrwxrwxrwx 1 root root 16 Feb 27 19:30 /usr/local/lib/libcurl.so.3 -> libcurl.so.3.0.0
-rwxr-xr-x 1 root root 1043346 Feb 27 19:30 /usr/local/lib/libcurl.so.3.0.0

Have no idea why this shouldn't upgrade - any help here.

Jon
 
I believe the problem isn't your curl installation itself, but it's:
./configure: line 1: curl-config: command not found
If I would type 'locate curl-config' this is the output on one of my servers:
locate curl-config
/usr/bin/curl-config
/usr/share/man/man1/curl-config.1.gz
/usr/local/bin/curl-config
/usr/local/directadmin/customapache/curl-7.12.2/curl-config.in
/usr/local/directadmin/customapache/curl-7.12.2/docs/curl-config.1
/usr/local/directadmin/customapache/curl-7.12.2/docs/curl-config.html
/usr/local/directadmin/customapache/curl-7.12.2/docs/curl-config.pdf
/usr/local/directadmin/customapache/curl-7.12.2/curl-config
/usr/local/man/man1/curl-config.1
So perhaps something actually is wrong with your curl installation. What distro are you using ?
The server I'm currently using as example is a redhat server.
When I would type:
rpm -qa | grep -i curl
curl-devel-7.9.8-1
curl-7.9.8-1
You see I already have a curl binary installed. That is somewhat of a prerequirement.

Otherwise curl-config might not be available.

Hope this can help you,
 
Back
Top