FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=17081&edit=1

ID: 17081
Comment by: viewport2heaven@yahoo.com
Reported By: dmagick@gmail.com
Summary: pear.bat won't run from other directory
Status: Assigned
Type: Bug
Package: PEAR
Operating System: windows xp
Package Version: Unknown
PHP Version: 5.3.1
Assigned To: dufuz
Roadmap Versions:
New Comment:
Especially since %PHP_PEAR_BIN_DIR% is used for PEAR binaries and
not PHP ones - In theory PHP and PEAR can be installed into two
completely separate directories.
Only in theory. In practice, it is necessary to copy pearcmd.php into
PHP_PEAR_INSTALL_DIR for things to work, thereby breaking the
organization that is the scripts folder.

All packages (PEAR, Console_Getopt, Archive_Tar, Structures_Graph)
installed manually in some exotic location (say C:\exotic\Pierre). You
have to set all the PHP_PEAR* variables inside pear.bat, of course.
Installed on WAMP, yes.


Previous Comments:
------------------------------------------------------------------------

[2010-05-12 00:28:04] dmagick

I didn't realize that using the msi also set all the pear stuff up when
I checked that option (obvious in hindsight, but I thought it just set
up the core pear packages rather than everything about pear). Could I
suggest a note in the docs then?

Thanks for your help.

------------------------------------------------------------------------

[2010-04-30 04:01:36] dufuz

You picked to install PEAR in the MSI but also used go-pear.bat? Did the
MSI not install PEAR properly?

Thanks for the feedback, will probably have to ask you a few questions
when I find more time to tackle this issue :)

------------------------------------------------------------------------

[2010-04-27 01:13:06] dmagick

I used the 'php-5.3.1-nts-Win32-VC9-x86.msi' file to install. I
installed in a different directory to the default (c:\php instead of
c:\program files\php).

I chose 'No web server', then added 'pear' to the list of things to
install.

I double clicked on 'go-pear.bat' to run it and accepted all the
defaults and hit enter for each option.

Same result.

------------------------------------------------------------------------

[2010-04-09 18:31:35] dufuz

-Assigned To:
+Assigned To: dufuz


------------------------------------------------------------------------

[2010-04-09 18:28:01] dufuz

Are you sure that the %PHP_PEAR_PHP_BIN% is set to .\php.exe in your bat
file? For
me it's the full path that's saved there already and thus using your
patch means that it
breaks.
Especially since %PHP_PEAR_BIN_DIR% is used for PEAR binaries and not
PHP ones -
In theory PHP and PEAR can be installed into two completely separate
directories.


How did you install your setup?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=17081

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedApr 12, '13 at 6:26a
activeApr 12, '13 at 6:26a
posts1
users1
websitepear.php.net

1 user in discussion

Viewport2heaven: 1 post

People

Translate

site design / logo © 2022 Grokbase