pear installer

From: Date: Wed, 08 Sep 2004 14:07:23 +0000
Subject: pear installer
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-33292@lists.php.net to get a copy of this message
Hiya Greg I've packaged up a project with PEAR_PackageFileManager and it works well with one exception. I have two files that I need copied into the PEAR tree, one is a custom MySQL driver for PEAR::DB and the other is Richard Heyes' Tree class which needs to go in the HTML folder. I couldn't find a straightforward way to get the package manager to copy these in, so achieved it by hacking the following: $e = $packagexml->setOptions(array( ...
    'exceptions' => array(
...
        'etc/mysql_SGL.php' => 'php',
        'etc/Tree.php' => 'php',
        ),
    'installas' => array(
        'etc/mysql_SGL.php' => '../DB/mysql_SGL.php',
        'etc/Tree.php' => '../HTML/Tree.php',
        ),
This actually works in Windows but with Linux I get the following errors: Warning: mkdir(/usr/local/lib/php/seagull/..): File exists in System.php on line 249 Warning: mkdir(/usr/local/lib/php/seagull/../DB): File exists in System.php on line 249 failed to mkdir /usr/local/lib/php/seagull/../DB Understandable since it's running a System::mkdir(), however is there a way around the problem? I'm running the following for the install: pear install --onlyreqdeps http://optusnet.dl.sourceforge.net/sourceforge/seagull/seagull-0.3.10.tgz cheers Demian -- Demian Turner Programmer Awarez Limited Kirkman House, 12-14 Whitfield Street London W1T 2RF T: +44 (0) 7299 7374 F: +44 (0) 7299 7371

« previous php.pear.dev (#33292) next »