Jump to content

Recommended Posts

I have already compiled PHP on my OS X machine and when I run a basic curl script it does not recognized "curl_init();".  I'm guessing that I did not enable support for curl when I compiled PHP.  Do i need to go back an recompile php?  Will this disrupt my current settings?  What exactly do I need to install to have curl work?  I've done a lot of googling and tried recompiling it numerous times, most often it fails to recompile and the times it does complete the curl script does not seem to work.

Thank you!

Link to comment
https://forums.phpfreaks.com/topic/44267-setup-php-with-curl-support/
Share on other sites

If it's not recognizing curl_init(), I think you'll need to recompile (--with-curl[=curl's dir]), but before you do, you need to make sure you have libcurl installed (see http://curl.haxx.se/ for downloads).

 

If you have libcurl installed, and you're configuring with curl enabled, and it's failing to compile, I'd need more information about the failures to really start to guess.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.