php and curl
Hello,
I feel like a total newbie, but I guess that's what this board is for, so here's my problem:
I've installed Mandrake 9.1. I've got Apache with PHP and Mysql support. No problems there. I let Mandrake's install deal with the configurations. Again, no problems there. I've now come to a point where I want to use curl, but it's not configured to work with php. I have php 4.3.1, and according to the PHP documentation it has curl support built in as long as it is compiled with it. Well, I didn't do the compile to begin with... Is there any way to enable a module without recompiling?
I'm guessing there isn't, which makes sense to me. So I downloaded PHP 4.3.3. I can't get it to configure. Using the configure string from my previous phpinfo, it dies. It will configure fine with simply './configure' but not with './configure --with-curl'. I checked to see if curl was installed, it is. Partial configure log here:
------
checking for CURL support... yes
checking for CURL in default path... found in /usr
checking for cURL 7.9.8 or greater... libcurl 7.10.3
checking for curl_easy_perform in -lcurl... no
configure: error: There is something wrong. Please check config.log for more information.
------
Config.log didn't give me anything I could decipher as useful information, but here's the tail end of it:
------
configure:19986: checking for curl_easy_perform in -lcurl
configure:20005: gcc -o conftest -g -O2 -lcurl -lz -lssl -lcrypto -ldl -lz conftest.c -lcurl -lcurl -lresolv -lm -ldl -lnsl -lcurl -lz -lssl -lcrypto -ldl -lz 1>&5
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
configure: failed program was:
#line 19994 "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; }
------
So that's where I'm at now. My next guess is that I'm missing some support files, or perhaps curl wasn't compiled with everything I need in it, but I didn't want to put more time into it until I had some idea of where to go. Can someone point me in the right direction? Thanks!
Last edited by Risen; 09-02-2003 at 03:43 PM.
|