Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 960887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:15:03+00:00 2026-05-16T01:15:03+00:00

I have a Macports installed version of php5, that is missing the curl extension.

  • 0

I have a Macports installed version of php5, that is missing the curl extension. phpinfo shows /opt/local/etc/php5/php.ini as the location for php.ini, with one of the additional .ini files listed as /opt/local/var/db/php5/curl.ini

The contents of curl.ini:
extension=curl.so

If I do a locate curl.so I get
/opt/local/lib/php/extensions/no-debug-non-zts-20090626/curl.so
/opt/local/var/macports/software/php5-curl/5.3.2_0/opt/local/lib/php/extensions/no-debug-non-zts-20090626/curl.so

Using curl_init() in a test.php file gives me this error:

Fatal error: Call to undefined function curl_init()

I’m assuming it either isn’t finding the curl.so file, but I can’t find extension_dir set in the php.ini and other extensions seem to work fine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T01:15:04+00:00Added an answer on May 16, 2026 at 1:15 am

    Try listing the symbols of curl.so, and search for curl_init or curl_easy_init:

    nm curl.so | grep _init
    

    There is a chance it uses the curl easy interface:

    http://curl.haxx.se/libcurl/c/libcurl-easy.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed php/apache (version 5.3.8) via MacPorts, and I am getting the error:
i have mac preinstalled svn at ->/usr/bin/svn i have macport install svn at -->opt/local/var/macports/software/subversion/1.6.3_0/opt/local
I have MacPorts and CPAN installed and I've only just found out that it's
I have pypy-c installed with macports (latest version : pypy @1.4.1). I run pypy-c
I have two version of ruby installed 1.9 and 1.8.7(via macports) how do I
I am running Mac OSX 10.5.8. I recently installed a version of macports that
I have macports installed on my mac. One of the macports programs I installed
I have Pythong2.6, psycopg2 and pgAdmin3 installed using Macports. My settings.py is: DATABASE_ENGINE =
I have installed pyglet onto Mac OS X 10.7.4 using MacPorts. pyglet only works
I have a py27-tkinter macport installed and it seems that it is compiled without

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.