For PHP herd. In /etc/php/apache2-php5/php.ini, I've got: include_path = ".:/usr/share/php5:/usr/share/php" That's the default - I did not customize it. But see where PEAR-HTML_Table installed the PHP files: dir /usr/lib/php5/lib/php/pear dir /usr/lib/php5/lib/php/pear/HTML dir /usr/lib/php5/lib/php/pear/HTML/Table obj /usr/lib/php5/lib/php/pear/HTML/Table/Storage.php adddf61b4562beba1241e4c1bc18d907 1146054605 obj /usr/lib/php5/lib/php/pear/HTML/Table.php 0bd6f5f994ba9eeaddaca86779e3ed75 1146054605 As you can see, it's under "/usr/lib/php5/lib/php/pear". That directory is not in the default include_path. I think it should be in the default include_path. I'm using: [ebuild R ] dev-lang/php-5.1.2-r1 USE="-adabas -apache apache2 bcmath berkdb -birdstep bzip2 calendar cdb -cgi -cjk cli crypt ctype -curl -curlwrappers -db2 -dbase -dbmaker -debug -discard-path doc -empress -empress-bcs -esoob exif -fastbuild -fdftk -filepro -firebird flatfile -force-cgi-redirect -frontbase ftp gd -gd-external gdbm -gmp -hardenedphp hash -hyperwave-api iconv imap -informix inifile -interbase -iodbc -ipv6 -java-external -kerberos ldap libedit -mcve -memlimit -mhash -ming -msql -mssql mysql mysqli ncurses nls -oci8 -oci8-instant-client odbc pcntl pcre -pdo -pdo-external -pic posix -postgres -qdbm -readline -recode -reflection -sapdb -sasl session sharedext -sharedmem -simplexml -snmp -soap sockets -solid spell spl sqlite ssl -sybase -sybase-ct sysvipc threads tidy -tokenizer -truetype -unicode -vm-goto vm-switch -wddx xml -xmlreader -xmlrpc -xmlwriter -xpm -xsl -yaz zip zlib" 0 kB
After ermoving /etc/pear.conf and PEAR-PEAR, PEAR-HTML_Common and PEAR-HTML_Table, I re-emerge PEAR-HTML_Table. This put the files in ./usr/share/php/HTML/ ./usr/share/php/HTML/Table/ ./usr/share/php/HTML/Table/Storage.php ./usr/share/php/HTML/Table.php That path is in the default include_path Closing bugh.