Home > Archive > PHP Pear > March 2005 > RE: [PEAR] Re: PEAR Windows Installation problem
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 |
RE: [PEAR] Re: PEAR Windows Installation problem
|
|
| Mark Withington 2005-03-02, 3:57 am |
| I seem to recall similar errors when I tried to install PEAR on a windows
box running Apache. As I recall (don't hold me to this) I needed to go into
the php.ini and update the include path (with the PEAR directory).
Hope this helps.
--------------------------
Mark L. Withington
PLMresearch
v: 508-746-2383
m: 508-801-0181
Calendar: http://www.plmdev.com/plmr/PLMresearch.com/calendar.php
-----Original Message-----
From: Jason Barnett [mailto:jason.barnett@telesuite.com]
Sent: Tuesday, March 01, 2005 7:14 PM
To: pear-general@lists.php.net
Subject: [PEAR] Re: PEAR Windows Installation problem
Brent O'Connor wrote:
> When I try to install the PEAR windows package manager I get some
> errors when it's about done... The following is the screen out put is
> from the windows command line. I didn't have this problem on my Linux
> boxes. :) The server is a Windows 2003 server. Any help is greatly
> apprishated!
You have a lot of information in your post, but it looks like you haven't
done enough work to diagnose your problem...
> *NOTICE*
> We found php.exe under C:\PHP\php.exe, it uses a cgi SAPI. PEAR
> commandline tool works well with it, if you have a CLI php.exe
> available, we recommand to use it.
>
> 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:\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. php.exe path : C:\PHP\php.exe
>
> 1-7, 'all' or Enter to continue:
>
> The following PEAR packages are bundled with PHP: DB, Net_Socket,
> Net_SMTP, Mail, XML_Parser, PHPUnit. Would you like to install these
> as well? [Y/n] : n
>
> 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
> Extracting installer..................ok
>
> Warning: main(PEAR/Config.php): failed to open stream: No such file or
> directory in C:\PHP\go-pear.php on line 684
>
> Warning: main(): Failed opening 'PEAR/Config.php' for inclusion
> (include_path='C
> :/DOCUME~1/brento/LOCALS~1/Temp/3/gop49.tmp') in C:\PHP\go-pear.php on
> line 684
>
The script failed to load the include()'d files. This ultimately led to
your fatal error.
http://marc.theaimsgroup.com/?l=php...stall+include+p
ath&q=b
--
Teach a man to fish...
NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
STFM | http://php.net/manual/en/index.php
STFW | http://www.google.com/search?q=php
LAZY |
http://mycroft.mozdev.org/download....ind+search+plug
ins
| |
|
|
| Greg Beaver 2005-03-03, 3:58 am |
| Robert wrote:
> Also, don't upgrade to the latest PEAR. I did, and got and array error.
An "array error?"
| |
| bertrand Gugger 2005-03-03, 8:57 am |
| Hi all !
Greg Beaver wrote:
> Robert wrote:
>
>
>
> An "array error?"
>
Could that be that stuff with Net_FTP last w ?
à+
--
bertrand Gugger
http://toggg.com/
| |
| Robert 2005-03-03, 3:57 pm |
| "Greg Beaver" <cellog@php.net> wrote in message
news:42266DC5.6080209@php.net...
> Robert wrote:
>
> An "array error?"
I created a bug report but aftter upgrading to 1.3.5 on Windows I go the
following:
=============================
C:\PHP\PEAR>pear upgrade PEAR
downloading PEAR-1.3.5.tgz ...
Starting to download PEAR-1.3.5.tgz (108,423 bytes)
..........................done: 108,423 bytes
upgrade ok: PEAR 1.3.5
C:\PHP\PEAR>pear list-upgrades
Warning: array_shift(): The argument should be an array in pearcmd.php on
line 5
4
Console_Getopt: Could not read cmd args (register_argc_argv=Off?)
=============================
I have a stock install of 4.3.10 on Windows XP
Robert
| |
| Greg Beaver 2005-03-03, 8:56 pm |
| Robert wrote:
> =============================
> C:\PHP\PEAR>pear upgrade PEAR
> downloading PEAR-1.3.5.tgz ...
> Starting to download PEAR-1.3.5.tgz (108,423 bytes)
> .........................done: 108,423 bytes
> upgrade ok: PEAR 1.3.5
>
> C:\PHP\PEAR>pear list-upgrades
>
> Warning: array_shift(): The argument should be an array in pearcmd.php on
> line 5
> 4
> Console_Getopt: Could not read cmd args (register_argc_argv=Off?)
> =============================
>
> I have a stock install of 4.3.10 on Windows XP
Ah - your php.ini has the ini setting register_argc_argv=Off perhaps, or
there is some other problem that is causing $_SERVER['argv'] to not be
set at all instead of containing the "list-upgrades" string.
Could you change the first line of the pearcmd.php script to:
phpinfo();exit;
and then run:
pear |more
use the space bar to scroll down until you see the setting for
register_argc_argv. In addition, near the top screen, you will see the
actual location of your php.ini file, make a note if it is not what you
expected (i.e. it's using another file or can't find any)
After you finish, you can remove the line you added to pearcmd.php.
Post here again if register_argc_argv *is* enabled, as that is really weird.
Greg
| |
| Robert 2005-03-04, 3:58 pm |
| "Greg Beaver" <cellog@php.net> wrote in message
news:42279231.8050002@php.net...
> Robert wrote:
<snip>
> Ah - your php.ini has the ini setting register_argc_argv=Off perhaps, or
> there is some other problem that is causing $_SERVER['argv'] to not be set
> at all instead of containing the "list-upgrades" string.
>
> Could you change the first line of the pearcmd.php script to:
>
> phpinfo();exit;
>
> and then run:
>
> pear |more
>
> use the space bar to scroll down until you see the setting for
> register_argc_argv. In addition, near the top screen, you will see the
> actual location of your php.ini file, make a note if it is not what you
> expected (i.e. it's using another file or can't find any)
>
> After you finish, you can remove the line you added to pearcmd.php. Post
> here again if register_argc_argv *is* enabled, as that is really weird.
>
> Greg
register_argc_argv = OFF
My php.ini is where I thought it was...
Does turning it ON pose a security problem?
Robert
| |
| Greg Beaver 2005-03-04, 3:59 pm |
| Robert wrote:
> register_argc_argv = OFF
>
> My php.ini is where I thought it was...
>
> Does turning it ON pose a security problem?
Only if you allow other people access to your keyboard while you're in
the bathroom :). argc/argv are set from the command-line.
Greg
| |
| Robert 2005-03-04, 8:56 pm |
|
"Greg Beaver" <cellog@php.net> wrote in message
news:42289190.4000009@php.net...
> Robert wrote:
>
>
> Only if you allow other people access to your keyboard while you're in the
> bathroom :). argc/argv are set from the command-line.
>
> Greg
I don't think that has happened recently... :-)
Robert
| |
| Robert 2005-03-04, 8:56 pm |
| "Greg Beaver" <cellog@php.net> wrote in message
news:42289190.4000009@php.net...
> Robert wrote:
>
>
> Only if you allow other people access to your keyboard while you're in the
> bathroom :). argc/argv are set from the command-line.
>
> Greg
I turned it ON and then upgraded to the newest version of PEAR and it works.
:-)
Since OFF is the default, do you think that most people will have this
problem?
I will close the bug...
Robert
|
|
|
|
|