manual installation of PEAR packages

From: Date: Sat, 31 Jan 2004 20:48:02 +0000
Subject: manual installation of PEAR packages
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-2280@lists.php.net to get a copy of this message
ALL >>>> first, thanks for all of your work in documenting PEAR and it's modules. i joined the list to relate some confusion i had about the manual installation process with hopes that the directions can be improved. the instructions in question are here: http://pear.php.net/manual/en/installation.manually.php when i follow the directions on this page, i have a directory structure that looks like so: /includes/ Spreadsheet_Excel_Writer-0.6/ package.xml Spreadsheet_Excel_Writer-0.6/ Writer.php Writer/ BIFFwriter.php Format.php Parser.php Validator.php Workbook.php Worksheet.php i then add the ini_set line to my script: ini_set("include_path", $_SERVER['DOCUMENT_ROOT'] . '/admin_includes/PEAR' . PATH_SEPARATOR . ini_get("include_path")); i then require the Writer.php file in relation to the path directory: require_once('Spreadsheet_Excel_Writer-0.6/Spreadsheet_Excel_Writer-0.6/Writ er.php'); I run the script and I get an error within Writer.php: PHP Fatal error: main(): Failed opening required 'Spreadsheet/Excel/Writer/Workbook.php' (include_path='/Users/stephenm/Sites/inductorsupply.com/htdocs/admin_include s:.:/usr/local/php/lib/php') in /Users/stephenm/Sites/inductorsupply.com/htdocs/admin_includes/Spreadsheet_E xcel_Writer-0.6/Spreadsheet_Excel_Writer-0.6/Writer.php on line 35 you all get the idea of what the problem is. it seems to me that another step needs to be added to the directions (between 2 & 3). this step should describe that the naming scheme of the package should be used to create directory structure. for example, to install Spreadsheet_Excel_Writer the user should be instructed to create a directory structure that looks like so: /includes/ Spreadsheet/ Excel/ Writer.php Writer/ BIFFwriter.php Format.php Parser.php Validator.php Workbook.php Worksheet.php part of the confusion might be because the example used on the page, Mime, is such a simple package (lacking the deeper directory paths of other packages) and itself seems to break the rules. (shouldn't the directory structure really be includes/Mail/Mime instead of includes/Mail?) thanks much! STEPHEN. ] stephen@musgrave.org ] http://stephen.musgrave.org/

« previous php.pear.doc (#2280) next »