#25350 [Fbk->Csd]: go-pear.bat fails when directory prefix has whitespace
| From: | cjbj at hotmail dot com | Date: | Wed, 03 Sep 2003 05:59:14 +0000 |
| Subject: | #25350 [Fbk->Csd]: go-pear.bat fails when directory prefix has whitespace | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-21007@lists.php.net to get a copy of this message | ||
ID: 25350
User updated by: cjbj at hotmail dot com
Reported By: cjbj at hotmail dot com
-Status: Feedback
+Status: Closed
Bug Type: PEAR related
Operating System: Windows 2000
PHP Version: 4.3.3
New Comment:
- I unzipped php-4.3.3-Win32.zip and moved it to c:\Program
Files\php-4.3.3-Win32
- Renamed PEAR to PEAR_old
- Downloaded http://snaps.php.net/win32/php5-win32-latest.zip
- Copied the whole PEAR directory to c:\Program Files\php-4.3.3-Win32
- Started a DOS window
- Changed directory to c:\Program Files\php-4.3.3-Win32
- Ran "go-pear".
It completed successfully and the disk layout seems as expected.
Previous Comments:
------------------------------------------------------------------------
[2003-09-01 22:37:28] cellog@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
There are many fixes in CVS for this problem.
Note that there is a straightforward typo in pear\go-pear.php which is
known, but hasn't been committed yet for some reason. You should do a
text search for "exee" and replace it with "exe"
please check out php-src/pear and copy the contents to C:\program
files\php-4.3.3-Win32\pear and try again.
Greg
------------------------------------------------------------------------
[2003-09-01 22:05:54] cjbj at hotmail dot com
Description:
------------
- I downloaded php-4.3.3-Win32.zip for Windows 2000
The go-pear.php in 4.3.3 is version 1.48.
- I unzipped and moved to c:\Program Files\php-4.3.3-Win32
- I configured it and Apache 1.3.28 to run.
I can access basic .php files e.g. a simple phpinfo() script
- I opened a DOS window and changed directory to c:\Program
Files\php-4.3.3-Win32
- I ran "go-pear.bat".
Expected result:
----------------
Expected this to install PEAR, or to exit gracefully when the invalid
path was detected.
Actual result:
--------------
The top of the screen shows:
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.
Go-pear also lets you download and install the PEAR packages
bundled
with PHP: DB, Net_Socket, Net_SMTP, Mail, XML_Parser, phpUnit.
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:: http://myvalidproxy.mydomain/
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
PEAR does not appear to be configured. The result seems to be three
new empty directories 'data', 'docs' and 'tests' in c:/Program
Files/php-4.3.3-Win32/PEAR.
- I then copied go-pear.php to an Apache-acccessible directory.
- I filled in the form using the path c:\Program Files\php-4.3.3-Win32
for the installation prefix, and c:\program
files\php-4.3.3-Win32\cli as the CLI path.
- I clicked "install"
- I expected this to work
- I did get a useful (but annoying) message
ERROR(S):
Installation prefix:
Spaces are not allowed in pathes. Please choose another path.
php.exe path, optional (CLI command tools):
Spaces are not allowed in pathes. Please choose another path.
Spaces are valid in Windows file and directory names.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25350&edit=1