Women in Technology

Hear us Roar



Article:
  PHP 4.3 and Mac OS X
Subject:   CURL version stops installl
Date:   2003-01-23 09:19:31
From:   anonymous2
When entering the configure line I get the error:


checking for CURL support... yes
checking for CURL in default path... found in /usr
checking for cURL 7.9.8 or greater... configure: error: cURL version 7.9.8 or later is required to compile php with cURL support


I have installed a newer version of CURL using Fink, my path is loading Fink commands properly:


[MyWorkstation:~] mc% echo $PATH
/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
[MyWorkstation:~] mc% curl --version
curl 7.10 (powerpc-apple-darwin6.3) libcurl/7.10 ipv6 zlib/1.1.3


So Curl is greater than version 7.9.8.


I have added the following option to the ./configure command:


--with-curl=/sw


any help here?


Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • Adam Trachtenberg photo CURL version stops installl
    2003-01-24 14:45:49  Adam Trachtenberg | O'Reilly Author [View]

    Yes. First, the decision to use --with-curl=/sw is the correct one. Since fink doesn't delete files, the (old) Apple installed curl in /usr/bin still lives on your machine and the PHP configuration program is picking it up instead of the (new) fink version. (The configuration process and $PATH are independent of each other.)

    So, you need to manually add the /sw directory to point PHP and cURL 7.10. Once I did that, I got an error that essentially boiled down to "can't locate file for: -ldl" I did some poking around and the short answer is: I didn't have a necessary library installed.

    Using fink to install "dlcompat-dev" fixed the problem. (I already had dlcompat and dlcompat-shlibs installed.) Once I did that, PHP compiled with cURL just fine. (Well, it did give a warning about /lib not being found, but that's harmless.)

    Let me know if this fixes your problem or if you're still stuck.
    • CURL version stops installl
      2003-01-31 07:48:29  mcollins@kuwago.com [View]

      Thanks for taking a moment to consider my problem and offer advice. I followed your suggestion and used fink to install dlcompat-dev (the other two mentioned, dlcompat and dlcompat-shlibs, were also already installed by fink).

      I still get the following error when I issue the ./configure command:

      ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --with-apxs=/usr/sbin/apxs --with-curl=/sw
      ...etc

      checking for cURL 7.9.8 or greater... configure: error: cURL version 7.9.8 or later is required to compile php with cURL support

      I have also tried taking ou the option --prefix=/usr. Any other suggestions?
      • CURL version stops install
        2003-02-28 19:29:40  tychay [View]

        You could try installing over Apple's curl binaries (this is what I do). I gave instructions in a post below.

        The line:
        checking for CURL in default path... found in /usr
        occurs when the ./configure has "--with-curl" or "--with-curl=shared" (latter is unsported on Mac OS X). instead of "--with-curl=/sw". Thus, that line should not be output if youy have "--with-curl=/sw".

        Note:
        --prefix=/usr
        is only for targeting the make install. It shouldn't affect the configure

        The version of curl I install against is 7.10.3 from fink. I am using "curl-ssl", "curl-ssl-dev", and "curl-ssl-shlibs" packages. You definitely need either the "curl-dev" or "curl-ssl-dev", and the library is in "curl-shlibs" or "curl-ssl-shlibs" so you'll need that too. I don't think the "curl" or "curl-ssl" is needed, but it doesn't hurt to have it also.

        Unfortunately, I also smash Apple's installation of curl on my machines with my own, so I can't be 100% sure that PHP isn't accidentally linking against that.

        I hope this helps,

        terry chay
        tychay at php dot net