Re: pear install broken in PHP 5?
| From: | Tomas V.V.Cox | Date: | Mon, 07 Jun 2004 02:50:26 +0000 |
| Subject: | Re: pear install broken in PHP 5? | ||
| References: | 1 | Groups: | php.pear.core |
| Request: | Send a blank email to pear-core+get-374@lists.php.net to get a copy of this message | ||
You could make the installer do this task by changing PEAR/Builder.php->build() at:
// harvest!
if (@copy("modules/$ent", "$dir/$ent")) {
changed with:
if (System::mkdir(array('-p', $dir)) && @copy("modul...)
Please check if that solves the problem.
Tomas V.V.Cox
PD.- Thanks Stefan for the reminder
Wez Furlong wrote:
I would appreciate it if one of you could investigate this. Steps to reproduce: Get PHP 5 head % ./configure --prefix=/usr/local/php5 % make install % PATH="/usr/local/php5/bin:$PATH" % pear -vvv install -f PDO ... Build complete. (It is safe to ignore warnings about tempnam and tmpnam). pdo.so copied to /tmp/tmpDZHXxZ/PDO-0.1.1/pdo.so Build process completed successfully Installing 'pdo.so' at ext_dir (/usr/local/php5/lib/php/extensions/debug-non-zts-20040412/pdo.so) + cp /tmp/tmpDZHXxZ/PDO-0.1.1/pdo.so ext_dir (/usr/local/php5/lib/php/extensions/debug-non-zts-20040412/pdo.so) rolling back 12 file operations + rm /usr/local/php5/lib/php/doc/PDO/.tmpREADME + rm /usr/local/php5/lib/php/doc/PDO/.tmpTODO + rm /usr/local/php5/lib/php/doc/PDO/.tmppdo.php + rm /usr/local/php5/lib/php/doc/PDO/.tmpCREDITS failed to copy pdo.so to /usr/local/php5/lib/php/extensions/debug-non-zts-20040412/pdo.so Digging around shows that the debug-non-zts-20040412 dir does not exist. I don't know if it is pear's responsibility or that of php "make install" to create that directory, so I'm checking here. Manually creating the dir will allow PDO to install. Now, for the next question... PDO modifies the "install" target so that it can install its headers for use by the other other PDO modules. It appears as though "pear install" ignores the install target. This works fine: % phpize % make % make install But the pear install doesn't; how can I persuade it to install the headers? Thanks, --Wez.