For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > January 2007 > Pear Installation difficulties









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Pear Installation difficulties
Antoni Kowalczewski

2007-01-23, 4:02 am



I am trying to install pear on an installation of Instant Rails.



The process seems to be going fine until I hit this unexpected roadblock.



ERROR: failed to write C:\InstantRails\php\pear\PEAR\Command\.tmpAuth.xml



I have ample hard drive space. Its windows so permissions shouldn't be an
issue.



I thought pear was having a problem creating a file that starts with a dot
in windows so I created it and let pear overwrite but it was coming up with
the same error.



Google didn't help



I have nowhere else to turn. I hope someone here has an idea on what's going
on.



Although it claims it created a pear.bat .. it doesn't . it also never
creates the PEAR.php files.



Thank you in advance.



Here is the full process:



C:\InstantRails\php>go-pear

Welcome to go-pear!



Go-pear will install the 'pear' command and all the files needed by

it. This command is your tool for PEAR installation and maintenance.



Use 'php PEAR\go-pear.php local' to install a local copy of PEAR.



Go-pear also lets you download and install the PEAR packages bundled

with PHP: MDB2.





If you wish to abort, press Control-C now, or press Enter to continue:



HTTP proxy (http://user:password@proxy.myhost.com:port), or Enter for none::



Below is a suggested file layout for your new PEAR installation. To

change individual locations, type the number in front of the

directory. Type 'all' to change all of them or simply press Enter to

accept these locations.



1. Installation prefix : C:\InstantRails\php

2. Binaries directory : $prefix

3. PHP code directory ($php_dir) : $prefix\pear

4. Documentation base directory : $php_dir\docs

5. Data base directory : $php_dir\data

6. Tests base directory : $php_dir\tests

7. Temporary files directory : $prefix\temp

8. php.exe path : C:\InstantRails\php\php.exe



1-8, 'all' or Enter to continue:



The following PEAR packages are bundled with PHP: MDB2.

Would you like to install these as well? [Y/n] : y



Loading zlib: ok

Downloading package: PEAR-stable......ok

Downloading package: Archive_Tar-stable....ok

Downloading package: Console_Getopt-stable....ok

Downloading package: XML_RPC-stable....ok

Bootstrapping: PEAR...................(remote) ok

Bootstrapping: Archive_Tar............(remote) ok

Bootstrapping: Console_Getopt.........(remote) ok

Downloading package: MDB2.............ok

Extracting installer..................ok

pear/PEAR can optionally use package "pear/PEAR_Frontend_Web" (version >=
0.5.0)



pear/PEAR can optionally use package "pear/PEAR_Frontend_Gtk" (version >=
0.4.0)



pear/PEAR can optionally use package "pear/PEAR_Frontend_Gtk2" (version >=
0.1.0

)

ERROR: failed to write C:\InstantRails\php\pear\PEAR\Command\.tmpAuth.xml

install ok: channel://pear.php.net/Archive_Tar-1.3.2

install ok: channel://pear.php.net/Console_Getopt-1.2.1

install ok: channel://pear.php.net/XML_RPC-1.5.1

warning: pear/MDB2 requires package "pear/PEAR" (version >= 1.3.6)

install ok: channel://pear.php.net/MDB2-2.3.0



The 'pear' command is now at your service at c:\instantrails\php\pear.bat



** The 'pear' command is not currently in your PATH, so you need to

** use 'c:\instantrails\php\pear.bat' until you have added

** 'C:\InstantRails\php' to your PATH environment variable.



Run it without parameters to see the available actions, try 'pear list'

to see what packages are installed, or 'pear help' for help.



For more information about PEAR, see:



http://pear.php.net/faq.php

http://cvs.php.net/co.php/pearweb/d...manager.txt?p=1

http://pear.php.net/manual/



Thanks for using go-pear!







* WINDOWS ENVIRONMENT VARIABLES *

For convenience, a REG file is available under
C:\InstantRails\php\PEAR_ENV.reg

...

This file creates ENV variables for the current user.



Double-click this file to add it to the current user registry.



Press any key to continue . . .




Gregory Beaver

2007-01-23, 4:02 am

Antoni Kowalczewski wrote:
>
>
> I am trying to install pear on an installation of Instant Rails.


Please report this to the maintainers of InstantRails, they are
distributing a non-standard go-pear. You can replace the one they
distributed with http://pear.php.net/go-pear and try again. Once the
installation works, simply run "pear install MDB2" and you should be in
business. Also note that you will need to at least install a driver for
the database, MDB2_Driver_mysql for the mysql extension,
MDB2_Driver_mysqli for the mysqli extension, etc.

Good luck,
Greg
Antoni Kowalczewski

2007-01-23, 7:09 pm

The errors I am getting are with the go-pear from
http://pear.php.net/go-pear

You are right though the one before had other issues.

Antoni Kowalczewski
Angeltear Web Development
-------------------------
T: 780.887.9214
E: antoni@angeltear.com

-----Original Message-----
From: Gregory Beaver [mailto:greg@chiaraquartet.net]
Sent: Monday, January 22, 2007 10:20 PM
To: Antoni Kowalczewski
Cc: pear-general@lists.php.net
Subject: Re: Pear Installation difficulties

Antoni Kowalczewski wrote:
>
>
> I am trying to install pear on an installation of Instant Rails.


Please report this to the maintainers of InstantRails, they are
distributing a non-standard go-pear. You can replace the one they
distributed with http://pear.php.net/go-pear and try again. Once the
installation works, simply run "pear install MDB2" and you should be in
business. Also note that you will need to at least install a driver for
the database, MDB2_Driver_mysql for the mysql extension,
MDB2_Driver_mysqli for the mysqli extension, etc.

Good luck,
Greg
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com