Click to See Complete Forum and Search --> : PHP & cURL installation error (checking for curl_easy_perform in -lcurl)


vmattila
12-18-2004, 07:02 AM
Hello readers,

I'm trying to install the latest PHP4 version from the scratch. The configure string is following:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-curl --enable-exif --enable-mbsting=all --with-gd --with-openssl --with-zlib-dir=/usr --with-zlib

Everything goes well until the cURL should be configured. At that point, I will encounter an error like this:

checking for CURL support... yes
checking for CURL in default path... found in /usr
checking for cURL 7.9.8 or greater... libcurl 7.12.1
checking for curl_easy_perform in -lcurl... no
configure: error: There is something wrong. Please check config.log for more information.

OK, let's check out the config.log:

[root@finnpower php-4.3.10]# tail config.log
#line 20458 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char curl_easy_perform();

int main() {
curl_easy_perform()
; return 0; }

Following cURL packages are installed:
curl-7.12.1-1
curl-devel-7.12.1-1

In general, I have Fedora Core 3 installed with self-compiled Apache 2... almost with PHP 4.3.10 too.

Thanks for help!

Ville

tsinka
12-18-2004, 07:11 AM
Hi,

please post the complete config.log file as attachment.

Thomas

vmattila
12-18-2004, 07:15 AM
Hi Tsinka,

Thanks for your quick reply. The full config.log is attached.

Ville

tsinka
12-18-2004, 07:20 AM
Install the libidn-devel package then try again.

Thomas

vmattila
12-18-2004, 08:12 AM
Thank you Tsinka, this solved the problem. Would you like to tell, where did you notice that the libidn-devel library was missing?

Ville

tsinka
12-18-2004, 09:28 AM
In this case the line

/usr/bin/ld: cannot find -lidn

in config.log (near the end just above the source code) showed me that libidn.so didn't exist. That shared library is part of the libidn-devel package.

Thomas