LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-24-2004, 01:18 AM   #1
pimp1911
LQ Newbie
 
Registered: Aug 2004
Distribution: Centos 5.x
Posts: 10

Rep: Reputation: 0
Compile PHP to use Curl


Can someone post the exact ./configure command to do this. According to PHP documentaton you have to include the the 'include' and 'lib' directories from curl. How do you add multipe directories to the ./configure. Once your done do you do a make and then a make install as well?

Something like this.
./configure --with-curl=
 
Old 09-24-2004, 01:56 AM   #2
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
I'm not sure if you can use multiple directories.. tried separating them wtih a comma?
 
Old 09-24-2004, 06:53 AM   #3
pimp1911
LQ Newbie
 
Registered: Aug 2004
Distribution: Centos 5.x
Posts: 10

Original Poster
Rep: Reputation: 0
I tried this.

./configure --with-curl=/usr/local/include/curl --libdir=/usr/local/lib/liburl.a but got this error message when I tried to do the make.

gcc: sapi/cli/php_cli.o: No such file or directory
gcc: sapi/cli/getopt.o: No such file or directory
make: *** [sapi/cli/php] Error 1
 
Old 09-24-2004, 08:56 AM   #4
pimp1911
LQ Newbie
 
Registered: Aug 2004
Distribution: Centos 5.x
Posts: 10

Original Poster
Rep: Reputation: 0
Okay did this.

make clean

Then I did a ./configure --with-curl=/usr/local/include/curl

Then make install.

Did a php-m and curl shows as a module.
 
  


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
php and curl Risen Linux - Software 0 09-02-2003 03:41 PM
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 01:01 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