PEAR installation thoughs error when folder different that c:\php4
| From: | Jose Fandos | Date: | Tue, 11 Mar 2003 01:07:11 +0000 |
| Subject: | PEAR installation thoughs error when folder different that c:\php4 | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-4141@lists.php.net to get a copy of this message | ||
Hi,
I got to install pear, but I found a problem, I believe, that you might want to fix.
When running the installation and answering the placement of the installation, I wrote c:\program files\php 4.3.1, as that is where my PHP installation lives. This gave an error an exited the installation.
[...]
Downloading package: Mail.............ok
Downloading package: XML_Parser.......ok
Extracting installer..................ok
failed to write \program files\php 4.3.1\pear\data\PEAR\.tmppackage.dtd
IMHO, this is due to the use of spaces in the folder name, but I could be wrong. I finally got PEAR installed by letting use the defaults. I now plan on moving the folder under \program files\php 4.3.1\ and see if that works (preliminary test not satisfactory).
Also, on trying to overcome the installation error, I defined each of the 6 folders for the installation as such:
1. Installation prefix : c:\program files\php 4.3.1 2. Binaries directory : c:\program files\php 4.3.1 3. PHP code directory : c:\program files\php 4.3.1\pear4. Documentation base directory : c:\program files\php 4.3.1\pear\docs
5. Data base directory : c:\program files\php 4.3.1\pear\data 6. Tests base directory : c:\program files\php 4.3.1\pear\testsand also created a pear folder under the data folder, but then I got this error instead: Downloading package: Mail.............ok Downloading package: XML_Parser.......ok Extracting installer..................ok failed to write \program files\php 4.3.1\pear\PEAR\.tmpAutoloader.php Then I tried once more, with the folders all set manually and also creating the extra pear folder under the pear folder, and I got another error... [... a few minutes later...] It seems that copying the folders created under c:\php4 to c:\program files\php 4.3.1\ will not to the trick. Running the <?php require_once 'DB.php'; ?> gives a warning. Note: In php.ini include_path = ".;c:\Program Files\PHP 4.3.1\pear" Warning: main(DB.php) [function.main.html]: failed to create stream: No such file or directory in... If I try to run the pear.bat I get: C:\Program Files\PHP 4.3.1>pear 'php_bin@' is not recognized as an internal or external command, operable program or batch file... Got to go... will continue later. [... a few more minutes...] I kept at this until the sucker installed itself correctly