OK! OK! Totally dumb mistake and a great example of running on nothing but caffeine. When I installed php on linux I forgot to include in the php.ini file the local directory in the include_path like so
include_path = ".:/path_to_php_libraries"
the dot in there makes all the difference.