LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-02-2003, 03:41 PM   #1
Risen
LQ Newbie
 
Registered: Sep 2003
Distribution: Mandrake 9.1
Posts: 4

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Curl under PHP ttxmika Slackware 11 05-31-2005 11:24 AM
PHP/cURL housemusic42 Linux - Networking 0 10-07-2004 02:45 PM
Curl and PHP...? hurieka Linux - Software 6 09-28-2004 11:14 PM
Compile PHP to use Curl pimp1911 Linux - Software 3 09-24-2004 08:56 AM
PHP and CURL install on Mandrake 9 dmcentire Linux - Distributions 0 10-21-2002 07:55 PM


All times are GMT -5. The time now is 10:30 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration