$ php -v PHP 5.0.4 (cli) (built: Mar 31 2005 02:45:48) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies
$ php -m [PHP Modules] ... curl ... SimpleXML ... [Zend Modules]
If the CURL and SimpleXML modules aren’t listed take a look at the enabling modules page.
OS X ships with PHP 4 so you’ll have to upgrade to PHP 5. I’ve had reports that Marc Liyanage's PHP 5 package works well. Make sure that you remove all the PHP 4 programs from the path and then re-install PEAR.
The simplest way to install Phlickr is with PEAR installer
$ pear install Phlickr-0.2.4.tgz Optional dependencies: 'curl' PHP extension is recommended to utilize some features 'SimpleXML' PHP extension is recommended to utilize some features install ok: Phlickr 0.2.4
If you encounter problems using the PEAR installer you can manually install Phlickr.
$ tar xzf Phlickr-0.2.4.tgz
$ rm package.xml
$ mv Phlickr-0.2.4 /to/some/path
If you’re curious what directories are in your include path you can try the following command:
$ php -r 'print get_include_path() . "\n";' .:/usr/local/share/pear/:/usr/local/lib/php/pear:/usr/local/share/smarty
Use something like 7-zip or Winzip to extract the contents of the Phlickr-0.2.4.tgz file into a a directory in your include path.
If you’re curious what directories are in your include path you can try the following command:
C:\>php -r "print get_include_path();" .;c:\php\includes;C:\PHP\pear;d:\sf\phlickr;
You should now be able to either run the unit tests or some of the sample code.