Women in Technology

Hear us Roar

  PHP 4.3 and Mac OS X
Subject:   Location of fink packages
Date:   2003-01-21 13:56:11
From:   trachtenberga
Response to: Location of fink packages

You'll only find the cURL application in /sw/bin/. (Well, also curl-config.) However, PHP uses other cURL files. They're installed by fink in /sw/lib, /sw/include, and other locations off of the /sw root.

It's possible that PHP will work correctly if you pass in /sw/bin, but I still think you're better off using /sw. (I'd need to update my verion of cURL to test this.) But, if you're used to Linux, it's just like entering /usr/local.


Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Location of fink packages
    2003-02-28 19:04:15  tychay [View]

    It should be noted that the default version of curl in Jaguar is 7.7.? but PHP 4.3 "--with-curl" requires curl 7.8.2 (some docs say 7.9) or later so you need to compile curl yourself (not much of a stretch), or use Fink's curl package.

    If you compile curl yourself and want to write over Apple's installation, use
    curl --remote-name http://curl.hax.se/download/curl-7.10.3.tar.bz2
    bzip2 -dc curl-7.10.3.tar.bz2 | gnutar --extract
    pushd curl-7.10.3
    ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-static --enable-shared --with-ssl=/usr --with-zlib=/usr"
    sudo make install
    rm -rf curl-7.10.3

    (i think that will work). BTW, you may want to run Disk Repair ", Repair Disk Permissions after the install (of curl and PHP both!) to change the binaries/libraries/etc to be writeable by group and belong to staff. :-)

    Take care,

    terry chay
    tychay at php dot net