PHP 4.3 and Mac OS X
Subject:   Location of fink packages
Date:   2003-01-21 12:55:35
From:   anonymous2
The article mentions:

" if your package manager places its files in a special location, tell PHP where to find them by placing an equal sign and the path after the command name:


This lets PHP find the GD graphics library in the /sw directory, which is where fink places files."

However isn't the location of files in /sw/bin?

For example, I updated curl to the latest version (as required by PHP 4.3.0) and now CURL is located at /sw/bin/curl. So, shouldn't the configure option be:


Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Adam Trachtenberg photo Location of fink packages
    2003-01-21 13:56:11  Adam Trachtenberg | O'Reilly Author [View]

    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.

    • 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
      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